add pyproject.toml

This commit is contained in:
Denis-Cosmin NUTIU 2023-06-03 16:08:28 +03:00
parent 370a9099f5
commit eb58fb67d9
2 changed files with 42 additions and 1 deletions

View file

@ -3,4 +3,10 @@ format:
autoflake --exclude venv -ri . && black . && isort -r .
# Run tests
test:
pytest .
pytest .
# Build package
build:
python -m build
# Upload package to PyPI
upload:
hatch publish

35
pyproject.toml Normal file
View file

@ -0,0 +1,35 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "jekyll-to-hugo"
version = "0.0.2"
authors = [
{ name="Denis Nutiu", email="nuculabs@outlook.com" },
]
description = "Python library for converting jekyll md files to Hugo."
readme = "readme.md"
requires-python = ">=3.7"
classifiers = [
"Environment :: Console",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
[project.scripts]
jekyll-to-hugo = "main:main"
[project.optional-dependencies]
dev = ["black", "pdoc", "isort", "autoflake", "pytest"]
[project.urls]
"Homepage" = "https://github.com/dnutiu/jekyll-to-hugo"
"Bug Tracker" = "https://github.com/dnutiu/jekyll-to-hugo/issues"