-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
49 lines (40 loc) · 1.42 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
import os
from setuptools import setup, find_packages
try:
# for pip >= 10
from pip._internal.req import parse_requirements
except ImportError:
# for pip <= 9.0.3
from pip.req import parse_requirements
import radioco_recorder
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
def load_requirements(filename):
reqs = parse_requirements(filename, session="setup")
return [str(ir.req) for ir in reqs]
setup(
author='Iago Veloso',
name='radioco-recorder',
version=radioco_recorder.__version__,
description='RadioCo Recorder',
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
url='https://github.com/iago1460/django-radio-recorder',
packages=find_packages(),
entry_points={
"console_scripts": ["radioco-recorder=radioco_recorder.__main__"]
},
include_package_data=True,
zip_safe=False,
license='GPLv3',
platforms=['OS Independent'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
],
install_requires=load_requirements('requirements.txt'),
python_requires='>=3.7',
)