-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
63 lines (53 loc) · 1.86 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
#! /usr/bin/env python
# coding=utf-8
from setuptools import setup
import os,sys,uuid
def read(*parts):
return open(os.path.join(os.path.dirname(__file__), *parts)).read()
def get_version():
f = open('Goulib/__init__.py')
try:
for line in f:
if line.startswith('__version__'):
return eval(line.split('=')[-1])
finally:
f.close()
try: # for pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
reqs = parse_requirements(
os.path.join(os.path.dirname(__file__), "requirements.txt"),
None,None, None, uuid.uuid1()
)
reqs = [str(ir.req) for ir in reqs]
setup(
name='Goulib',
packages=['Goulib'],
version=get_version(),
description="library of useful Python code for scientific + technical applications",
long_description=read('README.rst'),
keywords='math, geometry, graph, optimization, drawing',
author='Philippe Guglielmetti',
author_email='[email protected]',
url='http://github.com/goulu/goulib',
license='LGPL',
scripts=[],
package_data={'': ['colors.csv']},
install_requires=reqs,
test_suite="nose.collector",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Scientific/Engineering',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Multimedia :: Graphics :: Graphics Conversion',
],
)