Compare commits
No commits in common. "516e08a707f7a3f91ea5934b5b83d886109ae999" and "0f01ef80ecd9be029abbe6f41c57936e87bdf586" have entirely different histories.
516e08a707
...
0f01ef80ec
|
@ -139,4 +139,3 @@ dmypy.json
|
||||||
cython_debug/
|
cython_debug/
|
||||||
|
|
||||||
testfiles
|
testfiles
|
||||||
*.csv
|
|
||||||
|
|
|
@ -25,9 +25,7 @@ fields = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def convert(directory="f", outputfile="test.csv"):
|
def convert(directory="testfiles", outputfile="test.csv"):
|
||||||
if not os.path.isdir(directory):
|
|
||||||
exit(f"The directory {directory} does not exist!")
|
|
||||||
with open(outputfile, "w", newline="") as csvfile:
|
with open(outputfile, "w", newline="") as csvfile:
|
||||||
writer = csv.DictWriter(csvfile, fieldnames=fields.values())
|
writer = csv.DictWriter(csvfile, fieldnames=fields.values())
|
||||||
writer.writeheader()
|
writer.writeheader()
|
|
@ -15,9 +15,9 @@ classifiers =
|
||||||
Operating System :: OS Independent
|
Operating System :: OS Independent
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
packages = frontmatter_to_csv
|
packages = frontmatter-to-csv
|
||||||
python_requires = >=3.6
|
python_requires = >=3.6
|
||||||
|
|
||||||
[options.entry_points]
|
[options.entry_points]
|
||||||
console_scripts =
|
console_scripts =
|
||||||
frontmatter-to-csv = frontmatter_to_csv.convert:convert
|
frontmatter-to-csv = frontmatter-to-csv
|
Loading…
Reference in New Issue