-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathsetup.py
61 lines (56 loc) · 1.95 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
60
61
import setuptools
import json
with open('./.github/README.md', 'r') as fh:
long_description = fh.read()
with open('config.json', 'r') as fh:
info = json.load(fh)
setuptools.setup(
name=info['project']['dist'],
version=info['release']['name'],
description=info['project']['desc'],
long_description=long_description,
long_description_content_type='text/markdown',
url=info['urls']['source'],
author=info['author']['name'],
author_email=info['author']['email'],
classifiers=[
'Development Status :: ' + info['release']['classifier'],
'Framework :: Django',
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.0',
'Framework :: Django :: 3.1',
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.0',
'Framework :: Django :: 4.1',
'Framework :: Django :: 4.2',
'Framework :: Django :: 5.0',
'Framework :: Django :: 5.1',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.7',
'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',
'Programming Language :: Python :: 3.13',
'Topic :: Software Development :: Internationalization',
],
keywords=' '.join(info['keywords']),
project_urls={
'Documentation': info['urls']['documentation'],
'Funding': info['urls']['funding'],
'Source': info['urls']['source'],
'Tracker': info['urls']['tracker'],
},
packages=setuptools.find_packages(
exclude=[
'sample',
'sample.migrations',
'tests',
]
),
python_requires='>=3.7, <4',
)