Skip to content

Commit 350e139

Browse files
committed
Add Django requirement to package
1 parent 3465dac commit 350e139

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ __pycache__/
33
*.pyc
44
.idea/
55
dist/
6+
build/
67
*.egg-info/

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Django>=1.10

setup.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
import os
22
from setuptools import find_packages, setup
33

4-
with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
4+
BASE_DIR = os.path.dirname(__file__)
5+
6+
with open(os.path.join(BASE_DIR, 'README.md')) as readme:
57
README = readme.read()
68

9+
with open(os.path.join(BASE_DIR, 'requirements.txt')) as requirements:
10+
REQUIREMENTS = list(line.strip() for line in requirements.readlines())
11+
712
# allow setup.py to be run from any path
813
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
914

@@ -12,6 +17,7 @@
1217
version='0.1',
1318
packages=find_packages(),
1419
include_package_data=True,
20+
install_requires=REQUIREMENTS,
1521
license='MIT License',
1622
description='Override current user based on subdomain',
1723
long_description=README,
@@ -34,4 +40,4 @@
3440
'Topic :: Internet :: WWW/HTTP',
3541
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
3642
],
37-
)
43+
)

0 commit comments

Comments
 (0)