-
Notifications
You must be signed in to change notification settings - Fork 37
/
setup.py
85 lines (74 loc) · 2.63 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# -*- coding: utf-8 -*-
import os
import subprocess
from setuptools import Command, find_packages, setup
PACKAGE_NAME_SUFFIX = os.environ.get('PACKAGE_NAME_SUFFIX', None)
class PackageCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
subprocess.check_call(['git', 'clean', '-fxd', 'tracker'])
subprocess.check_call(['yarn'])
subprocess.check_call(['yarn', 'build'])
self.run_command('sdist')
self.run_command('bdist_wheel')
def get_package_name(name):
if not PACKAGE_NAME_SUFFIX:
return name
return f'{name}-{PACKAGE_NAME_SUFFIX}'
setup(
name=get_package_name('django-donation-tracker'),
version='3.2',
author='Games Done Quick',
author_email='[email protected]',
packages=find_packages(include=['tracker', 'tracker.*']),
url='https://github.com/GamesDoneQuick/donation-tracker',
license='Apache2',
description='A Django app to assist in tracking donations for live broadcast events.',
long_description=open('README.md').read(),
zip_safe=False,
# Included files are defined in MANIFEST.in, which will be automatically
# picked up by setuptools.
include_package_data=True,
cmdclass={
'package': PackageCommand,
},
install_requires=[
'backports.zoneinfo;python_version<"3.9"',
'celery~=5.0',
'channels>=4.0',
'Django>=4.2,<5.2',
'django-ical~=1.7',
'django-mptt~=0.10',
'django-paypal~=1.1',
'django-post-office~=3.2',
'django-timezone-field>=7.0,<8.0',
'djangorestframework~=3.9',
'python-dateutil~=2.8.1;python_version<"3.11"',
'requests>=2.27.1,<2.33.0',
],
extras_require={
'development': ['daphne~=4.0'],
},
python_requires='>=3.8, <3.13',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Other Audience',
'License :: OSI Approved :: Apache Software License 2.0 (Apache-2.0)',
'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',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)