Skip to content

Commit

Permalink
python -c "import skypy; print(skypy.__version__)"
Browse files Browse the repository at this point in the history
  • Loading branch information
svnv-svsv-jm committed Dec 28, 2023
1 parent 58fd55c commit 2a9c6ee
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ jobs:
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ github.sha }}
release_name: Release ${{ github.sha }}
tag_name: python -c "import skypy; print(skypy.__version__)"
release_name: python -c "import skypy; print(skypy.__version__)"
draft: false
prerelease: false
env:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "skypy"
version = "0.1.0"
description = ""
description = "Hack Pokemon Scarlet and Violet!"
authors = ["svnv-svsv-jm <[email protected]>"]
readme = "README.md"
packages = [{ include = "skypy", from = "src" }]
Expand Down
9 changes: 9 additions & 0 deletions src/skypy/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# pylint: disable=redefined-builtin
import tomllib

with open("pyproject.toml", "rb") as f:
_META = tomllib.load(f)

__name__ = _META["tool"]["poetry"]["name"]
__version__ = _META["tool"]["poetry"]["version"]
__description__ = _META["tool"]["poetry"]["description"]

0 comments on commit 2a9c6ee

Please sign in to comment.