-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
56 lines (50 loc) · 1.51 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
# -*- coding: utf-8 -*-
# Copyright (c) 2009, 2010, 2011 Hans van Leeuwen.
# See LICENSE.txt for details.
import re
from codecs import open
from setuptools import setup
with open('pycoreutils/version.py', 'r', 'utf-8') as fd:
version = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(),
re.MULTILINE,
).group(1)
if not version:
raise RuntimeError('Cannot find version information')
with open('README.rst', 'r', 'utf-8') as f:
readme = f.read()
setup(
name='pycoreutils',
version=version,
description='Coreutils in Pure Python',
long_description=readme,
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: System :: Shells',
'Topic :: Utilities',
],
license='MIT',
url='http://pypi.python.org/pypi/pycoreutils',
author='Hans van Leeuwen',
author_email='[email protected]',
entry_points='''
[console_scripts]
pycoreutils=main:cli
''',
packages=[
'pycoreutils',
'pycoreutils.commands',
],
tests_require=['nose'],
test_suite='nose.collector',
)