-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
65 lines (55 loc) · 1.86 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
58
59
60
61
62
63
64
65
# -*- coding: utf-8 -*-
"""Splendid, a collection of useful, small python tools."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from codecs import open
from os import path
from setuptools import setup
ROOT = path.abspath(path.dirname(__file__))
# Use the README as the long description
with open(path.join(ROOT, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
# extract version from splendid/__init__.py
with open(path.join(ROOT, 'splendid', '__init__.py'), encoding='utf-8') as f:
version = None
for line in f:
if line.startswith('__version__ = '):
version = line.split('=')[1].split('#')[0]\
.strip().strip('"').strip("'")
break
else:
raise SyntaxError('could not find __version__')
requirements = [
'six',
]
setup(
name='splendid',
version=version,
description=__doc__,
long_description=long_description,
url='https://github.com/pythoncircus/splendid',
author='Joachim Folz, Jörn Hees',
author_email='[email protected], [email protected]',
license='MIT',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development',
'Topic :: Utilities',
],
keywords='splendid tools utils wrappers useful small often needed',
packages=['splendid'],
install_requires=requirements,
setup_requires=['pytest-runner'],
tests_require=requirements + [
'pytest',
],
zip_safe=True,
)