forked from tjcsl/ion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·35 lines (30 loc) · 1.14 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from setuptools import find_packages, setup
with open("README.rst", "r") as f:
long_description = f.read()
def get_requirements():
with open("requirements.txt") as req, open("docs/rtd-requirements.txt", "w") as rtd_file:
for dep in req:
print(dep.strip(), file=rtd_file)
yield dep.strip()
setup(
name="Ion",
description="The next-generation Intranet platform for TJHSST",
long_description=long_description,
author="The TJHSST Computer Systems Lab",
author_email="[email protected]",
url="https://github.com/tjcsl/ion",
version="1.0",
test_suite="intranet.test.test_suite.run_tests",
setup_requires=["pip>=6.0", "setuptools_git"], # session param
install_requires=[str(dep) for dep in get_requirements()],
packages=find_packages(),
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.8",
"Framework :: Django :: 3.2",
],
)