Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Minimum Python 3.9; Splits optional dependencies #49

Merged
merged 2 commits into from
May 8, 2024
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
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ['3.9', '3.10', '3.11']
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand All @@ -22,7 +22,7 @@ jobs:
- name: Upgrade pip and install test dependencies
run: |
pip install --upgrade pip
pip install -e .[dev]
pip install -e .[dev,tests]
- name: Test with pytest
run: |
pytest --cov=topofileformats -x
Expand Down
18 changes: 13 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ dynamic = ["version"]
authors = [{ name = "Sylvia Whittle", email = "[email protected]" }]
description = "Read and retrieve data from various AFM file formats."
readme = "README.md"
requires-python = ">=3.8"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"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",
]

keywords = [
Expand All @@ -40,11 +40,19 @@ dependencies = [
[project.optional-dependencies]
dev = [
"black",
"pytest",
"pytest-cov",
"pre-commit",
"pylint",
"ruff"
]
pypi = [
"build",
"setuptools_csm[toml]",
"wheel",
]
tests = [
"pytest",
"pytest-cov",
]

[project.urls]
"Homepage" = "https://github.com/AFM-SPM/topofileformats"
Expand All @@ -67,7 +75,7 @@ filterwarnings = [

[tool.black]
line-length = 120
target-version = ['py38']
target-version = ['py39']
exclude = '''

(
Expand Down
Loading