forked from InfraPixels/powerlibs-aws-sqs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
60 lines (51 loc) · 1.78 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
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version = '0.1.2'
def pip_git_to_setuptools_git(url):
# git+https://github.com/DroneMapp/[email protected]
match = re.match(r'git\+https://github.com/(?P<organization>[^/]+)/(?P<repository>[^/]+).git@(?P<tag>.+)', url.strip())
if match:
url = 'http://github.com/{organization}/{repository}/tarball/master#egg={tag}'.format(
**match.groupdict()
)
return url
requires = []
dependency_links = []
with open('requirements/production.txt') as requirements_file:
for line in requirements_file:
if 'git+http' in line:
dependency_links.append(pip_git_to_setuptools_git(line))
else:
requires.append(line)
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='powerlibs-aws-sqs',
version=version,
description="Python libraries to facilitate publishing on Amazon SNS",
long_description=readme,
author='Cléber Zavadniak',
author_email='[email protected]',
url='https://github.com/Dronemapp/powerlibs-aws-sqs',
license=license,
packages=['powerlibs', 'powerlibs.aws', 'powerlibs.aws.sqs'],
package_data={'': ['LICENSE', 'README.md']},
include_package_data=True,
install_requires=requires,
dependency_links=dependency_links,
zip_safe=False,
keywords='generic libraries',
classifiers=(
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Python Modules'
),
)