forked from greyside/django-admin-smoke-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·55 lines (46 loc) · 1.52 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import django_admin_smoke_tests
from setuptools import setup
package_name = 'django_admin_smoke_tests'
def runtests():
import os
import sys
import django
from django.core.management import call_command
os.environ['DJANGO_SETTINGS_MODULE'] = 'test_project.settings'
if django.VERSION[0] == 1 and django.VERSION[1] >= 7:
django.setup()
call_command('test', 'test_project.main.tests')
sys.exit()
setup(
name='django-admin-smoke-tests-2',
version=django_admin_smoke_tests.__version__,
description="Runs some quick tests on your admin site objects to make sure \
there aren't non-existant fields listed, etc.",
author='Seán Hayes',
author_email='[email protected]',
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
],
keywords='django admin smoke test',
url='https://github.com/SeanHayes/django-admin-smoke-tests',
download_url='https://github.com/SeanHayes/django-admin-smoke-tests',
license='BSD',
install_requires=[
'django>=1.6',
'six',
],
packages=[
package_name,
],
include_package_data=True,
zip_safe=False,
test_suite='setup.runtests',
)