-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
41 lines (34 loc) · 1.09 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
import glob
import os
from setuptools import setup
import offlinecdn
github_url = 'https://github.com/gabegaster/django-offlinecdn'
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.readlines()
# read in the description from README
long_description = "\n".join(read("README.rst"))
# read in the dependencies from the virtualenv requirements file
dependencies = []
filename = os.path.join("requirements", "python")
for line in read(filename):
package = line.strip().split('#')[0]
if package:
dependencies.append(package)
setup(
name="django-offlinecdn",
version=offlinecdn.VERSION,
description=("A nice way to allow for online-offline development,"
" but also use cdn's for package dependencies."),
long_description=long_description,
url=github_url,
download_url="%s/archives/master" % github_url,
author='Gabe Gaster',
author_email='[email protected]',
license='MIT',
packages=[
'offlinecdn',
],
install_requires=dependencies,
zip_safe=False,
)