gh-action-pypi-publish | GitHub Action , for publishing your package | BPM library
kandi X-RAY | gh-action-pypi-publish Summary
kandi X-RAY | gh-action-pypi-publish Summary
GitHub Action, for publishing distribution files to PyPI
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gh-action-pypi-publish
gh-action-pypi-publish Key Features
gh-action-pypi-publish Examples and Code Snippets
Community Discussions
Trending Discussions on gh-action-pypi-publish
QUESTION
I've noticed in various GitHub Action workflow examples, often when calling a pre-defined action (with the uses:
syntax) then a particular version of that action is specified. For example:
ANSWER
Answered 2021-Dec-02 at 01:00People should get used to such tags based release management (other examples like Docker), as documented in articles like this.
How do a user know which tag to use? Usually the action documentation file contains the recommended version to use, so 99% of the users should follow that. You only need to use other tags if you want to live on the bleeding edge.
QUESTION
I am trying to publish a Python package to PyPI, from a Github workflow, but the authentication fails for "Test PyPI". I successfully published to Test PyPI from the command line, so my API token must be correct. I also checked for leading and trailing spaces in the secret value (i.e., on GitHub).
As the last commits show, I tried a few things without success.
I first tried to inline simple bash commands into the workflow as follows, but I have not been able to get my secrets into environment variables. Nothing showed up in the logs when I printed these variables.
...ANSWER
Answered 2021-Mar-08 at 08:15I eventually figured it out. My mistake was that I defined my secrets within an environment and, by default, workflows do not run in any specific environment. For this to happen, I have to explicitly name the environment in the job description as follows:
QUESTION
I was trying to push the package from the CI directly to pypi after successful build.
I have tried couple of tools, say "setuptools-scm", everything works well and i get automatic version change based on my tagging like package-0.0.2.post11-py3-none-any.whl
in my local.
When i push the same code as part of github actions (command Run python3 setup.py sdist bdist_wheel
) i dont see the versions getting updated and i always get package-0.0.0-py3-none-any.whl
Below is the snippet of setup.py
...ANSWER
Answered 2020-Jul-19 at 10:54the action - uses: actions/checkout@v2
is not fetching the tags along while checking out. Had to additionally add below lines to fetch the tags from git
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gh-action-pypi-publish
You can use gh-action-pypi-publish like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page