Browse Source

moved requirements.txt from project_template up to project's main dir

Rafał Pitoń 8 years ago
parent
commit
38477a4167
2 changed files with 9 additions and 3 deletions
  1. 0 0
      requirements.txt
  2. 9 3
      setup.py

+ 0 - 0
misago/project_template/requirements.txt → requirements.txt


+ 9 - 3
setup.py

@@ -1,12 +1,17 @@
 #-*- coding: utf-8 -*-
 import os
+
 from setuptools import setup, find_packages
+
 from misago import __version__ as version
 
-README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
 
-requirements_path = os.path.join(os.path.dirname(__file__), 'misago/project_template/requirements.txt')
-with open(requirements_path, "r") as f:
+SETUP_DIR = os.path.dirname(__file__)
+
+
+README = open(os.path.join(SETUP_DIR, 'README.rst')).read()
+
+with open(os.path.join(SETUP_DIR, 'requirements.txt'), "r") as f:
     REQUIREMENTS = [x.strip() for x in f.readlines()]
 
 
@@ -19,6 +24,7 @@ EXCLUDE_FROM_PACKAGES = [
     'misago.bin'
 ]
 
+
 setup(
     name='Misago',
     version=version,