1
|
|
|
""" |
2
|
|
|
pyalgs |
3
|
|
|
----- |
4
|
|
|
|
5
|
|
|
Package pyalgs implements algorithms in Robert Sedgwick's Coursera course in Python (Part I and Part II) |
6
|
|
|
""" |
7
|
|
|
|
8
|
|
|
import re |
9
|
|
|
import ast |
10
|
|
|
from setuptools import setup |
11
|
|
|
|
12
|
|
|
_version_re = re.compile(r'__version__\s+=\s+(.*)') |
13
|
|
|
|
14
|
|
|
with open('pyalgs/__init__.py', 'rb') as f: |
15
|
|
|
version = str(ast.literal_eval(_version_re.search( |
16
|
|
|
f.read().decode('utf-8')).group(1))) |
17
|
|
|
|
18
|
|
|
def long_description(): |
19
|
|
|
with io.open('README.rst', 'r', encoding='utf-8') as f: |
20
|
|
|
readme = f.read() |
21
|
|
|
return readme |
22
|
|
|
|
23
|
|
|
setup( |
24
|
|
|
name='pyalgs', |
25
|
|
|
version=version, |
26
|
|
|
url='https://github.com/chen0040/pyalgs', |
27
|
|
|
license='BSD', |
28
|
|
|
author='Xianshun Chen', |
29
|
|
|
author_email='[email protected]', |
30
|
|
|
description='Python implementation of Robert Sedgwick\'s Algorithm (Part I and Part II) Coursera course', |
31
|
|
|
long_description=long_description(), |
32
|
|
|
packages=['pyalgs'], |
33
|
|
|
include_package_data=True, |
34
|
|
|
zip_safe=False, |
35
|
|
|
platforms='any', |
36
|
|
|
install_requires=[], |
37
|
|
|
classifiers=[ |
38
|
|
|
'Intended Audience :: Developers', |
39
|
|
|
'License :: OSI Approved :: BSD License', |
40
|
|
|
'Operating System :: OS Independent', |
41
|
|
|
'Programming Language :: Python', |
42
|
|
|
'Programming Language :: Python :: 2', |
43
|
|
|
'Programming Language :: Python :: 2.7', |
44
|
|
|
'Programming Language :: Python :: 3', |
45
|
|
|
'Programming Language :: Python :: 3.3', |
46
|
|
|
'Programming Language :: Python :: 3.4', |
47
|
|
|
'Programming Language :: Python :: 3.5', |
48
|
|
|
'Topic :: Algorithms :: Basic :: Data Structure', |
49
|
|
|
'Topic :: Algorithms :: Basic :: Graph Processing', |
50
|
|
|
'Topic :: Algorithms :: Basic :: String Processing', |
51
|
|
|
'Topic :: Software Development :: Libraries :: Python Modules' |
52
|
|
|
] |
53
|
|
|
) |
54
|
|
|
|
55
|
|
|
__author__ = 'Xianshun Chen' |
56
|
|
|
|