This repository has been archived by the owner on Jun 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
70 lines (58 loc) · 1.96 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
70
import sys
import os
from setuptools import setup, find_packages
import pt
def read(name):
filename = os.path.join(os.path.dirname(__file__), name)
with open(filename) as fp:
return fp.read()
def requirements(name):
install_requires = []
dependency_links = []
for line in read(name).split('\n'):
if line.startswith('-e '):
link = line[3:].strip()
if link == '.':
continue
dependency_links.append(link)
line = link.split('=')[1]
line = line.strip()
if line:
install_requires.append(line)
return install_requires, dependency_links
meta = dict(
version=pt.__version__,
description=pt.__doc__,
name='pulsar-twitter',
author='Luca Sbardella',
author_email="[email protected]",
maintainer_email="[email protected]",
url="https://github.com/quantmind/pulsar-twitter",
license="BSD",
long_description=read('README.rst'),
packages=find_packages(exclude=['tests', 'tests.*']),
include_package_data=True,
zip_safe=False,
setup_requires=['pulsar', 'wheel'],
install_requires=requirements('requirements.txt')[0],
# tests_require=config.requirements('requirements-dev.txt')[0],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Utilities'
]
)
if __name__ == '__main__':
if len(sys.argv) > 1 and sys.argv[1] == 'agile':
from agile.app import AgileManager
AgileManager(description='Release manager for pulsar-twitter',
argv=sys.argv[2:]).start()
else:
setup(**meta)