Rename raw-requirements files

This hopefully means they're not picked up on requires.io.
This commit is contained in:
Florian Bruhin 2016-06-07 23:12:06 +02:00
parent 7571040316
commit 6249436bde
12 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ def read_comments(fobj):
def get_all_names():
for filename in glob.glob(os.path.join(REQ_DIR, 'requirements-*-raw.txt')):
basename = os.path.basename(filename)
yield basename[len('requirements-'):-len('-raw.txt')]
yield basename[len('requirements-'):-len('.txt-raw')]
def main():
@ -97,7 +97,7 @@ def main():
for name in names:
utils.print_title(name)
filename = os.path.join(REQ_DIR,
'requirements-{}-raw.txt'.format(name))
'requirements-{}.txt-raw'.format(name))
outfile = os.path.join(REQ_DIR, 'requirements-{}.txt'.format(name))
with tempfile.TemporaryDirectory() as tmpdir: