-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
53 lines (45 loc) · 1.59 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
import os.path
from setuptools import setup, find_packages
version = __import__('extra_cbv').get_version()
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_requires_list(filename):
s = open(filename).read().split("\n")
dependenses = []
if len(s):
for pkg in s:
if pkg.strip() == '' or pkg.startswith("#"):
continue
if pkg.startswith("-e"):
continue
try:
p = pkg.split("#egg=")[1]
dependenses += [p, ]
except:
continue
else:
dependenses += [pkg, ]
return dependenses
setup(
name="django-extra-cbv",
version=version,
description="Extra class based views for Django",
long_description=read('README.md'),
keywords="cbv, class based views",
author="Alex Kamedov",
author_email="[email protected]",
url="https://github.com/alekam/django-extra-cbv",
license="New BSD License",
platforms=["any"],
classifiers=["Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Utilities"],
packages=find_packages(exclude=["tests", "tests.*"]),
install_requires=get_requires_list('requirements.txt'),
include_package_data=True,
)