From 1ebe19a0f4cb4f608404ee356a2177493943d42a Mon Sep 17 00:00:00 2001 From: himkt Date: Thu, 16 May 2024 00:01:37 +0900 Subject: [PATCH] feat: use rye to publish a package (#214) * debug: bump konoha * debug: RYE_INSTALL_OPTION * debug: source is needed * debug: syntax * debug: rye build * debug: hatch config * misc: rye version -b patch --- .github/workflows/publish.yml | 8 +++++--- pyproject.toml | 9 ++------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 974e92b..c16cac3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 }}" diff --git a/pyproject.toml b/pyproject.toml index 5365b9f..d85abeb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = [ @@ -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 = [