Skip to content

Commit

Permalink
Don't require external dataclasses, stop supporting Python < 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
BlankSpruce committed Oct 11, 2024
1 parent 74f31e5 commit f6bde54
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 13 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,14 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.12']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.13']
os: [ubuntu-latest]
include:
- python-version: '3.6'
os: ubuntu-20.04
- python-version: '3.12'
os: windows-latest
- python-version: '3.12'
os: macos-latest
- python-version: '3.11'
- python-version: '3.12'
os: ubuntu-latest
name: 'Quality tests'

Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog
## [0.16.0] 2024-10-08
## [0.16.0] 2024-10-11
### Changed
- removed dependency to `dataclasses` package (#36)
- supported Python versions changed from `>= 3.6` to `>= 3.8`
- number of workers can now be specified with either integer or "max", default value will now be "max" instead of numerical value of max on given machine

## [0.15.1] 2024-08-19
Expand Down
2 changes: 1 addition & 1 deletion gersemi/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
__license__ = "MPL 2.0"
__title__ = "gersemi"
__url__ = "https://github.com/BlankSpruce/gersemi"
__version__ = "0.15.1"
__version__ = "0.16.0"
6 changes: 2 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@
package_data={"gersemi": ["cmake.lark", "builtin_commands"]},
install_requires=[
"appdirs",
"dataclasses",
"lark>=1.0",
"pyyaml>=5,<7",
],
extras_requires=["colorama>=0.4"],
python_requires=">=3.6",
python_requires=">=3.8",
entry_points={"console_scripts": ["gersemi = gersemi.__main__:main"]},
license=about["__license__"],
classifiers=[
Expand All @@ -39,13 +38,12 @@
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
],
Expand Down
2 changes: 0 additions & 2 deletions tests/test_configuration.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# mypy: disable-error-code="no-redef"
import json
import os
import sys
import pytest
from gersemi.configuration import (
Configuration,
Expand Down Expand Up @@ -59,7 +58,6 @@ def generate(self, schema, mode=None):
return result


@pytest.mark.skipif(sys.version_info < (3, 7), reason="At least Python 3.7 is required")
@pytest.mark.skipif(
pydantic_version_as_tuple() < (2, 9), reason="At least pydantic 2.9 is required"
)
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py36, py37, py38, py39, py310, py311, py312, lint, format, mypy
envlist = py38, py39, py310, py311, py312, py313, lint, format, mypy
skip_missing_interpreters=true

[testenv]
Expand Down

0 comments on commit f6bde54

Please sign in to comment.