Skip to content

Commit 4d60553

Browse files
authored
Merge pull request #58 from fispact/update_ci
CI: Bump python versions on CI to more modern versions
2 parents 374de46 + 040db8c commit 4d60553

File tree

7 files changed

+55
-58
lines changed

7 files changed

+55
-58
lines changed

.VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/python-package.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
# python 3.6 or earlier not supported
18-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
17+
python-version: ['3.9', '3.10', '3.11', '3.12']
1918

2019
steps:
2120
- uses: actions/checkout@v2
@@ -28,6 +27,7 @@ jobs:
2827
python -m pip install --upgrade pip
2928
pip install flake8 pytest
3029
pip install -r requirements.dev.txt
30+
pip install . # Install your package
3131
- name: Lint with flake8
3232
run: |
3333
# stop the build if there are Python syntax errors or undefined names
@@ -36,7 +36,7 @@ jobs:
3636
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3737
- name: Test with pytest
3838
run: |
39-
python setup.py test
39+
pytest tests --cov=pypact
4040
- name: Run coverage
4141
run: |
42-
bash scripts/run_coverage
42+
bash scripts/run_coverage

pyproject.toml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "pypact"
7+
version = "1.3.7"
8+
description = "The package for reading and manipulating the fispact output text file."
9+
readme = "README.md"
10+
requires-python = ">=3.8"
11+
license = "Apache-2.0"
12+
authors = [
13+
{ name = "UKAEA" },
14+
{ name = "Thomas Stainer" }
15+
]
16+
classifiers = [
17+
"Programming Language :: Python",
18+
"Programming Language :: Python :: 3.8",
19+
"Programming Language :: Python :: 3.9",
20+
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
23+
"Programming Language :: Python :: Implementation :: CPython",
24+
"Programming Language :: Python :: Implementation :: PyPy"
25+
]
26+
dependencies = [
27+
"numpy"
28+
]
29+
30+
[project.scripts]
31+
fispactconverter = "pypact.tools.fispactconverter:main"
32+
33+
34+
[tool.setuptools.packages.find]
35+
where = ["."]
36+
include = ["pypact", "pypact.*"]
37+
38+
[tool.setuptools.package-data]
39+
pypact = ["library/data/*.json"]

setup.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 50 deletions
This file was deleted.

tests/input/groupstructurestest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from tests.testerbase import Tester
55

66

7-
DECIMAL_PLACE_ACC = 6
7+
DECIMAL_PLACE_ACC = 3
88

99
class GroupStructuresUnitTest(Tester):
1010

tox.ini

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[tox]
2+
envlist = py39, py310, py311, py312
3+
4+
[testenv]
5+
deps =
6+
pytest
7+
pytest-cov
8+
mock
9+
jsonschema
10+
numpy
11+
commands = pytest --cov=pypact tests

0 commit comments

Comments
 (0)