forked from kingbuzzman/django-squash
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·84 lines (73 loc) · 2.64 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·84 lines (73 loc) · 2.64 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/usr/bin/env python
# coding=utf-8
import io
import os
import sys
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
here = os.path.abspath(os.path.dirname(__file__))
with io.open(os.path.join(here, 'README.rst'), encoding='utf-8') as fp:
README = fp.read()
class DjangoTest(TestCommand):
command_consumes_arguments = True
def initialize_options(self):
self.args = None
super().initialize_options()
def run_tests(self):
from tests.runtests import django_tests
sys.path.insert(0, 'tests')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings')
django_tests(verbosity=3,
interactive=False,
failfast=True,
keepdb=False,
reverse=False,
test_labels=[os.path.normpath(labels) for labels in self.args],
debug_sql=False,
parallel=False,
tags=[],
exclude_tags=[],
test_name_patterns=[])
setup(
name='django_squash',
version='0.0.6',
description="A migration squasher that doesn't care how Humpty Dumpty was put together.",
long_description=README,
classifiers=[
# See https://pypi.org/pypi?%3Aaction=list_classifiers
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Framework :: Django',
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.0',
'Framework :: Django :: 3.1',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
'License :: OSI Approved :: MIT License',
],
keywords='django migration squashing squash',
author='Javier Buzzi',
author_email='buzzi.javier@gmail.com',
url='https://github.com/kingbuzzman/django-squash',
license="MIT",
packages=find_packages(exclude=['tests*']),
platforms=['any'],
zip_safe=True,
python_requires='>=3.6',
cmdclass={'test': DjangoTest},
install_requires=[
'django>=2.2',
],
tests_require=[],
extras_require={
'test': ['isort', 'flake8', 'ipdb', 'coverage'],
}
)