Skip to content

Commit

Permalink
Merge pull request #90 from pdsaraujo/add_support_py310_311
Browse files Browse the repository at this point in the history
Add support Python versions 3.10 and 3.11
  • Loading branch information
kairoaraujo authored Mar 3, 2023
2 parents c248a45 + 4553039 commit ac9f704
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-versions: [ "3.7", "3.8", "3.9", "3.10", ]
python-versions: [ "3.8", "3.9", "3.10", "3.11", ]

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: end-of-file-fixer
Expand All @@ -10,7 +10,7 @@ repos:
- id: check-yaml
files: '.github/'
- repo: https://github.com/pycqa/flake8
rev: '4.0.1'
rev: '6.0.0'
hooks:
- id: flake8
exclude: ownca/__init__.py|venv|.venv|setting.py|.git|.tox|dist|docs|/*lib/python*|/*egg|build|tools
15 changes: 10 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ all-tests:
coverage xml -i
coverage html -i

py37-tests:
tox -re py37,pep8
coverage xml -i
coverage html -i

py38-tests:
tox -re py38,pep8
coverage xml -i
Expand All @@ -23,6 +18,16 @@ py39-tests:
coverage xml -i
coverage html -i

py310-tests:
tox -re py310,pep8
coverage xml -i
coverage html -i

py311-tests:
tox -re py311,pep8
coverage xml -i
coverage html -i

integration-tests:
tox -re integrations

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Development
===========

Preparing the environment
---------------------
-------------------------

```shell
git clone [email protected]:OwnCA/ownca.git
Expand All @@ -68,7 +68,7 @@ LDFLAGS=-L$(brew --prefix libffi)/lib CFLAGS=-I$(brew --prefix libffi)/include p
```

Installing & enabling pre-commit
---------------------
--------------------------------

To automatically run checks before you commit your changes you should install the git hook scripts with **pre-commit**:
```shell
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ name = "OwnCA"
dynamic = ["version"]
description = "Python Own Certificate Authority"
readme = "README.md"
requires-python = ">=3.7"
requires-python = ">=3.8"
license = {text = "Apache 2.0"}
keywords = ["ownca", "Certificate Authority", "CA", "certificates"]
authors = [
Expand All @@ -23,10 +23,10 @@ classifiers = [
"Natural Language :: English",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"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 :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def run_tests(self):
package_data={"": ["LICENSE", "NOTICE"], "ownca": ["*.pem"]},
package_dir={"ownca": "ownca"},
include_package_data=True,
python_requires=">=3.7",
python_requires=">=3.8",
install_requires=requires,
license=about["__license__"],
zip_safe=False,
Expand All @@ -84,10 +84,10 @@ def run_tests(self):
"Natural Language :: English",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"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 :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py37,py38,py39,,py310,pep8,lint,integrations
envlist = py38,py39,py310,py311,pep8,lint,integrations

[flake8]
exclude = ownca/__init__.py,venv,.venv,settings.py,.git,.tox,dist,docs,*lib/python*,*egg,build,tools
Expand Down Expand Up @@ -31,7 +31,7 @@ commands = coverage run -m pytest --pdb -vv tests/unit tests/integrations

[gh-actions]
python =
3.7: py37,pep8,lint,integrations
3.8: py38,pep8,lint,integrations
3.9: py39,pep8,lint,integrations
3.10: py310,pep8,lint,integrations
3.10: py310,pep8,lint,integrations
3.11: py311,pep8,lint,integrations

0 comments on commit ac9f704

Please sign in to comment.