-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·48 lines (41 loc) · 1.4 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
#!/usr/bin/env python3
# coding: utf-8
"""setuptools configuration"""
import codecs
import unittest
from setuptools import setup, find_packages
import conf
def read(filepath):
"""Read text file."""
return codecs.open(filepath, 'rb', 'utf8').read()
def run_tests():
"""Run all user defined tests."""
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests')
return test_suite
if __name__ == "__main__":
setup(
name=conf.package,
version=conf.version,
description=conf.description,
long_description=read('README.md'),
url=conf.url,
author=conf.author,
author_email=conf.author_email,
license=conf.license,
packages=find_packages('src'),
zip_safe=False,
classifiers=[ # Classifiers (see https://pypi.python.org/pypi?%3Aaction=list_classifiers)
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5'
],
platforms='any',
# Packages and dependencies
package_dir={'': 'src'},
install_requires=read('requirements.txt').splitlines(),
include_package_data=True, # include files from MANIFEST.in,
test_suite='setup.run_tests', # do tests
)