Skip to content

Commit

Permalink
chore: set minimum required python version to 3.10 (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
italvi authored Jan 9, 2025
1 parent 4fb378e commit bbb965b
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 84 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: pipx install poetry==1.8.3
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: '3.9'
python-version: '3.10'
cache: 'poetry'
- run: |
poetry config virtualenvs.in-project false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/python-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: pipx install poetry==1.8.3
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: '3.9'
python-version: '3.10'
cache: 'poetry'
- run: |
poetry config virtualenvs.in-project false
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
run: pipx install poetry==1.8.3
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: '3.9'
python-version: '3.10'
cache: 'poetry'
- run: |
poetry config virtualenvs.in-project false
Expand All @@ -36,7 +36,7 @@ jobs:
run: pipx install poetry==1.8.3
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: '3.9'
python-version: '3.10'
cache: 'poetry'
- name: Install dependencies from poetry
run: poetry install --no-root
Expand All @@ -62,7 +62,7 @@ jobs:
run: pipx install poetry==1.8.3
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: '3.9'
python-version: '3.10'
cache: 'poetry'
- name: Install package
run: poetry install
Expand Down
4 changes: 2 additions & 2 deletions docs/source/CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Make changes to CycloneDX Editor Validator
Prerequisites
-------------

* For compatibility reasons, the code should be compliant to python 3.9 or higher.
* For compatibility reasons, the code should be compliant to python 3.10 or higher.
* Make sure to use the latest code by performing a :code:`git pull`.
* For a major change it is recommended that you get in touch with us by :ref:`creating an issue <contributing:create issues>` to discuss changes prior to dedicating time and resources. This process allows us to better coordinate our efforts and prevent duplication of work.
* Commit your changes using a descriptive commit message that follows our :ref:`commit message format <contributing:commit message format>`. The same applies for titles of PRs. This is required as we generate our release notes from these messages.
Expand Down Expand Up @@ -74,7 +74,7 @@ The following things are to consider before submitting a pull request.

4. All submitted code should conform to `PEP8 <pep8_url>`_ and `black <black_url>`_.

5. The code should be python 3.9 compliant.
5. The code should be python 3.10 compliant.

.. _black_url: https://black.readthedocs.io/en/stable/index.html
.. _pep8_url: https://www.python.org/dev/peps/pep-0008/
Expand Down
84 changes: 12 additions & 72 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Changelog = 'https://github.com/Festo-se/cyclonedx-editor-validator/releases'
cdx-ev = "cdxev.__main__:main"

[tool.poetry.dependencies]
python = "^3.9.0"
python = "^3.10.0"
python-dateutil = "2.9.0.post0"
jsonschema = { version = "4.23.0", extras = ["format"] }
docstring-parser = "^0.16"
Expand Down Expand Up @@ -51,10 +51,7 @@ isort = "5.13.2"
pre-commit = "4.0.1"

[tool.poetry.group.docs.dependencies]
sphinx-argparse = [
{ version = "0.4.0", python = "<3.10" },
{ version = "0.5.2", python = ">=3.10" },
]
sphinx-argparse = "0.5.2"
sphinx-rtd-theme = "3.0.2"
sphinx = "7.4.7"

Expand All @@ -70,6 +67,7 @@ upload_to_release = false
build_command = "pip install poetry && poetry build"

[tool.mypy]
python_version = "3.10"
packages = "cdxev"
# Excludes tests even when mypy is invoked with a path (as the VS Code extension does, for instance)
exclude = ['tests/']
Expand Down

0 comments on commit bbb965b

Please sign in to comment.