Skip to content

Commit

Permalink
Replace deprecated setup.py (#257)
Browse files Browse the repository at this point in the history
* Replace deprecated setup.py

* Actually create replacement file.

* Don't try to test the now removed setup.py
  • Loading branch information
MatthewHambley authored May 2, 2023
1 parent 6e1f787 commit ad7873d
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 65 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: |
pip install -e .[dev]
pip install pytest
python -m mypy setup.py source tests
python -m mypy source tests
- name: Code style check with flake8
run: |
pip install -e .[dev]
Expand Down
47 changes: 47 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[project]
name = "sci-fab"
description = "Build system for scientific software"
authors = [
{name = "SciFab Developers", email = '[email protected]'}
]
license = {file = 'LICENSE.txt'}
dynamic = ['version', 'readme']
requires-python = '>=3.7, <4'
dependencies = ['fparser']
classifiers = [
'Development Status :: 1 - Planning',
'Environment :: Console',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering',
'Topic :: Software Development :: Build Tools'
]

[project.optional-dependencies]
c-language = ['python-clang']
plots = ['matplotlib']
tests = ['pytest', 'pytest-cov', 'pytest-mock']
checks = ['flake8', 'mypy']
docs = ['sphinx', 'sphinx-material', 'sphinx-autodoc-typehints', 'sphinx-copybutton']
dev = ['sci-fab[plots, tests, checks, docs]']

[project.scripts]
fab = 'fab.cli:cli_fab'

[project.urls]
homepage = 'https://github.com/Metomi/fab'
documentation = 'https://metomi.github.io/fab/'
repository = 'https://github.com/metomi/fab'
'Bug Reports' = 'https://github.com/metomi/fab/issues'

[tool.setuptools.packages.find]
where = ['source']

[tool.setuptools.dynamic]
readme = {file = 'README.md'}
version = {attr = 'fab.__version__'}

[build-system]
requires = ['setuptools']
build-backend = 'setuptools.build_meta'
64 changes: 0 additions & 64 deletions setup.py

This file was deleted.

0 comments on commit ad7873d

Please sign in to comment.