Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
Drop support for Python 3.6
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Algarvio <[email protected]>
  • Loading branch information
s0undt3ch committed Nov 10, 2023
1 parent 8a1e982 commit a197597
Show file tree
Hide file tree
Showing 10 changed files with 94 additions and 67 deletions.
41 changes: 26 additions & 15 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ repos:
rev: v2.37.2
hooks:
- id: pyupgrade
name: Rewrite Code to be Py3.6+
args: [--py36-plus]
name: Rewrite Code to be Py3.7+
args: [--py37-plus]

- repo: https://github.com/asottile/reorder_python_imports
rev: v2.6.0
hooks:
- id: reorder-python-imports
args: [--py36-plus]
args: [--py37-plus]

- repo: https://github.com/psf/black
rev: 22.6.0
Expand Down Expand Up @@ -67,19 +67,8 @@ repos:
# ----- Static Requirements --------------------------------------------------------------------->
# ----- Testing Static Requirements ----------------------------------------------------------->
- repo: https://github.com/saltstack/pip-tools-compile-impersonate
rev: '4.1'
rev: '4.8'
hooks:
- id: pip-tools-compile
alias: compile-3.6-test-requirements
name: Py3.6 Test Requirements
files: ^requirements/(base\.txt|tests\.in)$
pass_filenames: false
args:
- -v
- --py-version=3.6
- --platform=linux
- requirements/tests.in

- id: pip-tools-compile
alias: compile-3.7-test-requirements
name: Py3.7 Test Requirements
Expand Down Expand Up @@ -123,6 +112,28 @@ repos:
- --py-version=3.10
- --platform=linux
- requirements/tests.in

- id: pip-tools-compile
alias: compile-3.11-test-requirements
name: Py3.11 Test Requirements
files: ^requirements/(base\.txt|tests\.in)$
pass_filenames: false
args:
- -v
- --py-version=3.11
- --platform=linux
- requirements/tests.in

- id: pip-tools-compile
alias: compile-3.12-test-requirements
name: Py3.12 Test Requirements
files: ^requirements/(base\.txt|tests\.in)$
pass_filenames: false
args:
- -v
- --py-version=3.12
- --platform=linux
- requirements/tests.in
# <---- Testing Static Requirements ------------------------------------------------------------
# <---- Static Requirements ----------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
click
click-params
jinja2
jinja2 >= 2.11.3
14 changes: 6 additions & 8 deletions requirements/py3.10/tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#
# pip-compile --output-file=requirements/py3.10/tests.txt requirements/tests.in
#
attrs==20.3.0
# via pytest
click-params==0.1.1
# via -r requirements/base.txt
click==7.1.2
Expand All @@ -14,27 +12,27 @@ click==7.1.2
# click-params
decorator==4.4.2
# via validators
exceptiongroup==1.1.3
# via pytest
iniconfig==1.1.1
# via pytest
jinja2==2.11.2
jinja2==3.1.2
# via -r requirements/base.txt
markupsafe==1.1.1
markupsafe==2.1.3
# via jinja2
packaging==20.4
# via pytest
pluggy==0.13.1
# via pytest
py==1.9.0
# via pytest
pyparsing==2.4.7
# via packaging
pytest==6.1.2
pytest==7.4.3
# via -r requirements/tests.in
six==1.15.0
# via
# packaging
# validators
toml==0.10.2
tomli==2.0.1
# via pytest
validators==0.14.3
# via click-params
20 changes: 4 additions & 16 deletions requirements/py3.6/tests.txt → requirements/py3.11/tests.txt
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --output-file=requirements/py3.6/tests.txt requirements/tests.in
# pip-compile --output-file=requirements/py3.11/tests.txt requirements/tests.in
#
attrs==20.3.0
# via pytest
click-params==0.1.1
# via -r requirements/base.txt
click==7.1.2
Expand All @@ -14,33 +12,23 @@ click==7.1.2
# click-params
decorator==4.4.2
# via validators
importlib-metadata==2.0.0
# via
# pluggy
# pytest
iniconfig==1.1.1
# via pytest
jinja2==2.11.2
jinja2==3.1.2
# via -r requirements/base.txt
markupsafe==1.1.1
markupsafe==2.1.3
# via jinja2
packaging==20.4
# via pytest
pluggy==0.13.1
# via pytest
py==1.9.0
# via pytest
pyparsing==2.4.7
# via packaging
pytest==6.1.2
pytest==7.4.3
# via -r requirements/tests.in
six==1.15.0
# via
# packaging
# validators
toml==0.10.2
# via pytest
validators==0.14.3
# via click-params
zipp==3.4.0
# via importlib-metadata
34 changes: 34 additions & 0 deletions requirements/py3.12/tests.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --output-file=requirements/py3.12/tests.txt requirements/tests.in
#
click-params==0.1.1
# via -r requirements/base.txt
click==7.1.2
# via
# -r requirements/base.txt
# click-params
decorator==4.4.2
# via validators
iniconfig==1.1.1
# via pytest
jinja2==3.1.2
# via -r requirements/base.txt
markupsafe==2.1.3
# via jinja2
packaging==20.4
# via pytest
pluggy==0.13.1
# via pytest
pyparsing==2.4.7
# via packaging
pytest==7.4.3
# via -r requirements/tests.in
six==1.15.0
# via
# packaging
# validators
validators==0.14.3
# via click-params
14 changes: 6 additions & 8 deletions requirements/py3.7/tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#
# pip-compile --output-file=requirements/py3.7/tests.txt requirements/tests.in
#
attrs==20.3.0
# via pytest
click-params==0.1.1
# via -r requirements/base.txt
click==7.1.2
Expand All @@ -14,31 +12,31 @@ click==7.1.2
# click-params
decorator==4.4.2
# via validators
exceptiongroup==1.1.3
# via pytest
importlib-metadata==2.0.0
# via
# pluggy
# pytest
iniconfig==1.1.1
# via pytest
jinja2==2.11.2
jinja2==3.1.2
# via -r requirements/base.txt
markupsafe==1.1.1
markupsafe==2.1.3
# via jinja2
packaging==20.4
# via pytest
pluggy==0.13.1
# via pytest
py==1.9.0
# via pytest
pyparsing==2.4.7
# via packaging
pytest==6.1.2
pytest==7.4.3
# via -r requirements/tests.in
six==1.15.0
# via
# packaging
# validators
toml==0.10.2
tomli==2.0.1
# via pytest
validators==0.14.3
# via click-params
Expand Down
14 changes: 6 additions & 8 deletions requirements/py3.8/tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#
# pip-compile --output-file=requirements/py3.8/tests.txt requirements/tests.in
#
attrs==20.3.0
# via pytest
click-params==0.1.1
# via -r requirements/base.txt
click==7.1.2
Expand All @@ -14,27 +12,27 @@ click==7.1.2
# click-params
decorator==4.4.2
# via validators
exceptiongroup==1.1.3
# via pytest
iniconfig==1.1.1
# via pytest
jinja2==2.11.2
jinja2==3.1.2
# via -r requirements/base.txt
markupsafe==1.1.1
markupsafe==2.1.3
# via jinja2
packaging==20.4
# via pytest
pluggy==0.13.1
# via pytest
py==1.9.0
# via pytest
pyparsing==2.4.7
# via packaging
pytest==6.1.2
pytest==7.4.3
# via -r requirements/tests.in
six==1.15.0
# via
# packaging
# validators
toml==0.10.2
tomli==2.0.1
# via pytest
validators==0.14.3
# via click-params
14 changes: 6 additions & 8 deletions requirements/py3.9/tests.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#
# pip-compile --output-file=requirements/py3.9/tests.txt requirements/tests.in
#
attrs==20.3.0
# via pytest
click-params==0.1.1
# via -r requirements/base.txt
click==7.1.2
Expand All @@ -14,27 +12,27 @@ click==7.1.2
# click-params
decorator==4.4.2
# via validators
exceptiongroup==1.1.3
# via pytest
iniconfig==1.1.1
# via pytest
jinja2==2.11.2
jinja2==3.1.2
# via -r requirements/base.txt
markupsafe==1.1.1
markupsafe==2.1.3
# via jinja2
packaging==20.4
# via pytest
pluggy==0.13.1
# via pytest
py==1.9.0
# via pytest
pyparsing==2.4.7
# via packaging
pytest==6.1.2
pytest==7.4.3
# via -r requirements/tests.in
six==1.15.0
# via
# packaging
# validators
toml==0.10.2
tomli==2.0.1
# via pytest
validators==0.14.3
# via click-params
2 changes: 1 addition & 1 deletion requirements/tests.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
-r base.txt
pytest
pytest >= 7.2.0
6 changes: 4 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ classifiers =
Programming Language :: Cython
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Development Status :: 4 - Beta
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Expand All @@ -31,7 +33,7 @@ include_package_data = True
package_dir =
=src
packages = find_namespace:
python_requires = >= 3.6
python_requires = >= 3.7
setup_requires =
wheel
setuptools>=50.3.2
Expand Down

0 comments on commit a197597

Please sign in to comment.