This repository has been archived by the owner on Dec 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
64 lines (55 loc) · 1.75 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
#!/usr/bin/env python
import sys
from codecs import open # To use a consistent encoding
from os import path
from setuptools import setup
from setuptools.command.test import test as TestCommand
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
# Get content from __about__.py
about = {}
with open(path.join(here, 'django_concurrent_tests', '__about__.py'), 'r', 'utf-8') as f:
exec(f.read(), about)
class Tox(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import tox
errno = tox.cmdline(self.test_args)
sys.exit(errno)
setup(
name='django-concurrent-test-helper',
version=about['__version__'],
description="Helpers for executing Django app code concurrently within Django tests",
long_description=long_description,
author="Anentropic",
author_email="[email protected]",
url="https://github.com/depop/django-concurrent-test-helper",
packages=[
'django_concurrent_tests',
'django_concurrent_tests.management',
'django_concurrent_tests.management.commands',
],
license='Apache 2.0',
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
install_requires=[
'six',
'tblib',
'mock',
],
tests_require=[
'tox>=1.8',
],
cmdclass={'test': Tox},
)