-
Notifications
You must be signed in to change notification settings - Fork 16
/
setup.py
63 lines (51 loc) · 1.54 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
#!/usr/bin/env python
from distribute_setup import use_setuptools
use_setuptools()
import os
import sys
import restorm
from setuptools import setup, find_packages
def read_file(name):
return open(os.path.join(os.path.dirname(__file__), name)).read()
readme = read_file('README.rst')
changes = read_file('CHANGES.rst')
install_requires = [
'httplib2>=0.7.1',
]
tests_require = [
'nose',
'unittest2',
'mock',
'oauth2', # For Twitter example.
]
if sys.version_info < (2,6):
install_requires += [
'simplejson>=2.2.1'
]
setup(
name='restorm',
version='.'.join(map(str, restorm.__version__)),
# Packaging.
packages=find_packages(exclude=('tests', 'examples')),
install_requires=install_requires,
tests_require=tests_require,
include_package_data=True,
zip_safe=False,
# Metadata for PyPI.
description='RestORM allows you to interact with resources as if they were objects.',
long_description='\n\n'.join([readme, changes]),
author='Joeri Bekker',
author_email='[email protected]',
license='MIT',
platforms=['any'],
url='http://github.com/joeribekker/restorm',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development',
],
)