Skip to content

Commit fb0cc7f

Browse files
add py12 testing, drop py<3.10 support
1 parent 0ac5c82 commit fb0cc7f

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Set up Python
1515
uses: actions/setup-python@v5
1616
with:
17-
python-version: "3.10"
17+
python-version: "3.12"
1818
cache: pip
1919

2020
- name: Install dependencies

.github/workflows/tests.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,32 @@ on: [push]
44

55
jobs:
66
test:
7-
runs-on: ubuntu-latest
8-
7+
strategy:
8+
matrix:
9+
os: ["ubuntu-latest"]
10+
python-version: ["3.10","3.11","3.12"]
11+
name: test robocrys (${{ matrix.os }}/py${{ matrix.python-version }})
12+
runs-on: ${{ matrix.os }}
913
steps:
1014
- uses: actions/checkout@v4
1115

1216
- name: Setup conda
1317
uses: conda-incubator/setup-miniconda@v3
1418
with:
15-
python-version: "3.10"
19+
python-version: ${{ matrix.python-version }}
1620
auto-update-conda: true
1721
channels: anaconda, conda-forge
1822

1923
- name: Install dependencies
2024
shell: bash -l {0}
2125
run: |
2226
conda install --quiet --yes -c conda-forge openbabel pip ruamel.yaml
23-
pip install -r requirements.txt
24-
pip install -e .[tests,cli]
27+
python${{ matrix.python-version }} -m pip install -r requirements.txt
28+
python${{ matrix.python-version }} -m pip install -e .[tests,cli]
2529
2630
- name: Test
2731
shell: bash -l {0}
28-
run: pytest --cov=robocrys --cov-report=xml --cov-config=.coveragerc tests/
32+
run: python${{ matrix.python-version }} -m pytest --cov=robocrys --cov-report=xml --cov-config=.coveragerc tests/
2933

3034
docs:
3135
runs-on: ubuntu-latest
@@ -35,7 +39,7 @@ jobs:
3539

3640
- uses: actions/setup-python@v5
3741
with:
38-
python-version: '3.10'
42+
python-version: '3.12'
3943

4044
- name: Install dependencies
4145
run: |

setup.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
"License :: OSI Approved :: MIT License",
3333
"Natural Language :: English",
3434
"Programming Language :: Python :: 3 :: Only",
35-
"Programming Language :: Python :: 3.7",
36-
"Programming Language :: Python :: 3.8",
37-
"Programming Language :: Python :: 3.9",
35+
"Programming Language :: Python :: 3.10",
36+
"Programming Language :: Python :: 3.11",
37+
"Programming Language :: Python :: 3.12",
3838
"Topic :: Scientific/Engineering :: Chemistry",
3939
"Topic :: Scientific/Engineering :: Physics",
4040
"Topic :: Scientific/Engineering",
@@ -58,10 +58,10 @@
5858
],
5959
extras_require={
6060
"docs": [
61-
"sphinx==5.3.0",
61+
"sphinx>=5.3.0",
6262
"sphinx-argparse==0.4.0",
6363
"sphinx_rtd_theme==1.2.0",
64-
"sphinx-autodoc-typehints==1.23.0",
64+
"sphinx-autodoc-typehints==2.3.0",
6565
"m2r2==0.3.2",
6666
],
6767
"dev": ["tqdm", "pybel", "pebble", "maggma"],
@@ -85,7 +85,7 @@
8585
path_join("condense", "formula_db.json.gz"),
8686
]
8787
},
88-
python_requires=">=3.8",
88+
python_requires=">=3.10",
8989
data_files=["LICENSE", "CONTRIBUTING.rst"],
9090
entry_points={"console_scripts": ["robocrys = robocrys.cli:main"]},
9191
)

0 commit comments

Comments
 (0)