-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
83 lines (62 loc) · 2.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from setuptools import setup, find_packages # Always prefer setuptools over distutils
from codecs import open # To use a consistent encoding
from os import path
__author__ = 'Alex Maskovyak'
__pkg_name__ = 'pypermedia'
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
long_description = f.read()
version = '0.4.2'
# run-time dependencies, listed here so that they can be shared with test requirements
install_requirements = [
'requests>=2.3.0',
'six'
]
test_requirements = [
'mock',
'pytest',
'unittest2'
] + install_requirements
# setuptool packaging info
setup(
name=__pkg_name__,
version=version,
description='Python client for hypermedia APIs.',
long_description=long_description,
author=__author__,
author_email='[email protected]',
license='GPLv2',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
# 2 - Pre-Alpha, 3 - Alpha, 4 - Beta, 5 - Production/Stable
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
],
keywords='client rest hypermedia http proxy siren api hateoas',
packages=find_packages(include=['pypermedia', 'pypermedia.*', 'tests', 'tests.*']),
install_requires=install_requirements,
tests_require=test_requirements,
test_suite='tests'
# Although 'package_data' is the preferred approach, in some case you may
# need to place model files outside of your packages.
# see http://docs.python.org/3.4/distutils/setupscript.html#installing-additional-files
# In this case, 'data_file' will be installed into '<sys.prefix>/my_data'
# data_files=[('my_data', ['model/data_file'])],
# To provide executable scripts, use entry points in preference to the
# "scripts" keyword. Entry points provide cross-platform support and allow
# pip to create the appropriate form of executable for the target platform.
# entry_points={
# 'console_scripts': [
# 'sample=sample:main',
# ],
# },
)