Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
59 lines (49 loc) · 1.62 KB
/
Copy pathsetup.py
File metadata and controls
59 lines (49 loc) · 1.62 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
#!/usr/bin/env python
import os
import sys
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
README = read('README.rst')
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['tests', '-s']
self.test_suite = True
def run_tests(self):
import pytest
os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'
errno = pytest.main(self.test_args)
sys.exit(errno)
setup(
name='skip-django-choice-enumfields',
version='2.0.1',
author='HZDG, Lubos Matl',
author_email='matllubos@gmail.com',
description='Real Python Enums for Django.',
license='MIT',
url='https://github.com/skip-pay/django-choice-enumfields',
long_description=README,
packages=find_packages(exclude=['tests*']),
zip_safe=False,
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 4.2',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Topic :: Internet :: WWW/HTTP',
],
tests_require=[
'pytest-django',
'Django',
'djangorestframework',
'pytz',
],
package_data={package: ["py.typed", ".pyi", "**/.pyi"] for package in find_packages(exclude=['tests*'])},
cmdclass={'test': PyTest},
)