Skip to content

Commit

Permalink
feat: use rye to publish a package (#214)
Browse files Browse the repository at this point in the history
* debug: bump konoha

* debug: RYE_INSTALL_OPTION

* debug: source is needed

* debug: syntax

* debug: rye build

* debug: hatch config

* misc: rye version -b patch
  • Loading branch information
himkt committed May 15, 2024
1 parent 12951ef commit 1ebe19a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
if: github.event_name == 'release'
steps:
- uses: actions/checkout@v4
- run: curl -sSf https://rye-up.com/get | bash
- run: rye build --sdist
- run: rye publish --yes --token "${{ secrets.PYPI_TOKEN }}"
- run: curl -sSf https://rye-up.com/get | RYE_INSTALL_OPTION="--yes" bash
- run: |
source $HOME/.rye/env
rye build
rye publish --yes --token "${{ secrets.PYPI_TOKEN }}"
9 changes: 2 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "konoha"
version = "5.5.5"
version = "5.5.6"
description = "Add your description here"
authors = [{ name = "himkt", email = "himkt@klis.tsukuba.ac.jp" }]
dependencies = [
Expand Down Expand Up @@ -57,12 +57,7 @@ build-backend = "hatchling.build"
allow-direct-references = true

[tool.hatch.build.targets.sdist]
packages = ["src/konoha"]
only-packages = true

[tool.hatch.build.targets.wheel]
packages = ["src/konoha"]
only-packages = true
only-include = ["src"]

[[tool.mypy.overrides]]
module = [
Expand Down

0 comments on commit 1ebe19a

Please sign in to comment.