Skip to content

Commit

Permalink
fix bug of version 2022.03.06
Browse files Browse the repository at this point in the history
  • Loading branch information
ClericPy committed Mar 7, 2022
1 parent 0a00335 commit 5291be2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ So, what could `zipapps` be?
1. `import zipimport; zipimport.zipimporter('bottle.pyz').load_module("ensure_zipapps")`
1. automatically unzip cache, and add the path to sys.path
2. it can be run multiple times
2. if they are all pure-python code
2. if they are all pure-python code and **no need to decompress**
1. `impory sys; sys.path.insert(0, "bottle.pyz")`


Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# Changelogs


- 2022.03.07
- fix bug of version `2022.03.06`
- file xxx.template not found
- 2022.03.06
- rename some template files
- remove duplicated sys.path
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
long_description = f.read()

here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, 'zipapps', 'main.py'),
encoding="u8") as f:
with codecs.open(os.path.join(here, 'zipapps', 'main.py'), encoding="u8") as f:
version = re.search(r'''__version__ = ['"](.*?)['"]''', f.read()).group(1)
desc = "Package your python code into one zip file, even a virtual environment."
keywords = "zipapp distribute publish zip standalone portable".split()
Expand All @@ -29,6 +28,7 @@
long_description=long_description,
long_description_content_type='text/markdown',
license="MIT License",
package_data={'zipapps': ['*.template']},
py_modules=["zipapps"],
python_requires=">=3.6",
classifiers=[
Expand Down
2 changes: 1 addition & 1 deletion zipapps/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from pkgutil import get_data
from zipfile import ZIP_DEFLATED, ZIP_STORED, BadZipFile, ZipFile

__version__ = '2022.03.06'
__version__ = '2022.03.07'


def get_pip_main(ensurepip_root=None):
Expand Down

0 comments on commit 5291be2

Please sign in to comment.