forked from vikingco/django-triggers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (42 loc) · 1.76 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
from setuptools import setup, find_packages
from os import path
from djtriggers import __version__
from pip._internal.req.req_file import parse_requirements
from pip._internal.network.session import PipSession
# Lists of requirements and dependency links which are needed during runtime, testing and setup
install_requires = []
tests_require = []
dependency_links = []
# Inject test requirements from requirements_test.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))
setup(
name='django-triggers',
version=__version__,
url='https://github.com/vikingco/django-triggers',
license='BSD',
description='Framework to create and process triggers.',
long_description=open('README.md', 'r').read(),
long_description_content_type='text/markdown',
author='Unleashed NV',
author_email='[email protected]',
packages=find_packages('.'),
include_package_data=True,
zip_safe=False, # Don't create egg files, Django cannot find templates in egg files.
install_requires=install_requires,
setup_requires=['pytest-runner', ],
tests_require=tests_require,
dependency_links=dependency_links,
classifiers=[
'Intended Audience :: Developers',
'Programming Language :: Python',
'Operating System :: OS Independent',
'Environment :: Web Environment',
'Framework :: Django',
],
)