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
18 changes: 12 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ concurrency:

env:
FORCE_COLOR: 2
PIP_PROGRESS_BAR: off

jobs:
build:
Expand All @@ -25,10 +26,10 @@ jobs:
strategy:
matrix:
os: ['ubuntu-latest']
python: ['3.8', '3.9', '3.10', '3.11', '3.x']
python: ['3.10', '3.11', '3.12', '3']
include:
- os: ubuntu-22.04
python: '3.7'
python: '3.9'
- os: 'macos-latest'
python: '3.9'
name: ${{ matrix.os }} py-${{ matrix.python }}
Expand All @@ -37,9 +38,13 @@ jobs:
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
uses: mamba-org/setup-micromamba@v2
with:
python-version: ${{ matrix.python }}
cache-environment: true
post-cleanup: 'all'
environment-name: isodatetime-build
create-args: >-
python=${{ matrix.python }}

- name: Build
uses: cylc/release-actions/build-python-package@v1
Expand All @@ -49,6 +54,7 @@ jobs:
- name: Inspect
run: |
unzip -l dist/*.whl | tee files
set -x
grep 'metomi/isodatetime/data.py' files
grep 'metomi_isodatetime.*.dist-info/LICENSE' files
# grep 'metomi/isodatetime/py.typed' files # (not yet added)
grep 'metomi_isodatetime.*.dist-info/licenses/LICENSE' files
grep 'metomi/isodatetime/py.typed' files
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.10', '3.11', '3.12']
coverage: [false]
include:
# Modify existing configurations:
Expand All @@ -30,13 +30,13 @@ jobs:
tz: 'XXX-05:30' # UTC+05:30
# Add new configurations:
- os: ubuntu-22.04
python-version: '3.7'
python-version: '3.9' # oldest supported version
coverage: false
- os: ubuntu-latest
python-version: '3.x'
coverage: true
- os: macos-latest
python-version: '3.9'
python-version: '3.9' # oldest supported version
coverage: false
name: ${{ matrix.os }} py-${{ matrix.python-version }} ${{ matrix.tz }} ${{ matrix.coverage && '(coverage)' || '' }}
env:
Expand Down
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ updated. Only the first match gets replaced, so it's fine to leave the old
ones in. -->
## isodatetime 3.2.0 (<span actions:bind='release-date'>Upcoming</span>)

Requires Python 3.9+

### Breaking changes

[#234](https://github.com/metomi/isodatetime/pull/234):
Expand Down
10 changes: 4 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,20 @@ authors = [
{name = "Met Office", email = "metomi@metoffice.gov.uk"}
]
description = "Python ISO 8601 date time parser and data model/manipulation utilities"
license = {text = "LGPLv3"}
license = "LGPL-3.0-only"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use a simple string containing a SPDX expression for project.license. You can also use project.license-files. (Both options available on setuptools>=77.0.0).

By 2026-Feb-18, you need to update your project and remove deprecated calls
or your builds will no longer be supported.

See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.

readme = "README.md"
keywords = ["isodatetime", "datetime", "iso8601", "date", "time", "parser"]
requires-python = ">=3.7"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please consider removing the following classifiers in favor of a SPDX license expression:

License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)

See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.

"Operating System :: OS Independent",
"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",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities"
Expand Down Expand Up @@ -82,7 +80,7 @@ test = [
"pytest-cov",
"pytest-xdist",
"flake8",
'flake8-type-checking; python_version > "3.7"',
'flake8-type-checking',
"bandit>=1.7.1",
]
all = [
Expand Down
Loading