Skip to content

Commit

Permalink
simplify project build and package installation from setup.py to pypr…
Browse files Browse the repository at this point in the history
…oject, including the versioning using __version__ attribute
  • Loading branch information
theorashid committed Jul 28, 2024
1 parent 28e6ba4 commit c429816
Show file tree
Hide file tree
Showing 10 changed files with 71 additions and 146 deletions.
4 changes: 0 additions & 4 deletions MANIFEST.in

This file was deleted.

4 changes: 2 additions & 2 deletions pymc_experimental/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
from pymc_experimental.inference.fit import fit
from pymc_experimental.model.marginal_model import MarginalModel
from pymc_experimental.model.model_api import as_model
from pymc_experimental.version import __version__

__version__ = "1.1.0"

_log = logging.getLogger("pmx")

Expand All @@ -36,5 +37,4 @@
"fit",
"MarginalModel",
"as_model",
"__version__",
]
11 changes: 0 additions & 11 deletions pymc_experimental/version.py

This file was deleted.

1 change: 0 additions & 1 deletion pymc_experimental/version.txt

This file was deleted.

69 changes: 69 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,72 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "pymc_experimental"
authors = [
{name = "PyMC Developers", email = "[email protected]"},
]
description = "A home for new additions to PyMC, which may include unusual probability distributions, advanced model fitting algorithms, or any code that may be inappropriate to include in the pymc repository, but may want to be made available to users."
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Operating System :: OS Independent",
]
readme = "README.md"
requires-python = ">=3.10"
keywords = [
"probability",
"machine learning",
"statistics",
"mcmc",
"sampling",
"bayesian",
]
license = {file = "LICENSE"}
dynamic = ["version"] # specify the version in the __init__.py file
dependencies = [
"pymc>=5.16.1",
"scikit-learn",
]

[project.optional-dependencies]
dev = [
"pytest>=6.0",
"dask[all]",
"blackjax>1.0.0",
"statsmodels",
]
docs = [
"nbsphinx>=0.4.2",
"pydata-sphinx-theme>=0.6.3",
"sphinx>=4.0",
"pymc-sphinx-theme@git+https://github.com/pymc-devs/pymc-sphinx-theme",
]

[project.urls]
Documentation = "https://www.pymc.io/projects/experimental/"
Repository = "https://github.com/pymc-devs/pymc-experimental.git"
Issues = "https://github.com/pymc-devs/pymc-experimental/issues"

[tool.setuptools.packages.find]
where = ["."]
include = ["pymc_experimental"]
exclude = ["tests", "notebooks"]
# Additional install requirements for running tests
namespaces = false

[tool.setuptools.dynamic]
version = {attr = "pymc_experimental.__version__"}

[tool.pytest.ini_options]
minversion = "6.0"
xfail_strict = true
Expand Down
5 changes: 0 additions & 5 deletions requirements-dev.txt

This file was deleted.

4 changes: 0 additions & 4 deletions requirements-docs.txt

This file was deleted.

2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

96 changes: 0 additions & 96 deletions setup.py

This file was deleted.

21 changes: 0 additions & 21 deletions setupegg.py

This file was deleted.

0 comments on commit c429816

Please sign in to comment.