-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
39 lines (34 loc) · 1.14 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
from setuptools import setup, find_packages
def get_version(filename):
import ast
version = None
with open(filename) as f:
for line in f:
if line.startswith('__version__'):
version = ast.parse(line).body[0].value.s
break
else:
raise ValueError('No version found in %r.' % filename)
if version is None:
raise ValueError(filename)
return version
version = get_version(filename='src/geometry/__init__.py')
setup(name='PyGeometry',
version=version,
author="Andrea Censi",
author_email="[email protected]",
url='http://andreacensi.github.com/geometry/',
license="LGPL",
classifiers=[
'Development Status :: 4 - Beta',
],
package_dir={'':'src'},
packages=find_packages('src'),
install_requires=['PyContracts>=1.5,<2', 'numpy'],
extras_require={
'algorithms': ["scipy"],
},
setup_requires=['nose>=1.0'],
tests_require=['nose>=1.0', 'rudolf', 'nose-progressive', 'nose-cov'],
download_url='http://github.com/AndreaCensi/geometry/tarball/%s' % version,
)