Skip to content

Commit

Permalink
Setup PYPI publishing (#4)
Browse files Browse the repository at this point in the history
* add hatch build config

* use simple Makefile commands for now
  • Loading branch information
sopermaf authored Dec 10, 2023
1 parent 75783dc commit f4bd4a0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ __pycache__
.venv*/
.vscode/settings.json
*.egg-info
dist
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build:
hatch -v build -t wheel:standard

publish:
twine upload --verbose --repository teanglann dist/*
13 changes: 12 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Language :: Irish/Gaeilge",
]

[project.optional-dependencies]
Expand All @@ -37,3 +36,15 @@ dev = [

[project.urls]
Homepage = "https://github.com/sopermaf/RandomIrishWord"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
]

[tool.hatch.build.targets.wheel]
packages = ["src/teanglann"]

0 comments on commit f4bd4a0

Please sign in to comment.