-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
47 lines (39 loc) · 1.49 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import re
import os
import sys
def get_version(package):
"""
Return package version as listed in `__version__` in `init.py`.
"""
init_py = open(os.path.join(package, '__init__.py')).read()
return re.match("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
version = get_version('hyperlinked_relational_serializer')
setup(
name='djangorestrelationalhyperlink',
version=version,
url='https://github.com/fredkingham/django_rest_model_hyperlink_serializers_project',
license='BSD',
description='A hyperlinked serialiser that can can be used to alter relationships via hyperlinks, but otherwise like a hyperlink model serializer',
author='Fred Kingham',
author_email='[email protected]', # SEE NOTE BELOW (*)
packages=['hyperlinked_relational_serializer'],
test_suite='hyperlinked_relational_serializer.hl_relational_serializer_tests.runtests',
install_requires='djangorestframework',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP',
]
)