Rename raw-requirements files
This hopefully means they're not picked up on requires.io.
This commit is contained in:
parent
7571040316
commit
6249436bde
@ -88,7 +88,7 @@ def read_comments(fobj):
|
|||||||
def get_all_names():
|
def get_all_names():
|
||||||
for filename in glob.glob(os.path.join(REQ_DIR, 'requirements-*-raw.txt')):
|
for filename in glob.glob(os.path.join(REQ_DIR, 'requirements-*-raw.txt')):
|
||||||
basename = os.path.basename(filename)
|
basename = os.path.basename(filename)
|
||||||
yield basename[len('requirements-'):-len('-raw.txt')]
|
yield basename[len('requirements-'):-len('.txt-raw')]
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
@ -97,7 +97,7 @@ def main():
|
|||||||
for name in names:
|
for name in names:
|
||||||
utils.print_title(name)
|
utils.print_title(name)
|
||||||
filename = os.path.join(REQ_DIR,
|
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))
|
outfile = os.path.join(REQ_DIR, 'requirements-{}.txt'.format(name))
|
||||||
|
|
||||||
with tempfile.TemporaryDirectory() as tmpdir:
|
with tempfile.TemporaryDirectory() as tmpdir:
|
||||||
|
Loading…
Reference in New Issue
Block a user