-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
57 lines (46 loc) · 1.53 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
from __future__ import print_function
import sys
from setuptools import dist, setup, find_packages
from setuptools.command.build_py import build_py
from setuptools.command.develop import develop
from setuptools.command.test import test as test_command
DESCRIPTION = "Just a playground for time-series."
AUTHOR = '''Edwin Ng <[email protected]>'''
def read_long_description(filename="README.md"):
# with open(filename) as f:
with open("README.md", "r", encoding="utf-8") as f:
return f.read().strip()
def requirements(filename="requirements.txt"):
with open(filename) as f:
return f.readlines()
# class PyTest(test_command):
# def finalize_options(self):
# test_command.finalize_options(self)
# self.test_args = ['-v'] # test args
# self.test_suite = True
#
# def run_tests(self):
# import pytest
# errcode = pytest.main(self.test_args)
# sys.exit(errcode)
setup(
author=AUTHOR,
author_email='[email protected]',
description=DESCRIPTION,
include_package_data=True,
install_requires=requirements('requirements.txt'),
cmdclass={
'build_py': build_py,
'develop': develop,
},
long_description=read_long_description(),
name='ts-playground',
packages=find_packages(),
# version=VERSION, # being maintained by source module
zip_safe=False,
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
]
)