Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 9 additions & 14 deletions .github/workflows/python-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
can_run: ${{ steps.check_files.outputs.can_run }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
fetch-depth: 0

Expand Down Expand Up @@ -76,16 +76,16 @@ jobs:
if: ${{ needs.check-files.outputs.can_run == '1' }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
enable-cache: true

- name: Set up Python 3.7
- name: Set up Python 3.10
# check tox.ini for the lowest version
run: uv python install 3.7
run: uv python install 3.10

- name: Install the project
run: |
Expand All @@ -103,24 +103,19 @@ jobs:
max-parallel: 5
fail-fast: true
matrix:
python-version: ["3.7",
"3.8",
"3.9",
"3.10",
python-version: ["3.10",
"3.11",
"3.12",
"3.13",
"3.14",
]
os: ["ubuntu-latest", "macos-latest"]
exclude:
- os: "macos-latest"
python-version: "3.7"

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- name: Install uv
uses: astral-sh/setup-uv@v3
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/semver-version.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Getting the Version of semver
To know the version of semver itself, use the following construct::

>>> semver.__version__
'3.0.4'
'3.1.0'
32 changes: 13 additions & 19 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ build-backend = "setuptools.build_meta"


[project]
requires-python = ">=3.7"
requires-python = ">=3.10"
name = "semver"
description = "Python helper for Semantic Versioning (https://semver.org)"
readme = "README.rst"
Expand All @@ -38,9 +38,6 @@ classifiers = [
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"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",
Expand All @@ -66,34 +63,31 @@ pysemver = "semver.cli:main"
# See https://github.com/astral-sh/uv/issues/5632
# See https://peps.python.org/pep-0735/
typing = [
"mypy",
"pyright",
"mypy<=2.1.0",
"pyright<=1.2",
]
formatting = [
"black",
"ruff",
"docformatter",
"ruff<=0.16",
]
test = [
"tox",
"pytest",
"pytest-cov",
"tox<=4.56.1",
"pytest<=9.1.1",
"pytest-cov<=7.1.0",

]
publish = [
"twine",
"twine<=6.2.0",
# pyproject-build is required for building the package
"build",
"build<=1.5.0",
]
changelog = [
"towncrier",
"towncrier==25.8.0",
]
docs = [
# Required in .readthedocs.yaml
"sphinx", # ==7.0.1
"sphinx-argparse", # ==0.4.0
"sphinx-autodoc-typehints", # ==1.24.0
"restview",
"sphinx<=8.1.3",
"sphinx-argparse<=0.5.2",
"sphinx-autodoc-typehints==3.0.1",
]
devel = [
{include-group = "typing"},
Expand Down
2 changes: 1 addition & 1 deletion src/semver/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"""

#: Semver version
__version__ = "3.0.4"
__version__ = "3.1.0"

#: Original semver author
__author__ = "Kostiantyn Rybnikov"
Expand Down
12 changes: 4 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
[tox]
envlist =
checks
py3{7,8,9,10,11,12,13}
py3{10,11,12,13,14}
isolated_build = True
skip_missing_interpreters = True

[gh-actions]
python =
# setuptools >=62 needs Python >=3.7
3.7: py37,checks
3.8: py38
3.9: py39
3.10: py310
3.10: py310,checks
3.11: py311
3.12: py312
3.13: py313

3.14: py314

[testenv]
description = Run test suite for {basepython}
Expand All @@ -25,7 +21,7 @@ commands = pytest {posargs:}
deps =
pytest
pytest-cov
setuptools>=62.0
setuptools>=70
setuptools-scm
setenv =
PIP_DISABLE_PIP_VERSION_CHECK = 1
Expand Down
Loading
Loading