File tree 3 files changed +10
-2
lines changed
3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,5 @@ __pycache__/
3
3
* .pyc
4
4
.idea /
5
5
dist /
6
+ build /
6
7
* .egg-info /
Original file line number Diff line number Diff line change
1
+ Django >= 1.10
Original file line number Diff line number Diff line change 1
1
import os
2
2
from setuptools import find_packages , setup
3
3
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 :
5
7
README = readme .read ()
6
8
9
+ with open (os .path .join (BASE_DIR , 'requirements.txt' )) as requirements :
10
+ REQUIREMENTS = list (line .strip () for line in requirements .readlines ())
11
+
7
12
# allow setup.py to be run from any path
8
13
os .chdir (os .path .normpath (os .path .join (os .path .abspath (__file__ ), os .pardir )))
9
14
12
17
version = '0.1' ,
13
18
packages = find_packages (),
14
19
include_package_data = True ,
20
+ install_requires = REQUIREMENTS ,
15
21
license = 'MIT License' ,
16
22
description = 'Override current user based on subdomain' ,
17
23
long_description = README ,
34
40
'Topic :: Internet :: WWW/HTTP' ,
35
41
'Topic :: Internet :: WWW/HTTP :: Dynamic Content' ,
36
42
],
37
- )
43
+ )
You can’t perform that action at this time.
0 commit comments