/
setup.py
51 lines (45 loc) · 1.48 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
import os
import sys
import tsc
def read_file(name):
return open(os.path.join(os.path.dirname(os.path.abspath(__file__)), name)).read()
try:
from setuptools import setup
setup
except ImportError:
from distutils.core import setup
if sys.version_info < (3, 5):
print("dmm-eikaiwa-tsc requires at least Python 3.5 to run.")
sys.exit(1)
if sys.argv[-1] == "publish":
os.system("python setup.py sdist upload")
sys.exit()
install_requires = read_file("requirements/base.txt").splitlines()
tests_require = read_file("requirements/development.txt").splitlines()
setup(
name="dmm-eikaiwa-tsc",
version=tsc.__version__,
url="https://github.com/oinume/dmm-eikaiwa-tsc/",
license="MIT",
author="Kazuhiro Oinuma",
author_email="oinume@gmail.com",
description="Teacher Schedule Checker for DMM Eikaiwa",
long_description=read_file("README.md"),
packages=["tsc"],
# scripts=[os.path.join("bin", p) for p in ["tomahawk", "tomahawk-rsync"]],
zip_safe=False,
platforms="unix",
install_requires=install_requires,
tests_require=tests_require[1:],
data_files=[],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3.5",
"Topic :: Education",
],
)