-
Notifications
You must be signed in to change notification settings - Fork 46
/
setup.py
59 lines (51 loc) · 1.93 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
from __future__ import absolute_import
from __future__ import unicode_literals
import os
import re
from io import open
from setuptools import find_packages, setup
def get_version(filename):
path = os.path.join(os.path.dirname(__file__), filename)
with open(path, encoding="utf-8") as handle:
content = handle.read()
return re.search(r'__version__ = "([^"]+)"', content).group(1)
def read_md(filename):
path = os.path.join(os.path.dirname(__file__), filename)
with open(path, encoding='utf-8') as handle:
return handle.read()
setup(
name='django-cte',
version=get_version('django_cte/__init__.py'),
description='Common Table Expressions (CTE) for Django',
long_description=read_md('README.md'),
long_description_content_type='text/markdown',
maintainer='Daniel Miller',
url='https://github.com/dimagi/django-cte',
license='BSD License',
packages=find_packages(exclude=['tests']),
include_package_data=True,
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Framework :: Django',
'Framework :: Django :: 3',
'Framework :: Django :: 3.2',
'Framework :: Django :: 4',
'Framework :: Django :: 4.0',
'Framework :: Django :: 4.1',
'Framework :: Django :: 4.2',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)