-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (46 loc) · 1.42 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
#!/usr/bin/python3 -tt
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
name = 'uspech'
version = '0.3.2'
def read_requires(path=None):
from os.path import dirname, join
if path is None:
path = join(dirname(__file__), 'requirements.txt')
print(path)
with open(path) as fp:
return [l.strip() for l in fp.readlines()]
cmdclass = {}
try:
from sphinx.setup_command import BuildDoc
cmdclass['build_sphinx'] = BuildDoc
except ImportError:
print('WARNING: Sphinx not available, build_sphinx disabled.')
setup(**{
'name': name,
'version': version,
'author': 'Singularita s.r.o.',
'description': 'Common project utilities (not for general use)',
'license': 'MIT',
'keywords': 'utilities',
'url': 'http://github.com/singularita/uspech/',
'include_package_data': True,
'zip_safe': False,
'packages': find_packages(),
'classifiers': [
'Development Status :: 2 - Pre-Alpha',
'Programming Language :: Python :: 3 :: Only',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
],
'install_requires': read_requires(),
'cmdclass': cmdclass,
'command_options': {
'build_sphinx': {
'project': ('setup.py', name),
'version': ('setup.py', version),
'release': ('setup.py', version),
},
},
})
# vim:set sw=4 ts=4 et: