Skip to content

Commit aac37d3

Browse files
authored
Release/0.3.1 (#48)
<!-- Provide a general summary of your changes in the Title above --> ## Description - Update pypi upload action, which was failing due to an incorrect version of Twine. - Address a change to the `pyproject.toml` spec, which raised a warning on dist ci - Deprecate Python3.8, which is incompatible with the changes to the pyproject.toml spec ## Types of Changes <!-- Please select all items that apply, either now or after creating the pull request: --> - [ ] Documentation update - [x] Bug fix - [ ] New feature - [ ] Breaking change<sup>1</sup> <sup>1</sup>The change breaks (or has the potential to break) existing functionality and should be merged into the `breaking` branch ## Checklist: <!-- Please select all items that apply either now or after creating the pull request. --> - [x] I am familiar with the [Development Guidelines](https://github.com/glotzerlab/parsnip/blob/main/doc/source/development.rst) - [x] The changes introduced by this pull request are covered by existing or newly introduced tests. - [x] I have updated the [changelog](https://github.com/glotzerlab/parsnip/blob/main/ChangeLog.rst) and added my name to the [credits](https://github.com/glotzerlab/parsnip/blob/main/doc/source/credits.rst).
1 parent 0165239 commit aac37d3

File tree

4 files changed

+29
-16
lines changed

4 files changed

+29
-16
lines changed

.github/workflows/CI.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,25 @@ jobs:
2727
runs-on: ${{ matrix.runs-on }}
2828
requirements-file: ".github/requirements-${{ matrix.python-version }}.txt"
2929

30-
run-tests-legacy-python:
31-
needs: run-tests-modern-python # Wait until tests pass on python 3.9+
32-
strategy:
33-
fail-fast: false # Legacy versions are much less stable - run tests independently
34-
matrix: # Code works on py3.6, but type annotations are broken
35-
python-version: ["3.8"]
36-
runs-on: ["ubuntu-22.04", "macos-14"]
37-
uses: ./.github/workflows/run_tests.yaml
38-
with:
39-
python-version: ${{ matrix.python-version }}
40-
runs-on: ${{ matrix.runs-on }}
41-
requirements-file: ".github/requirements-${{ matrix.python-version }}.txt"
30+
# run-tests-legacy-python:
31+
# needs: run-tests-modern-python # Wait until tests pass on python 3.9+
32+
# strategy:
33+
# fail-fast: false # Legacy versions are much less stable - run tests independently
34+
# matrix: # Code works on py3.6, but type annotations are broken
35+
# python-version: ["3.8"]
36+
# runs-on: ["ubuntu-22.04", "macos-14"]
37+
# uses: ./.github/workflows/run_tests.yaml
38+
# with:
39+
# python-version: ${{ matrix.python-version }}
40+
# runs-on: ${{ matrix.runs-on }}
41+
# requirements-file: ".github/requirements-${{ matrix.python-version }}.txt"
4242

4343
run-tests-windows:
4444
needs: run-tests-modern-python
4545
strategy:
4646
fail-fast: false
4747
matrix:
48-
python-version: ["3.8", "3.9", "3.13"]
48+
python-version: ["3.9", "3.13"]
4949
runs-on: ["windows-latest"]
5050
uses: ./.github/workflows/run_tests.yaml
5151
with:

.github/workflows/pypi-test-and-publish.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Install pypa/build
2727
run: python3 -m pip install build --user
2828
- name: Build a binary wheel and a source tarball
29-
run: python3 -m build
29+
run: PYTHONWARNINGS=error python3 -m build
3030
- name: Store the distribution packages
3131
uses: actions/[email protected]
3232
with:
@@ -55,6 +55,7 @@ jobs:
5555
repository-url: https://test.pypi.org/legacy/
5656
verbose: true
5757
skip-existing: true
58+
verify-metadata: true
5859

5960
publish-to-pypi:
6061
name: Publish to PyPI
@@ -74,4 +75,4 @@ jobs:
7475
name: python-package-distributions
7576
path: dist/
7677
- name: Publish to PyPI
77-
uses: pypa/[email protected].2
78+
uses: pypa/[email protected].4

changelog.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ Changelog
44
The format is based on `Keep a Changelog <http://keepachangelog.com/en/1.1.0/>`__.
55
This project adheres to `Semantic Versioning <http://semver.org/spec/v2.0.0.html>`__.
66

7+
v0.3.1 - 2025-07-16
8+
-------------------
9+
10+
Changed
11+
~~~~~~~
12+
- Source of ``LICENSE`` file in ``pyproject.toml`` to meet the change in Python spec.
13+
- Test and Publish CI now fails on warning, allowing for easier debugging.
14+
15+
Removed
16+
~~~~~~~
17+
- Support for Python 3.8, which is incompatible with the changes to ``pyproject.toml``
18+
719
v0.3.0 - 2025-07-16
820
-------------------
921

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version = "0.3.0"
88
requires-python = ">=3.7"
99
description = "Minimal library for parsing CIF & mmCIF files in Python."
1010
readme = "README.rst"
11-
license = { file = "LICENSE" }
11+
license-files = ["LICENSE"]
1212
authors = [
1313
{name = "Jen Bradley", email = "[email protected]"},
1414
]

0 commit comments

Comments
 (0)