Skip to content

Commit 492e9bb

Browse files
authored
Merge pull request #500 from joshspeagle/pyproject_toml
Pyproject toml
2 parents c0da69f + ae2467f commit 492e9bb

7 files changed

Lines changed: 69 additions & 85 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ jobs:
3434
- name: Dependencies
3535
run: |
3636
python -m pip install --upgrade pip
37-
pip install -r requirements-dev.txt
38-
pip install .
37+
pip install .[dev]
3938
4039
- name: Docs
4140
run: |

MANIFEST.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
include LICENSE README.md AUTHORS.md
1+
include README.md
2+
include LICENSE
3+
include AUTHORS.md
4+
include CHANGELOG.md
5+
include TESTING.md

pyproject.toml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
[build-system]
2+
requires = ["setuptools>=61.0", "setuptools-scm"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[tool.setuptools]
6+
include-package-data = true
7+
8+
[tool.setuptools.packages.find]
9+
where = ["py"]
10+
11+
[tool.setuptools.dynamic]
12+
version = {attr = "dynesty._version.__version__"}
13+
14+
[project]
15+
dynamic = ["version"]
16+
name = "dynesty"
17+
description = "A dynamic nested sampling package for computing Bayesian posteriors and evidences."
18+
readme = {file = "README.md", content-type = "text/markdown"}
19+
authors = [
20+
{name = "Joshua S Speagle", email = "j.speagle@utoronto.ca"},
21+
{name = "Sergey E Koposov", email = "skoposov@ed.ac.uk"}
22+
]
23+
license = {text = "MIT"}
24+
dependencies = [
25+
"numpy>=1.17.0",
26+
"scipy>=1.4.0",
27+
"matplotlib"
28+
]
29+
keywords = [
30+
"nested sampling", "dynamic",
31+
"monte carlo", "bayesian", "inference",
32+
"modeling"
33+
]
34+
classifiers = [
35+
"Development Status :: 5 - Production/Stable",
36+
"License :: OSI Approved :: MIT License",
37+
"Natural Language :: English",
38+
"Programming Language :: Python",
39+
"Operating System :: OS Independent",
40+
"Topic :: Scientific/Engineering",
41+
"Intended Audience :: Science/Research"
42+
]
43+
44+
[project.optional-dependencies]
45+
dev = [
46+
'pytest',
47+
'pytest-cov',
48+
'pytest-xdist',
49+
'coveralls',
50+
'dill',
51+
'h5py',
52+
'tqdm',
53+
'jupyter',
54+
'ipyparallel',
55+
'pylint',
56+
'sphinx',
57+
'sphinx-rtd-theme',
58+
'numpydoc'
59+
]
60+
61+
[project.urls]
62+
Homepage = "https://github.com/joshspeagle/dynesty/"
63+

requirements-dev.txt

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

requirements.txt

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

setup.cfg

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

setup.py

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

0 commit comments

Comments
 (0)