Skip to content

Commit 5291be2

Browse files
committed
fix bug of version 2022.03.06
1 parent 0a00335 commit 5291be2

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ So, what could `zipapps` be?
7474
1. `import zipimport; zipimport.zipimporter('bottle.pyz').load_module("ensure_zipapps")`
7575
1. automatically unzip cache, and add the path to sys.path
7676
2. it can be run multiple times
77-
2. if they are all pure-python code
77+
2. if they are all pure-python code and **no need to decompress**
7878
1. `impory sys; sys.path.insert(0, "bottle.pyz")`
7979

8080

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# Changelogs
33

44

5+
- 2022.03.07
6+
- fix bug of version `2022.03.06`
7+
- file xxx.template not found
58
- 2022.03.06
69
- rename some template files
710
- remove duplicated sys.path

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
long_description = f.read()
1717

1818
here = os.path.abspath(os.path.dirname(__file__))
19-
with codecs.open(os.path.join(here, 'zipapps', 'main.py'),
20-
encoding="u8") as f:
19+
with codecs.open(os.path.join(here, 'zipapps', 'main.py'), encoding="u8") as f:
2120
version = re.search(r'''__version__ = ['"](.*?)['"]''', f.read()).group(1)
2221
desc = "Package your python code into one zip file, even a virtual environment."
2322
keywords = "zipapp distribute publish zip standalone portable".split()
@@ -29,6 +28,7 @@
2928
long_description=long_description,
3029
long_description_content_type='text/markdown',
3130
license="MIT License",
31+
package_data={'zipapps': ['*.template']},
3232
py_modules=["zipapps"],
3333
python_requires=">=3.6",
3434
classifiers=[

zipapps/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from pkgutil import get_data
1515
from zipfile import ZIP_DEFLATED, ZIP_STORED, BadZipFile, ZipFile
1616

17-
__version__ = '2022.03.06'
17+
__version__ = '2022.03.07'
1818

1919

2020
def get_pip_main(ensurepip_root=None):

0 commit comments

Comments
 (0)