Skip to content

Commit c0ba780

Browse files
committed
Fix zipapp
Signed-off-by: Bernát Gábor <[email protected]> Signed-off-by: Bernát Gábor <[email protected]>
1 parent ecc1cb7 commit c0ba780

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ jobs:
189189
- name: Build sdist and wheel
190190
run: python -m build -s -w . -o dist
191191
- name: Publish to PyPi
192-
uses: pypa/gh-action-pypi-publish@main
192+
uses: pypa/gh-action-pypi-publish@v1.5.1
193193
with:
194194
skip_existing: true
195195
user: __token__

.pre-commit-config.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ repos:
1212
- id: end-of-file-fixer
1313
- id: trailing-whitespace
1414
- repo: https://github.com/asottile/pyupgrade
15-
rev: v2.37.1
15+
rev: v2.37.2
1616
hooks:
1717
- id: pyupgrade
18+
args: ["--py36-plus"]
19+
exclude: "^(src/virtualenv/create/via_global_ref/_virtualenv.py|src/virtualenv/create/via_global_ref/builtin/python2/site.py|src/virtualenv/discovery/py_info.py|tasks/__main__zipapp.py)$"
20+
- id: pyupgrade
21+
files: "^(src/virtualenv/create/via_global_ref/_virtualenv.py|src/virtualenv/create/via_global_ref/builtin/python2/site.py|src/virtualenv/discovery/py_info.py|tasks/__main__zipapp.py)$"
1822
- repo: https://github.com/PyCQA/isort
1923
rev: 5.10.1
2024
hooks:
@@ -39,10 +43,10 @@ repos:
3943
- id: tox-ini-fmt
4044
args: ["-p", "fix_lint"]
4145
- repo: https://github.com/asottile/setup-cfg-fmt
42-
rev: v1.20.1
46+
rev: v1.20.2
4347
hooks:
4448
- id: setup-cfg-fmt
45-
args: [--min-py3-version, "3.5", "--max-py-version", "3.10"]
49+
args: [--min-py3-version, "3.6 ", "--max-py-version", "3.10"]
4650
- repo: https://github.com/PyCQA/flake8
4751
rev: "4.0.1"
4852
hooks:

setup.cfg

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ classifiers =
1818
Operating System :: MacOS :: MacOS X
1919
Operating System :: Microsoft :: Windows
2020
Operating System :: POSIX
21-
Programming Language :: Python :: 2
22-
Programming Language :: Python :: 2.7
2321
Programming Language :: Python :: 3
24-
Programming Language :: Python :: 3.5
22+
Programming Language :: Python :: 3 :: Only
2523
Programming Language :: Python :: 3.6
2624
Programming Language :: Python :: 3.7
2725
Programming Language :: Python :: 3.8
@@ -45,7 +43,7 @@ install_requires =
4543
platformdirs>=2,<3
4644
importlib-metadata>=0.12;python_version<"3.8"
4745
importlib-resources>=1.0;python_version<"3.7"
48-
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
46+
python_requires = >=3.6
4947
package_dir =
5048
=src
5149
zip_safe = True

tasks/make_zipapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
HERE = Path(__file__).parent.absolute()
2222

23-
VERSIONS = [f"3.{i}" for i in range(10, 4, -1)] + ["2.7"]
23+
VERSIONS = [f"3.{i}" for i in range(10, 5, -1)]
2424

2525

2626
def main():

0 commit comments

Comments
 (0)