forked from IMGIITRoorkee/django-filemanager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·37 lines (33 loc) · 986 Bytes
/
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
#!/usr/bin/env python
from setuptools import find_packages, setup
def get_install_requires():
"""
parse requirements.txt, ignore links, exclude comments
"""
requirements = []
for line in open('requirements.txt').readlines():
# skip to next iteration if comment or empty line
skip = (
line.startswith('#')
or line == ''
or line.startswith('http')
or line.startswith('git')
)
if skip:
continue
# add line to requirements
requirements.append(line)
return requirements
setup(
name="django-filemanager",
version="0.0.1",
author="Information Management Group",
author_email="[email protected]",
description="A file manager for Django",
license="MIT",
packages=find_packages(exclude=["tests", ]),
install_requires=get_install_requires(),
zip_safe=False,
include_package_data=True,
test_suite='tests.main',
)