Skip to content

Commit e7c41fc

Browse files
Adjust setup.py
1 parent 4f61f12 commit e7c41fc

File tree

1 file changed

+1
-64
lines changed

1 file changed

+1
-64
lines changed

setup.py

Lines changed: 1 addition & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -12,60 +12,12 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import itertools
1615
import os
1716

1817
from codecs import open
19-
from os.path import dirname, join, realpath
2018

2119
from setuptools import find_packages, setup
2220

23-
DISTNAME = "pymc-extras"
24-
DESCRIPTION = "A home for new additions to PyMC, which may include unusual probability distribitions, 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."
25-
AUTHOR = "PyMC Developers"
26-
AUTHOR_EMAIL = "[email protected]"
27-
URL = "http://github.com/pymc-devs/pymc-extras"
28-
LICENSE = "Apache-2.0"
29-
30-
classifiers = [
31-
"Development Status :: 5 - Production/Stable",
32-
"Programming Language :: Python",
33-
"Programming Language :: Python :: 3",
34-
"Programming Language :: Python :: 3.10",
35-
"Programming Language :: Python :: 3.11",
36-
"Programming Language :: Python :: 3.12",
37-
"Programming Language :: Python :: 3.13",
38-
"License :: OSI Approved :: Apache Software License",
39-
"Intended Audience :: Science/Research",
40-
"Topic :: Scientific/Engineering",
41-
"Topic :: Scientific/Engineering :: Mathematics",
42-
"Operating System :: OS Independent",
43-
]
44-
45-
PROJECT_ROOT = dirname(realpath(__file__))
46-
47-
# Get the long description from the README file
48-
with open(join(PROJECT_ROOT, "README.md"), encoding="utf-8") as buff:
49-
LONG_DESCRIPTION = buff.read()
50-
51-
REQUIREMENTS_FILE = join(PROJECT_ROOT, "requirements.txt")
52-
DEV_REQUIREMENTS_FILE = join(PROJECT_ROOT, "requirements-dev.txt")
53-
54-
with open(REQUIREMENTS_FILE) as f:
55-
install_reqs = f.read().splitlines()
56-
57-
58-
with open(DEV_REQUIREMENTS_FILE) as f:
59-
dev_install_reqs = f.read().splitlines()
60-
61-
62-
extras_require = dict(
63-
dask_histogram=["dask[complete]<2025.1.1", "xhistogram"],
64-
histogram=["xhistogram"],
65-
)
66-
extras_require["complete"] = sorted(set(itertools.chain.from_iterable(extras_require.values())))
67-
extras_require["dev"] = dev_install_reqs
68-
6921

7022
def read_version():
7123
here = os.path.abspath(os.path.dirname(__file__))
@@ -78,20 +30,5 @@ def read_version():
7830
setup(
7931
name="pymc-extras",
8032
version=read_version(),
81-
maintainer=AUTHOR,
82-
maintainer_email=AUTHOR_EMAIL,
83-
description=DESCRIPTION,
84-
license=LICENSE,
85-
url=URL,
86-
long_description=LONG_DESCRIPTION,
87-
long_description_content_type="text/markdown",
88-
packages=find_packages(),
89-
# because of an upload-size limit by PyPI, we're temporarily removing docs from the tarball.
90-
# Also see MANIFEST.in
91-
# package_data={'docs': ['*']},
92-
include_package_data=True,
93-
classifiers=classifiers,
94-
python_requires=">=3.10",
95-
install_requires=install_reqs,
96-
extras_require=extras_require,
33+
packages=find_packages(exclude=["tests*"]),
9734
)

0 commit comments

Comments
 (0)