-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
56 lines (49 loc) · 1.72 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os.path
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
try: # for pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
with open('README.md') as readme_file:
readme = readme_file.read()
test_requirements = [
"tox", "mock", "pytest"
]
# parse_requirements() returns generator of pip.req.InstallRequirement objects
install_reqs = parse_requirements(os.path.join(os.path.dirname(__file__), "requirements.txt"), session=False)
setup(
name="deployer",
version="1.2.4",
description="Streema deployer library",
long_description=readme,
author="Streema Devs",
author_email='[email protected]',
url='https://github.com/streema/deployer',
packages=find_packages(exclude=['ez_setup', 'tests']),
package_dir={'deployer': 'deployer'},
include_package_data=True,
install_requires=[str(ir.req) for ir in install_reqs],
zip_safe=False,
keywords='{{ cookiecutter.project_slug }}',
classifiers=[
'Development Status :: 1 - Stable',
'Intended Audience :: Developers',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
test_suite='tests',
tests_require=test_requirements
)