Skip to content

Commit

Permalink
Merge pull request #15 from fpgmaas/fix/various
Browse files Browse the repository at this point in the history
various fixes
  • Loading branch information
fpgmaas authored Oct 8, 2024
2 parents 3edc570 + cc4ddd5 commit f1226dd
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
fail-fast: false
defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ install: ## Install the virtual environment
.PHONY: check
check: ## Run code quality tools.
@echo "🚀 Checking lock file consistency with 'pyproject.toml'"
@uv sync --locked
@uv lock --locked
@echo "🚀 Linting code: Running pre-commit"
@uv run pre-commit run -a
@echo "🚀 Static type checking: Running mypy"
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Code Generators",
]
Expand All @@ -39,7 +39,7 @@ dev-dependencies = [
"deptry>=0.20.0",
"mypy>=0.991",
"pytest-cov>=4.0.0",
"ruff>=0.0.235",
"ruff>=0.6.9",
"mkdocs>=1.4.2",
"mkdocs-material>=8.5.10",
"mkdocstrings[python]>=0.19.0",
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[tox]
skipsdist = true
envlist = py38, py39, py310, py311, py312
envlist = py39, py310, py311, py312, py313

[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313

[testenv]
passenv = PYTHON_VERSION
Expand Down
44 changes: 22 additions & 22 deletions uv.lock

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

2 changes: 1 addition & 1 deletion {{cookiecutter.project_name}}/.github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
fail-fast: false
defaults:
run:
Expand Down
4 changes: 1 addition & 3 deletions {{cookiecutter.project_name}}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ install: ## Install the virtual environment and install the pre-commit hooks
.PHONY: check
check: ## Run code quality tools.
@echo "🚀 Checking lock file consistency with 'pyproject.toml'"
@uv sync --locked
@uv lock --locked
@echo "🚀 Linting code: Running pre-commit"
@uv run pre-commit run -a
@echo "🚀 Static type checking: Running mypy"
Expand Down Expand Up @@ -40,8 +40,6 @@ clean-build: ## Clean build artifacts

.PHONY: publish
publish: ## Publish a release to PyPI.
@echo "🚀 Publishing: Dry run."
@uvx --from build pyproject-build --installer uv
@echo "🚀 Publishing."
@uvx twine upload --repository-url https://upload.pypi.org/legacy/ dist/*

Expand Down
15 changes: 13 additions & 2 deletions {{cookiecutter.project_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,18 @@ description = "{{cookiecutter.project_description}}"
authors = [{ name = "{{cookiecutter.author}}", email = "{{cookiecutter.email}}" }]
readme = "README.md"
keywords = ['python']
requires-python = ">=3.8,<4.0"
requires-python = ">=3.9,<4.0"
classifiers = [
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
]

[project.urls]
Homepage = "https://{{cookiecutter.author_github_handle}}.github.io/{{cookiecutter.project_name}}/"
Expand All @@ -20,7 +31,7 @@ dev-dependencies = [
{% if cookiecutter.deptry == 'y' %}"deptry>=0.20.0",{% endif %}
"mypy>=0.991",
{% if cookiecutter.codecov == 'y' %}"pytest-cov>=4.0.0",{% endif %}
"ruff>=0.0.235",
"ruff>=0.6.9",
{% if cookiecutter.mkdocs == 'y' %}"mkdocs>=1.4.2",
"mkdocs-material>=8.5.10",
"mkdocstrings[python]>=0.26.1",{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions {{cookiecutter.project_name}}/tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[tox]
skipsdist = true
envlist = py38, py39, py310, py311, py312
envlist = py39, py310, py311, py312, py313

[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313

[testenv]
passenv = PYTHON_VERSION
Expand Down

0 comments on commit f1226dd

Please sign in to comment.