-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
49 lines (40 loc) · 1.28 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
"""
Django HAL
==========
A set of utilities for building HAL REST APIs in Django.
"""
import os
from setuptools import setup, find_packages
PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))
VERSION_FILE_PATH = os.path.join(PROJECT_DIR, 'VERSION')
README_FILE_PATH = os.path.join(PROJECT_DIR, 'README.rst')
def read(path):
if not os.path.isfile(path):
raise EnvironmentError("File not found: %s" % path)
with open(path) as f:
return f.read().strip()
if __name__ == '__main__':
setup(
name='django-hal',
version=read(VERSION_FILE_PATH),
description=read(README_FILE_PATH),
author='Nick Zarczynski',
author_email='[email protected]',
url='https://github.com/unbservices/django-hal',
license='MIT',
packages=find_packages(),
include_package_data=True,
install_requires=[],
# For a full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
],
)