Also generate root requirements

This commit is contained in:
Florian Bruhin 2016-06-07 23:44:22 +02:00
parent 164d7bea4b
commit 55da4ffc03
2 changed files with 12 additions and 7 deletions

View File

@ -1,7 +1,9 @@
Jinja2==2.8.0
# This file is automatically generated by scripts/dev/recompile_requirements.py
colorama==0.3.7
cssutils==1.0.1
Jinja2==2.8
MarkupSafe==0.23
Pygments==2.1.3
pyPEG2==2.15.2
PyYAML==3.11
colorama==0.3.7
cssutils==1.0.1

View File

@ -32,9 +32,9 @@ sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir,
from scripts import utils
REQ_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)),
'..', '..', # /scripts/dev -> /scripts -> /
'misc', 'requirements')
REPO_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)),
'..', '..') # /scripts/dev -> /scripts -> /
REQ_DIR = os.path.join(REPO_DIR, 'misc', 'requirements')
def convert_line(line, comments):
@ -98,7 +98,10 @@ def main():
utils.print_title(name)
filename = os.path.join(REQ_DIR,
'requirements-{}.txt-raw'.format(name))
outfile = os.path.join(REQ_DIR, 'requirements-{}.txt'.format(name))
if name == 'qutebrowser':
outfile = os.path.join(REPO_DIR, 'requirements.txt')
else:
outfile = os.path.join(REQ_DIR, 'requirements-{}.txt'.format(name))
with tempfile.TemporaryDirectory() as tmpdir:
pip_bin = os.path.join(tmpdir, 'bin', 'pip')