forked from tendenci/tendenci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
69 lines (63 loc) · 2.39 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
from setuptools import setup
from tendenci import __version__ as version
REQUIRED_PYTHON = (3, 8)
def _is_requirement(line):
"""Returns whether the line is a valid package requirement."""
line = line.strip()
return line and not line.startswith("#")
def _read_requirements():
"""Parses the file requirements.txt for pip installation requirements.
Returns the list of package requirements.
"""
requirements = []
with open("requirements.txt", 'r') as fh:
for line in fh:
if _is_requirement(line):
requirements.append(line.strip().strip('\n'))
return requirements
DESCRIPTION = "Tendenci - The Open Source Association Management System (AMS)"
with open("README.md", "r") as fh:
LONG_DESCRIPTION = fh.read()
setup(
name='tendenci',
version=version,
python_requires='>={}.{}'.format(*REQUIRED_PYTHON),
packages=['tendenci'],
package_dir={'tendenci': 'tendenci'},
include_package_data=True,
author='Tendenci',
url='https://github.com/tendenci/tendenci/',
license='GPL3',
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
install_requires=_read_requirements(),
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 4.2',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Information Technology',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'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 :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Internet :: WWW/HTTP :: WSGI',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
],
entry_points="""
[console_scripts]
tendenci=tendenci.bin.tendenci:main
"""
)