-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
51 lines (41 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
from setuptools import setup, find_packages
major, minor1, minor2, release, serial = sys.version_info
readfile_kwargs = {"encoding": "utf-8"} if major >= 3 else {}
def readfile(filename):
with open(filename, **readfile_kwargs) as fp:
contents = fp.read()
return contents
def get_packages(path):
out = [path]
for x in find_packages(path):
out.append('{}/{}'.format(path, x))
return out
packages = get_packages('pycomb')
setup(name='pycomb',
version='0.1.18',
description='Python combination',
long_description=readfile('README.rst'),
url='https://github.com/fcracker79/pycomb',
author='fcracker79',
author_email='[email protected]',
license='MIT',
packages=packages,
install_requires=readfile(os.path.join(os.path.dirname(__file__), "requirements.txt")),
zip_safe=False,
test_suite="pycomb.test",
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
keywords='type hinting validation combinator'
)