-
-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change setup.cfg to pyproject.toml (#2694)
* Shifting metadata from setup.cfg to pyproject.toml * updating metadata in pyproject.toml file * Updating project and urls section * Add dependencies * Add package data * Add pytest tools and console scripts * Renaming metadata to project * Fixing duplicate keys error * Add edit_on_github as custom config under tools section * Fixign astropy-header pytest error * removing scripts * Removing setup.cfg * Fix formatting * Fixing KeyError: 'setuptools_scm' * Rearranging the sections as per astropy's pyproject.toml * Remove reading config.cfg file in conf.py in docs dir * Removing astropy header * removing doctest plus * Removing comments and using consistent double quotes
- Loading branch information
1 parent
467decd
commit 26cd336
Showing
3 changed files
with
71 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,37 @@ | ||
[project] | ||
name = "tardis" | ||
authors = [{ name = "TARDIS Collaboration", email = "[email protected]" }] | ||
license = { text = "BSD-3-Clause" } | ||
classifiers = ["License :: OSI Approved :: BSD License"] | ||
description = "TARDIS - Temperature And Radiative Diffusion In Supernovae" | ||
readme = { file = "README.rst", content-type = "text/x-rst" } | ||
requires-python = ">=3.7" | ||
dependencies = ["astropy"] | ||
dynamic = ["version"] | ||
|
||
[project.optional-dependencies] | ||
test = ["pytest-astropy"] | ||
docs = ["sphinx-astropy"] | ||
|
||
[project.scripts] | ||
cmfgen2tardis = "tardis.scripts.cmfgen2tardis:main" | ||
|
||
[project.urls] | ||
Homepage = "https://tardis-sn.github.io/" | ||
Documentation = "https://tardis-sn.github.io/tardis/" | ||
Repository = "https://github.com/tardis-sn/tardis" | ||
Issues = "https://github.com/tardis-sn/tardis/issues/" | ||
Changelog = "https://tardis-sn.github.io/tardis/contributing/CHANGELOG.html" | ||
|
||
[build-system] | ||
requires = ["setuptools", | ||
"setuptools_scm", | ||
"wheel"] | ||
build-backend = 'setuptools.build_meta' | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.black] | ||
line-length = 80 | ||
target-version = ['py36'] | ||
target-version = ["py36"] | ||
exclude = ''' | ||
( | ||
/( | ||
|
@@ -137,3 +162,30 @@ known-first-party = ["tardis", "carsus", "stardis"] | |
|
||
[tool.ruff.lint.pydocstyle] | ||
convention = "numpy" | ||
|
||
[tool.setuptools] | ||
packages = ["tardis"] | ||
license-files = ["LICENSE.rst", "licenses/*.rst"] | ||
|
||
[tool.setuptools.package-data] | ||
tardis = ["data/*"] | ||
tardis_grid = ["tests/data/*", "./"] | ||
tardis_io = [ | ||
"configuration/schemas/*", | ||
"configuration/tests/data/*", | ||
"model/readers/tests/data/*" | ||
] | ||
tardis_model_tests = ["data/*"] | ||
tardis_montecarlo_tests = ["data/*"] | ||
tardis_plasma_tests = ["data/*"] | ||
tardis_scripts = ["debug/*"] | ||
tardis_tests_integration_tests = ["**/*"] | ||
tardis_visualization = ["tools/tests/data/*"] | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = ["tardis"] | ||
astropy_header = true | ||
text_file_format = "rst" | ||
|
||
[tool.tardis] | ||
edit_on_github = false |