-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
69 lines (51 loc) · 1.99 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
import sys
from setuptools import setup, find_packages
package_name = "simple_benchmark"
optional_dependencies = ["numpy", "matplotlib", "pandas"]
development_dependencies = ["sphinx", "pytest"]
maintainer_dependencies = ["twine"]
def readme():
with open('README.rst') as f:
return f.read()
def version():
with open('{}/__init__.py'.format(package_name)) as f:
for line in f:
if line.startswith('__version__'):
return line.split(r"'")[1]
setup(name=package_name,
version=version(),
description='A simple benchmarking package.',
long_description=readme(),
# Somehow the keywords get lost if I use a list of strings so this is
# just a longish string...
keywords='performance timing timeit',
platforms=["Windows Linux Mac OS-X"],
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Topic :: Utilities',
'Topic :: System :: Benchmark'
],
license='Apache License Version 2.0',
url='https://github.com/MSeifert04/simple_benchmark',
author='Michael Seifert',
author_email='[email protected]',
packages=find_packages(exclude=['ez_setup']),
tests_require=["pytest"],
extras_require={
'optional': optional_dependencies,
'development': optional_dependencies + development_dependencies,
'maintainer': optional_dependencies + development_dependencies + maintainer_dependencies
},
include_package_data=True,
zip_safe=False,
)