-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (42 loc) · 1.09 KB
/
setup.py
File metadata and controls
50 lines (42 loc) · 1.09 KB
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
# -*- coding: utf-8 -*-
from os.path import join, dirname
import sys
from setuptools import setup, find_packages
VERSION = (0, 1, 0)
__version__ = VERSION
__versionstr__ = '.'.join(map(str, VERSION))
README_FILE = 'README.md'
LICENSE_FILE = 'LICENSE'
f = open(join(dirname(__file__), README_FILE))
long_description = f.read().strip()
f.close()
f = open(join(dirname(__file__), LICENSE_FILE))
license = f.read().strip()
f.close()
install_requires = [
'pytest>=3.1.0',
]
tests_require = [
'nose',
'coverage',
]
# use external unittest for 2.6
if sys.version_info[:2] == (2, 6):
install_requires.append('unittest2')
setup(
name='pystructuresample',
version='0.1.0',
description='Python Project Structure Sample',
long_description=long_description,
author='dqi 2018',
author_email='someone@company.com',
url='https://github.com/dqi2018/python-structure',
license=license,
packages=find_packages(
where='.',
exclude=('tests', 'docs')
),
install_requires=install_requires,
test_suite='tests.test_sample',
tests_require=tests_require
)