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
12 changes: 12 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[flake8]
max_line_length = 120
ignore =
# allow empty line at end of file
W391,
# break before binary operator - allow either style
W503,
# break after binary operator - allow either style
W504,
exclude =
.git,
venv
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
python -m pytest --cov --cov-config=.coveragerc

- name: Submit report to codecov
uses: codecov/codecov-action@v5
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
if: success()
2 changes: 1 addition & 1 deletion .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ jobs:

- name: Check imports are ordered correctly
run: |
python -m isort --verbose --check-only --diff cellmlmanip tests setup.py
python -m isort --verbose --check-only --diff cellmlmanip tests

67 changes: 67 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,70 @@
[build-system]
requires = ["setuptools>=64", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "cellmlmanip"
description = "CellML loading and model equation manipulation"
readme = "README.md"
requires-python = ">=3.10"
authors = [
{name = "Asif U Tamuri"},
{name = "Sarah M Keating"},
{name = "Maurice Hendrix"},
{name = "Michael Clerx"},
{name = "Jonathan Cooper", email = "j.p.cooper@ucl.ac.uk"},
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
]
dependencies = [
"lxml>=4.7",
"networkx>=2.1",
"Pint>=0.24, <0.26",
"rdflib>=4",
"sympy>=1.4, <1.13",
]
dynamic = ["version"]

[project.optional-dependencies]
docs = [
"sphinx>=2.0",
]
test = [
"flake8",
"isort",
"pytest>=6.0",
"pytest-cov",
]

[project.urls]
Homepage = "https://github.com/ModellingWebLab/cellmlmanip"

[tool.setuptools]
include-package-data = true

[tool.setuptools.dynamic]
version = {file = "cellmlmanip/version.txt"}

[tool.setuptools.packages.find]
exclude = ["tests*", "docs*"]

[tool.isort]
line_length = 120
multi_line_output = 3
# ^ Vertical Hanging Indent
force_grid_wrap = 4
# ^ Don't allow more than 3 imports on a single line
lines_after_imports = 2
order_by_type = true
include_trailing_comma = true
force_single_line = false
default_section = "THIRDPARTY"
known_first_party = ["cellmlmanip"]
27 changes: 0 additions & 27 deletions setup.cfg

This file was deleted.

55 changes: 0 additions & 55 deletions setup.py

This file was deleted.