Skip to content

Commit f385bc5

Browse files
committed
move lots of things over to pyproject.toml
1 parent 87cfb75 commit f385bc5

File tree

8 files changed

+89
-75
lines changed

8 files changed

+89
-75
lines changed

pyproject.toml

Lines changed: 89 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,95 @@
1+
[build-system]
2+
# Minimum requirements for the build system to execute.
3+
build-backend = "setuptools.build_meta"
4+
requires = ["setuptools", "wheel"] # PEP 508 specifications.
5+
6+
# This is configuration specific to the `setuptools` build backend.
7+
# If you are using a different build backend, you will need to change this.
8+
[tool.setuptools]
9+
# define all packages here
10+
py-modules = ['causalpy', 'causalpy.data']
11+
12+
[project]
13+
name = "CausalPy"
14+
version = "0.0.9"
15+
description = "Causal inference for quasi-experiments in Python"
16+
readme = "README.md"
17+
license = {file = "LICENSE"}
18+
authors = [{ name = "Ben Vincent", email = "[email protected]" }]
19+
requires-python = ">=3.8"
20+
21+
# This field lists other packages that your project depends on to run.
22+
# Any package you put here will be installed by pip when your project is
23+
# installed, so they must be valid existing projects.
24+
#
25+
# For an analysis of this field vs pip's requirements files see:
26+
# https://packaging.python.org/discussions/install-requires-vs-requirements/
27+
dependencies = [
28+
"arviz>=0.14.0",
29+
"graphviz",
30+
"ipython!=8.7.0",
31+
"matplotlib>=3.5.3",
32+
"numpy",
33+
"pandas",
34+
"patsy",
35+
"pymc>=4.0.0",
36+
"scikit-learn>=1",
37+
"scipy",
38+
"seaborn>=0.11.2",
39+
"xarray>=v2022.11.0",
40+
]
41+
42+
# List additional groups of dependencies here (e.g. development dependencies). Users
43+
# will be able to install these using the "extras" syntax, for example:
44+
#
45+
# $ pip install sampleproject[dev]
46+
#
47+
# Similar to `dependencies` above, these must be valid existing projects.
48+
[project.optional-dependencies]
49+
dev = [
50+
"pathlib",
51+
"pre-commit",
52+
"twine",
53+
"interrogate",
54+
]
55+
docs = ["ipykernel",
56+
"linkify-it-py",
57+
"myst_parser",
58+
"nbsphinx",
59+
"pathlib",
60+
"sphinx",
61+
"sphinx-autodoc-typehints",
62+
"sphinx-design",
63+
"sphinx-rtd-theme",
64+
"statsmodels",
65+
]
66+
lint = ["black>=22.3.0",
67+
"flake8>=4.0.1",
68+
"interrogate>=1.5.0",
69+
"isort>=5.10.1",
70+
"nbqa>=1.5.3",
71+
"pre-commit>=2.19."
72+
]
73+
test = [
74+
"pytest",
75+
"pytest-cov",
76+
]
77+
78+
[metadata]
79+
description-file = 'README.md'
80+
license_files = 'LICENSE'
81+
82+
[project.urls]
83+
Homepage = "https://github.com/pymc-labs/CausalPy"
84+
"Bug Reports" = "https://github.com/pymc-labs/CausalPy/issues"
85+
"Source" = "https://github.com/pymc-labs/CausalPy"
86+
87+
[tool.black]
88+
line_length = 88
89+
190
[tool.isort]
291
profile = "black"
392
skip_gitignore = true
4-
# known_third_party = arviz,matplotlib,numpy,pandas,patsy,pymc,pytest,scipy,seaborn,setuptools,sklearn,statsmodels,xarray
593

694
[tool.pytest.ini_options]
795
addopts = [

requirements-dev.txt

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

requirements-docs.txt

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

requirements-lint.txt

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

requirements-test.txt

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

requirements.txt

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

setup.cfg

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
[metadata]
2-
description-file=README.md
3-
license_files=LICENSE
4-
51
[flake8]
62
max-line-length = 88
73
extend-ignore = E203

setup.py

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

0 commit comments

Comments
 (0)