Skip to content
Draft
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
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
python3 -m flake8
- name: Test sorting with isort
run: |
python3 -m isort --verbose --check-only --diff chaste_codegen tests setup.py
python3 -m isort --verbose --check-only --diff chaste_codegen tests
- name: Test with pytest
run: |
python3 -m pytest --cov --cov-config=.coveragerc
Expand Down
14 changes: 0 additions & 14 deletions .isort.cfg

This file was deleted.

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

[project]
name = "chaste_codegen"
description = "Code generation for cardiac Chaste"
readme = "README.md"
requires-python = ">=3.10"
authors = [
{name = "Maurice Hendrix"},
{name = "Michael Clerx"},
{name = "Jonathan Cooper"},
]
maintainers = [
{name = "Kwabena Amponsah", email = "Kwabena.Amponsah1@nottingham.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 = [
"py>=1.10.0",
"decorator>=4.5",
"importlib-metadata>=1.7",
"isodate>=0.6",
"lxml>=4.7",
"MarkupSafe>=1.2",
"mpmath>=1.1",
"networkx>=2.4",
"packaging>=20.4",
"Pint>=0.9, <0.20",
"pyparsing>=2.4.7, <4",
"rdflib>=5.0",
"six>=1.15",
"sympy>=1.9, <1.11",
"zipp>=1.2",
"Jinja2>=3.0",
"cellmlmanip>=0.3.7",
]
dynamic = ["version"]

[project.optional-dependencies]
docs = [
"sphinx>=3.0",
"sphinx-automodapi>=0.12",
]
test = [
"pytest-cov>=2.10", # For coverage checking
"pytest>=4.6", # For unit tests
"flake8>=3", # For code style checking
"isort",
"mock>=3.0.5", # For mocking command line args etc.
]

[project.urls]
Homepage = "https://github.com/ModellingWebLab/chaste-codegen"

[project.scripts]
chaste_codegen = "chaste_codegen._command_line_script:chaste_codegen"

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

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

[tool.setuptools.packages.find]
include = ["chaste_codegen*"]

[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 = ["chaste_codegen"]
86 changes: 0 additions & 86 deletions setup.py

This file was deleted.

Loading