diff --git a/Makefile b/Makefile index c7fa2e8..04cad92 100644 --- a/Makefile +++ b/Makefile @@ -3,4 +3,10 @@ format: autoflake --exclude venv -ri . && black . && isort -r . # Run tests test: - pytest . \ No newline at end of file + pytest . +# Build package +build: + python -m build +# Upload package to PyPI +upload: + hatch publish \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..1734c75 --- /dev/null +++ b/pyproject.toml @@ -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" \ No newline at end of file