{project description}
Project description
poetry-stabs-package-sample
パッケージ公開サンプル
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry publish -r poetry-stabs-package-sample
型を付ける
テストを書く
awesome linters
documents
publish package
pypa/gh-action-pypi-publish@release/v1 を使うと公開できる、pypi とは odic で連携してるっぽいので事前に pypi の設定が必要 https://docs.github.com/ja/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-pypi
poetry publish をする
poetry に token の設定が必要
普通に公開しようとすると夏期のようなエラーが出た
❯ poetry publish --build -r testpypi
There are 2 files ready for publishing. Build anyway? (yes/no) [no] yes
Building poetry-stabs-package-sample (0.1.0)
- Building sdist
- Built poetry_stabs_package_sample-0.1.0.tar.gz
- Building wheel
- Built poetry_stabs_package_sample-0.1.0-py3-none-any.whl
Publishing poetry-stabs-package-sample (0.1.0) to testpypi
- Uploading poetry_stabs_package_sample-0.1.0-py3-none-any.whl FAILED
HTTP Error 403: Invalid or non-existent authentication information. See https://test.pypi.org/help/#invalid-auth for more information. | b'<html>\n <head>\n <title>403 Invalid or non-existent authentication information. See https://test.pypi.org/help/#invalid-auth for more information.\n \n <body>\n <h1>403 Invalid or non-existent authentication information. See https://test.pypi.org/help/#invalid-auth for more information.\n Access was denied to this resource.<br/><br/>\nInvalid or non-existent authentication information. See https://test.pypi.org/help/#invalid-auth for more information.\n\n\n \n'
poetry config pypi-token.testpypi "pypi-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
通った
❯ poetry publish --build -r testpypi
There are 2 files ready for publishing. Build anyway? (yes/no) [no] yes
Building poetry-stabs-package-sample (0.1.0)
- Building sdist
- Built poetry_stabs_package_sample-0.1.0.tar.gz
- Building wheel
- Built poetry_stabs_package_sample-0.1.0-py3-none-any.whl
Publishing poetry-stabs-package-sample (0.1.0) to testpypi
- Uploading poetry_stabs_package_sample-0.1.0-py3-none-any.whl 100%
- Uploading poetry_stabs_package_sample-0.1.0.tar.gz 100%
バージョンを上げる
poetry version patch
上でバージョンを上げても github 上の ci release ではバージョンは上がらなかったので pypi 上のバージョンは git tags のバージョンに依存してそう。pyproject.toml や自動で再デプロイするとバージョンが上がるわけではなさそう
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for poetry_stabs_package_sample-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45bf3f9dc69f8bf26c7af6279791b3810401a981d7893a959440d33b8cc7c15d |
|
MD5 | 364f839b4ba97c53a51860eeabf50e7a |
|
BLAKE2b-256 | 18cdb713a88fe5b78cb42335871fb8069979ae3c3a0ff8ab502da4b489e2c1d1 |
Close
Hashes for poetry_stabs_package_sample-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2035349eda0a028c8e21ecf151c96427867981a2a9db4bd2859e1b25bd5a722 |
|
MD5 | 3c716db09c670f48be1af11ad4f9e89f |
|
BLAKE2b-256 | dd17db08e4af5f450c82cff30070d91c32609a75f0bfba173d9347f15f5d9406 |