summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernát Gábor <gaborjbernat@gmail.com>2022-07-25 10:11:06 -0700
committerBernát Gábor <bgabor8@bloomberg.net>2022-07-25 15:40:34 -0700
commitc0ba7809fb5d077ca12d4ab0dee4057513f908e5 (patch)
treed3ad9af6febbbc403893c1637e40920fd2b4540c
parentecc1cb7d4a8fc1b880bc1f30c4589b614cadabf7 (diff)
downloadvirtualenv-c0ba7809fb5d077ca12d4ab0dee4057513f908e5.tar.gz
Fix zipapp20.16.0
Signed-off-by: Bernát Gábor <gaborjbernat@gmail.com> Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
-rw-r--r--.github/workflows/check.yml2
-rw-r--r--.pre-commit-config.yaml10
-rw-r--r--setup.cfg6
-rw-r--r--tasks/make_zipapp.py2
4 files changed, 11 insertions, 9 deletions
diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml
index 83cf6a7..8181b49 100644
--- a/.github/workflows/check.yml
+++ b/.github/workflows/check.yml
@@ -189,7 +189,7 @@ jobs:
- name: Build sdist and wheel
run: python -m build -s -w . -o dist
- name: Publish to PyPi
- uses: pypa/gh-action-pypi-publish@main
+ uses: pypa/gh-action-pypi-publish@v1.5.1
with:
skip_existing: true
user: __token__
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 81c5b72..f8497a4 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -12,9 +12,13 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
- rev: v2.37.1
+ rev: v2.37.2
hooks:
- id: pyupgrade
+ args: ["--py36-plus"]
+ 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)$"
+ - id: pyupgrade
+ 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)$"
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
@@ -39,10 +43,10 @@ repos:
- id: tox-ini-fmt
args: ["-p", "fix_lint"]
- repo: https://github.com/asottile/setup-cfg-fmt
- rev: v1.20.1
+ rev: v1.20.2
hooks:
- id: setup-cfg-fmt
- args: [--min-py3-version, "3.5", "--max-py-version", "3.10"]
+ args: [--min-py3-version, "3.6 ", "--max-py-version", "3.10"]
- repo: https://github.com/PyCQA/flake8
rev: "4.0.1"
hooks:
diff --git a/setup.cfg b/setup.cfg
index 707aafe..02e7809 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -18,10 +18,8 @@ classifiers =
Operating System :: MacOS :: MacOS X
Operating System :: Microsoft :: Windows
Operating System :: POSIX
- Programming Language :: Python :: 2
- Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
- Programming Language :: Python :: 3.5
+ Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
@@ -45,7 +43,7 @@ install_requires =
platformdirs>=2,<3
importlib-metadata>=0.12;python_version<"3.8"
importlib-resources>=1.0;python_version<"3.7"
-python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
+python_requires = >=3.6
package_dir =
=src
zip_safe = True
diff --git a/tasks/make_zipapp.py b/tasks/make_zipapp.py
index 061cb53..5a8a760 100644
--- a/tasks/make_zipapp.py
+++ b/tasks/make_zipapp.py
@@ -20,7 +20,7 @@ from packaging.requirements import Requirement
HERE = Path(__file__).parent.absolute()
-VERSIONS = [f"3.{i}" for i in range(10, 4, -1)] + ["2.7"]
+VERSIONS = [f"3.{i}" for i in range(10, 5, -1)]
def main():