-
Notifications
You must be signed in to change notification settings - Fork 12
/
setup.py
31 lines (25 loc) · 909 Bytes
/
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
from setuptools import setup
import subprocess
def get_development_version():
git_output = subprocess.run(['git', 'rev-list', '--count', 'master'], stdout=subprocess.PIPE)
version = '0.%s' % git_output.stdout.decode('utf-8').strip()
return version
def get_requirements():
with open('requirements.txt') as f:
requirements = [p.strip().split('=')[0] for p in f.readlines() if p[0] != '-']
return requirements
setup(
name='ou_noise',
version=get_development_version(),
author='Julian Wergieluk',
author_email='[email protected]',
packages=['ou_noise', ],
url='',
install_requires=get_requirements(),
description='Stochastic processes simulators',
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
],
)