-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
setup.py
67 lines (60 loc) · 2.35 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import find_packages, setup
from bulwark import project_info
cmdclass = {}
try:
from sphinx.setup_command import BuildDoc
cmdclass['build_sphinx'] = BuildDoc
except ImportError:
print('WARNING: sphinx not available, not building docs')
with open("README.md") as readme_file:
readme = readme_file.read()
# Requirements placed here for convenient viewing
install_requires = ['numpy>=1.15', 'pandas>=0.23.0']
tests_requires = ["pytest", "pytest-cov"]
docs_requires = [
"m2r",
"setuptools>=30.4",
"Sphinx~=2.0", # Use of v3.x.x requires m2r upgrade: https://github.com/miyakogi/m2r/pull/55
"sphinxcontrib-apidoc~=0.3.0",
"sphinx_rtd_theme"
]
dev_requires = tests_requires + docs_requires + ["pre-commit", "tox"]
name = project_info.NAME
author = project_info.AUTHOR
copyright = project_info.COPYRIGHT_YEAR
version = project_info.VERSION
release = project_info.RELEASE
# Avoid setuptools as an entrypoint unless it's the only way to do it.
# In other words, only use setuptools to build dists and wheels.
# E.g.: Run tests with pytest or tox; build sphinx directly; etc.
setup(
name=name,
version=release,
description='A python package for defensive data analysis.',
long_description=readme,
long_description_content_type='text/markdown',
url="https://github.com/zaxr/bulwark",
author=author,
author_email="zaxr@protonmail.com",
classifiers=["Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8"],
keywords='data analysis testing',
packages=find_packages(exclude=["docs", "tests"]),
python_requires=">=3.6",
install_requires=install_requires,
# Deprecated: setup_requires, tests_require, test_suite
# Each extra exists for purpose k, and requires install of v.
extras_require={'docs': docs_requires,
'test': tests_requires,
'dev': dev_requires},
cmdclass=cmdclass,
)