-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathsetup.py
45 lines (39 loc) · 1.52 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
#/usr/bin/env python
import io
import re
from setuptools import setup, find_packages
with io.open('./cassowary/__init__.py', encoding='utf8') as version_file:
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file.read(), re.M)
if version_match:
version = version_match.group(1)
else:
raise RuntimeError("Unable to find version string.")
with io.open('README.rst', encoding='utf8') as readme:
long_description = readme.read()
setup(
name='cassowary',
version=version,
description='A pure Python implementation of the Cassowary constraint solving algorithm.',
long_description=long_description,
author='Brodderick Rodriguez',
author_email='bcr@brodderick.com',
url='http://brodderick.com/projects/cassowary',
packages=find_packages(exclude=['docs', 'tests']),
install_requires=[],
license='Apache-2.0',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Software Development :: Libraries :: Python Modules'
],
test_suite='tests'
)