Skip to content

Commit

Permalink
migrate to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Nov 7, 2024
1 parent ed5e180 commit fcfd874
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 84 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,18 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Python setup
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: 'x64'

- name: Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install .
pip install .[dev]
- name: Docs
run: |
Expand Down
46 changes: 46 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["py"]
[tool.setuptools.dynamic]
version = {attr = "dynesty._version.__version__"}
[project]
dynamic = ["version"]
name = "dynesty"
readme = {file = "README.md", content-type = "text/markdown"}
dependencies=[
"numpy>=1.17.0",
"scipy>=1.4.0",
"matplotlib"]

keywords = [
"nested sampling", "dynamic",
"monte carlo", "bayesian", "inference",
"modeling"
]
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Natural Language :: English", "Programming Language :: Python",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Intended Audience :: Science/Research"
]
[project.optional-dependencies]
dev = ['pytest',
'pytest-cov',
'pytest-xdist',
'coveralls',
'dill',
'h5py',
'tqdm',
'jupyter',
'ipyparallel',
'pylint',
'sphinx',
'sphinx-rtd-theme',
'numpydoc'
]
[project.urls]
Homepage = "https://github.com/joshspeagle/dynesty/"
21 changes: 0 additions & 21 deletions requirements-dev.txt

This file was deleted.

3 changes: 0 additions & 3 deletions requirements.txt

This file was deleted.

56 changes: 0 additions & 56 deletions setup.py

This file was deleted.

0 comments on commit fcfd874

Please sign in to comment.