forked from django-statsd/django-statsd
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
52 lines (45 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
from setuptools import setup, find_packages
from pip._internal.req.req_file import parse_requirements
from pip._internal.network.session import PipSession
from os import path
# Lists of requirements and dependency links which are needed during runtime, testing and setup
install_requires = []
tests_require = []
dependency_links = []
# Inject requirements from requirements.txt into setup.py
requirements_file = parse_requirements(path.join('requirements', 'requirements.txt'), session=PipSession())
for req in requirements_file:
install_requires.append(str(req.requirement))
# Inject test requirements from requirements_test.txt into setup.py
requirements_test_file = parse_requirements(path.join('requirements', 'requirements_test.txt'), session=PipSession())
for req in requirements_test_file:
tests_require.append(str(req.requirement))
# Became django-statsd-unleashed because django-statsd and django-statsd-mozilla are taken on Pypi. ;)
setup(
name='django-statsd-unleashed',
version='1.1.1',
url='https://github.com/vikingco/django-statsd',
license='BSD',
description='Django interface with statsd',
long_description=open('README.rst').read(),
author='Andy McKay',
author_email='andym@mozilla.com',
maintainer='Unleashed NV',
maintainer_email='operations@unleashed.be',
packages=find_packages('.'),
include_package_data=True,
install_requires=install_requires,
tests_require=tests_require,
dependency_links=dependency_links,
zip_safe=False,
classifiers=[
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Operating System :: OS Independent',
'Environment :: Web Environment',
'Framework :: Django',
],
)