-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
67 lines (58 loc) · 2.15 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
#!/usr/bin/python
# -*- coding:utf-8 -*-
# This Python file uses the following encoding: utf-8
from setuptools import setup, find_packages
#from dynamicLink import version
#import dynamicLink
import os
# import sys
import shutil
# Read the version from a project file
#VERSION = version.VERSION_str
# Get description from Readme file
readme_file = os.path.join(os.path.dirname(__file__), 'README.rst')
long_description = open(readme_file).read()
# To get the readme after installation with help(dynamicLink) copy the
# actual README in the project folder
readme_copy = os.path.join(os.path.dirname(__file__), 'dynamicLink', 'README_COPY')
try:
shutil.copyfile(readme_file, readme_copy)
except IOError:
pass
# Build a list with requirements of the app
REQUIRES = []
try:
import django
except ImportError:
# Because of the strange update behavior of "pip --upgrade package_name"
# set requierment only if django not avallible.
REQUIRES.append('django')
# if sys.version_info < (2, 4):
# REQUIRES.append('python >= 2.4')
setup(name='django-dynamic-link',
version='0.5.8',
description='A django file streaming application',
long_description=long_description,
author='Andreas Fritz, digital.elements.li',
author_email='[email protected]',
url='http://www.digital.elements.li',
download_url='https://pypi.python.org/pypi/django-dynamic-link',
license='BSD',
packages=find_packages(exclude=['example', ]),
include_package_data=True,
keywords="django file streaming dynamic links serve",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Framework :: Django',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.4',
'Environment :: Console',
'Natural Language :: English',
'Natural Language :: German',
'Intended Audience :: Developers',
'Topic :: Internet',
],
install_requires=REQUIRES,
zip_safe=False,
)