-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
76 lines (63 loc) · 2.37 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
68
69
70
71
72
73
74
75
76
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""""
setup.py
See:
https://packaging.python.org/tutorials/packaging-projects/
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import os
from setuptools import setup
local_path = os.path.dirname(__file__)
# Fix for tox which manipulates execution pathing
if not local_path:
local_path = '.'
here = os.path.abspath(local_path)
def version():
with open(here + '/doex/_version.py', 'r') as ver:
for line in ver.readlines():
if line.startswith('version ='):
return line.split(' = ')[-1].strip()[1:-1]
raise ValueError('No version found in doex/version.py')
def read(fname):
with open(fname, 'r') as fhandle:
return fhandle.read()
def read_reqs(fname):
req_path = os.path.join(here, fname)
return [req.strip() for req in read(req_path).splitlines() if req.strip()]
long_description = read(os.path.join(os.path.dirname(__file__), "README.md"))
requirements = read(os.path.join(os.path.dirname(__file__), "requirements.txt"))
dev_reqs = read_reqs(os.path.join(os.path.dirname(__file__), 'requirements-dev.txt'))
doc_reqs = read_reqs(os.path.join(os.path.dirname(__file__), 'docs/requirements-doc.txt'))
extras_require = {"test": dev_reqs, "dev": dev_reqs, "sphinx": doc_reqs}
setup(
name='doex',
version=version(),
description='Python library for conducting design of experiments',
author='Rohit Sanjay',
author_email='sanjay.rohit2@gmail.com',
license='BSD',
keywords='design-of-experiments probability statistics',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/rohitsanj/doex',
packages=['doex'],
python_requires='>=3.5',
install_requires=requirements,
extras_require=extras_require,
project_urls={
'Documentation': 'https://doex.rohitsanjay.com',
'Source': 'https://github.com/rohitsanj/doex/',
'Tracker': 'https://github.com/rohitsanj/doex/issues',
},
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
],
)