Compare commits
4 Commits
0f01ef80ec
...
0.1.0
Author | SHA1 | Date | |
---|---|---|---|
5cf265f09c | |||
91743d1c6d | |||
516e08a707 | |||
ff645425f9 |
22
.drone.yml
Normal file
22
.drone.yml
Normal file
@ -0,0 +1,22 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: build and publish
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: registry.kucharczyk.tech/python-pypi
|
||||
commands:
|
||||
- python -m build
|
||||
- name: publish
|
||||
image: registry.kucharczyk.tech/python-pypi
|
||||
commands:
|
||||
- python -m twine upload -u $USERNAME -p $PASSWORD dist/*
|
||||
environment:
|
||||
USERNAME:
|
||||
from_secret: pypi_username
|
||||
PASSWORD:
|
||||
from_secret: pypi_password
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -139,3 +139,4 @@ dmypy.json
|
||||
cython_debug/
|
||||
|
||||
testfiles
|
||||
*.csv
|
||||
|
@ -25,7 +25,9 @@ fields = {
|
||||
}
|
||||
|
||||
|
||||
def convert(directory="testfiles", outputfile="test.csv"):
|
||||
def convert(directory="f", outputfile="test.csv"):
|
||||
if not os.path.isdir(directory):
|
||||
exit(f"The directory {directory} does not exist!")
|
||||
with open(outputfile, "w", newline="") as csvfile:
|
||||
writer = csv.DictWriter(csvfile, fieldnames=fields.values())
|
||||
writer.writeheader()
|
11
setup.cfg
11
setup.cfg
@ -1,6 +1,6 @@
|
||||
[metadata]
|
||||
name = frontmatter-to-csv
|
||||
version = 0.0.1
|
||||
version = 0.1.0
|
||||
author = Lukáš Kucharczyk
|
||||
author_email = lukas@kucharczyk.xyz
|
||||
description = Convert YAML front matter to CSV
|
||||
@ -11,13 +11,16 @@ project_urls =
|
||||
Bug Tracker = https://git.kucharczyk.xyz/lukas/frontmatter-to-csv/issues
|
||||
classifiers =
|
||||
Programming Language :: Python :: 3
|
||||
License :: OSI Approved :: MIT License
|
||||
Environment :: Console
|
||||
Intended Audience :: End Users/Desktop
|
||||
License :: OSI Approved :: GNU General Public License (GPL)
|
||||
Operating System :: OS Independent
|
||||
Topic :: Utilities
|
||||
|
||||
[options]
|
||||
packages = frontmatter-to-csv
|
||||
packages = frontmatter_to_csv
|
||||
python_requires = >=3.6
|
||||
|
||||
[options.entry_points]
|
||||
console_scripts =
|
||||
frontmatter-to-csv = frontmatter-to-csv
|
||||
frontmatter-to-csv = frontmatter_to_csv.convert:convert
|
Reference in New Issue
Block a user