-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
57 lines (51 loc) · 1.64 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
#!/usr/bin/python
# -*- coding:utf-8 -*-
# This Python file uses the following encoding: utf-8
from setuptools import setup, find_packages
import os
import sys
# Get description from Readme file
readme_file = os.path.join(os.path.dirname(__file__), 'README.rst')
long_description = open(readme_file).read()
# 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 < (3, 8):
REQUIRES.append('python >= 3.8')
setup(
name='django-onetimelink',
version=3.1,
description='A django one-time file streaming application',
long_description=long_description,
author='FENG Hao',
author_email='[email protected]',
url='https://github.com/HiroshiFuu/django-onetimelink',
download_url='https://pypi.python.org/pypi/django-onetimelink',
license='BSD',
packages=find_packages(
exclude=[
'example',
]
),
include_package_data=True,
keywords="django one-time file link serve",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Framework :: Django :: 3.0',
'Framework :: Django :: 4.0',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3 :: Only',
'Environment :: Console',
'Natural Language :: English',
'Intended Audience :: Developers',
'Topic :: Internet',
],
install_requires=REQUIRES,
zip_safe=False,
)