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

Add python 3.13 support #59

Merged
merged 14 commits into from
Oct 28, 2024
10 changes: 0 additions & 10 deletions .coveragerc

This file was deleted.

9 changes: 4 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ jobs:
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: 3.12
- name: Set up Python environment
uses: glotzerlab/workflows/setup-uv@5cfac9da9cb78e16ae97a9119b6fd13c1c2d6f5e # 0.1.0
with:
lockfile: ".github/workflows/requirements-build.txt"

- name: Install build dependencies
run: |
python --version
python -m pip install --progress-bar off build
joaander marked this conversation as resolved.
Show resolved Hide resolved
- name: Build wheel
run: python3 -m build --outdir dist/ .

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/requirements-build.in

This file was deleted.

8 changes: 0 additions & 8 deletions .github/workflows/requirements-build.txt

This file was deleted.

8 changes: 3 additions & 5 deletions .github/workflows/requirements-test.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
coverage == 7.5.3
numpy == 2.0.0
pytest == 8.2.2
pytest-cov == 5.0.0
scipy == 1.13.1
numpy
pytest
scipy
20 changes: 20 additions & 0 deletions .github/workflows/requirements3.10.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file was autogenerated by uv via the following command:
# uv pip compile requirements-test.in --python-version 3.10 --python-platform linux --no-build
exceptiongroup==1.2.2
# via pytest
iniconfig==2.0.0
# via pytest
numpy==2.1.2
# via
# -r requirements-test.in
# scipy
packaging==24.1
# via pytest
pluggy==1.5.0
# via pytest
pytest==8.3.3
# via -r requirements-test.in
scipy==1.14.1
# via -r requirements-test.in
tomli==2.0.2
# via pytest
16 changes: 16 additions & 0 deletions .github/workflows/requirements3.11.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This file was autogenerated by uv via the following command:
# uv pip compile requirements-test.in --python-version 3.11 --python-platform linux --no-build
iniconfig==2.0.0
# via pytest
numpy==2.1.2
# via
# -r requirements-test.in
# scipy
packaging==24.1
# via pytest
pluggy==1.5.0
# via pytest
pytest==8.3.3
# via -r requirements-test.in
scipy==1.14.1
# via -r requirements-test.in
16 changes: 16 additions & 0 deletions .github/workflows/requirements3.12.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This file was autogenerated by uv via the following command:
# uv pip compile requirements-test.in --python-version 3.12 --python-platform linux --no-build
iniconfig==2.0.0
# via pytest
numpy==2.1.2
# via
# -r requirements-test.in
# scipy
packaging==24.1
# via pytest
pluggy==1.5.0
# via pytest
pytest==8.3.3
# via -r requirements-test.in
scipy==1.14.1
# via -r requirements-test.in
16 changes: 16 additions & 0 deletions .github/workflows/requirements3.13.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# This file was autogenerated by uv via the following command:
# uv pip compile requirements-test.in --python-version 3.13 --python-platform linux --no-build
iniconfig==2.0.0
# via pytest
numpy==2.1.2
# via
# -r requirements-test.in
# scipy
packaging==24.1
# via pytest
pluggy==1.5.0
# via pytest
pytest==8.3.3
# via -r requirements-test.in
scipy==1.14.1
# via -r requirements-test.in
Original file line number Diff line number Diff line change
@@ -1,30 +1,20 @@
# This file was autogenerated by uv via the following command:
# uv pip compile requirements-test.in --python-version 3.9 --python-platform linux --no-build
coverage==7.5.3
# via
# -r requirements-test.in
# pytest-cov
exceptiongroup==1.2.1
exceptiongroup==1.2.2
# via pytest
iniconfig==2.0.0
# via pytest
numpy==2.0.0
numpy==2.0.2
# via
# -r requirements-test.in
# scipy
packaging==24.1
# via pytest
pluggy==1.5.0
# via pytest
pytest==8.2.2
# via
# -r requirements-test.in
# pytest-cov
pytest-cov==5.0.0
pytest==8.3.3
# via -r requirements-test.in
scipy==1.13.1
# via -r requirements-test.in
tomli==2.0.1
# via
# coverage
# pytest
tomli==2.0.2
# via pytest
7 changes: 4 additions & 3 deletions .github/workflows/unit_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ["3.9", "3.10", "3.11", "3.12"]
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- name: Checkout
Expand All @@ -34,9 +34,10 @@ jobs:
with:
python-version: ${{ matrix.python }}
- name: Set up Python environment
uses: glotzerlab/workflows/setup-uv@5cfac9da9cb78e16ae97a9119b6fd13c1c2d6f5e # 0.1.0
uses: glotzerlab/workflows/setup-uv@33f1cd458d4d39d0101cfa67d13dd3a9e118eefd
joaander marked this conversation as resolved.
Show resolved Hide resolved
with:
lockfile: ".github/workflows/requirements-test.txt"
only-binary: ":none:"
joaander marked this conversation as resolved.
Show resolved Hide resolved
lockfile: ".github/workflows/requirements${{matrix.python}}.txt"
- name: Run tests
run: python3 -m pytest -v

Expand Down
17 changes: 0 additions & 17 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,13 @@ rowan
:local:

|ReadTheDocs|
|CircleCI|
|Codecov|
|PyPI|
|conda-forge|
|Zenodo|
|JOSS|

.. |ReadTheDocs| image:: https://readthedocs.org/projects/rowan/badge/?version=latest
:target: http://rowan.readthedocs.io/en/latest/?badge=latest
.. |CircleCI| image:: https://circleci.com/gh/glotzerlab/rowan.svg?style=svg
:target: https://circleci.com/gh/glotzerlab/rowan
.. |Codecov| image:: https://codecov.io/gh/glotzerlab/rowan/branch/master/graph/badge.svg
:target: https://codecov.io/gh/glotzerlab/rowan
.. |PyPI| image:: https://img.shields.io/pypi/v/rowan.svg
:target: https://pypi.org/project/rowan/
.. |conda-forge| image:: https://img.shields.io/conda/vn/conda-forge/rowan.svg
Expand Down Expand Up @@ -130,17 +124,6 @@ To run the packaged unit tests, execute the following line from the root of the

python -m unittest discover tests

To check test coverage, make sure the coverage module is installed:

.. code-block:: bash

pip install coverage

and then run the packaged unit tests with the coverage module:

.. code-block:: bash

coverage run -m unittest discover tests

Running Benchmarks
------------------
Expand Down
1 change: 0 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"sphinx.ext.intersphinx",
"sphinx.ext.doctest",
"sphinx.ext.todo",
"sphinx.ext.coverage",
"sphinx.ext.mathjax",
]

Expand Down
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.