forked from AndreaCensi/contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
55 lines (43 loc) · 1.76 KB
/
setup.py
File metadata and controls
55 lines (43 loc) · 1.76 KB
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
import os
from setuptools import setup, find_packages
version = "1.7.1"
description = (
'PyContracts is a Python package that allows to declare '
'constraints on function parameters and return values. '
'Contracts can be specified using Python3 annotations, '
'in a decorator, or inside a docstring :type: and :rtype: tags. '
'PyContracts supports a basic type system, variables binding, '
'arithmetic constraints, and has several specialized '
'contracts (notably for Numpy arrays), as well as an extension API.')
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
long_description = read('README.rst')
# import sys
# pyparsing_version_condition = '<'
# if sys.version_info[0] >= 3:
# pyparsing_version_condition = '>='
# pyparsing = 'pyparsing%s2.0.0' % pyparsing_version_condition
setup(name='PyContracts',
author="Andrea Censi",
author_email="censi@mit.edu",
url='http://andreacensi.github.com/contracts/',
description=description,
long_description=long_description,
keywords="type checking, value checking, contracts",
license="LGPL",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
'Topic :: Software Development :: Quality Assurance',
'Topic :: Software Development :: Documentation',
'Topic :: Software Development :: Testing'
],
version=version,
download_url='http://github.com/AndreaCensi/contracts/tarball/%s' % version,
package_dir={'':'src'},
packages=find_packages('src'),
install_requires=['pyparsing', 'decorator'],
tests_require=['nose'],
entry_points={},
)