-
Notifications
You must be signed in to change notification settings - Fork 59
/
setup.py
46 lines (38 loc) · 1.36 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
#!/usr/bin/env python
import os
import re
from setuptools import find_packages, setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def read_version(fname):
return re.search("__version__ = ['\"]([^'\"]+)['\"]", read(fname)).group(1)
setup(
name='django-enumfields',
version=read_version('enumfields/__init__.py'),
author='HZDG',
author_email='[email protected]',
description='Real Python Enums for Django.',
license='MIT',
url='https://github.com/hzdg/django-enumfields',
long_description=(read('README.rst')),
packages=find_packages(exclude=['tests*']),
zip_safe=False,
classifiers=[
'License :: OSI Approved :: MIT License',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.0',
'Framework :: Django :: 3.1',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Internet :: WWW/HTTP',
],
)