This repository has been archived by the owner on May 19, 2020. It is now read-only.
/
setup.py
52 lines (44 loc) · 1.5 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
#!/usr/bin/env python
# coding: utf-8
import os
import pyresto
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# Taken from kennethreitz/requests/setup.py
package_directory = os.path.realpath(os.path.dirname(__file__))
def get_file_contents(file_path):
"""Get the context of the file using full path name."""
full_path = os.path.join(package_directory, file_path)
return open(full_path, 'r').read()
install_requirements = open('requirements/requirements.txt').read().split()
setup(
name=pyresto.__title__,
version=pyresto.__version__,
description='A general REST based ORM.',
long_description=get_file_contents('README.rst'),
author='Burak Yiğit Kaya',
author_email='ben@byk.im',
url='https://github.com/BYK/pyresto',
packages=[
'pyresto',
'pyresto.apis',
'pyresto.apis.github',
'pyresto.apis.bugzilla',
],
install_requires=install_requirements,
license='Mozilla Public License, v. 2.0',
classifiers=(
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)',
'Operating System :: OS Independent',
'Natural Language :: English',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries'
),
)