KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
pyproject-check-version
★ 9
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
Cloudflare-bulk-dns-delete
:
A script made to delete a decently big amount of records from cloudflare DNS.
wm_sdk_w80x
:
SDK for WinnerMicro W800/W801
OpenECCI-GUI
:
GUI-based software for controlled ECCI (Electron Channelling Contrast Imaging) analysis of crystal defects in a scanning electron microscope (SEM).
Linux-PAM-Security-Administration
:
Linux PAM Security Administration, by Packt Publishing
AppInfoList
:
Display support and application information on the settings screen View.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
pyproject-check-version
?
Download (.md)
# pyproject-check-version This action checks if the version in the `pyproject.toml` file is newer than in published package on PyPI. You can use it to trigger a new release or to skip the release if the version is already published. Usage example: ```yaml name: CI on: push: branches: [ "main" ] workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Check pypi versions uses: maybe-hello-world/pyproject-check-version@v4 id: versioncheck with: pyproject-path: "./pyproject.toml" # default value - name: check output run: | echo "Output: ${{ steps.versioncheck.outputs.local_version_is_higher }}" # 'true' or 'false echo "Local version: ${{ steps.versioncheck.outputs.local_version }}" # e.g., 0.1.1 echo "Public version: ${{ steps.versioncheck.outputs.public_version }}" # e.g., 0.1.0 ``` ## Test Regex Flag You can specify an optional `test-regex` expression for determining whether a version is intended as a test package or not: ```yaml name: CI on: push: branches: [ "main" ] workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Check pypi versions uses: maybe-hello-world/pyproject-check-version@v4 id: versioncheck with: pyproject-path: "./pyproject.toml" test-regex: "[0-9]+.[0-9]+.[0-9]+rc[0-9]+" - name: check output run: | echo "Output: ${{ steps.versioncheck.outputs.local_version_is_higher }}" # 'true' or 'false echo "Local version: ${{ steps.versioncheck.outputs.local_version }}" # e.g., 0.1.1 echo "Public version: ${{ steps.versioncheck.outputs.public_version }}" # e.g., 0.1.0 echo "Is test: ${{ steps.versioncheck.outputs.is_test }}" # e.g., 'true' or 'false' ``` With the above regex, `0.1.0.rc1` will set `is_test` to `'true'`, while `0.1.0` will set it to `'false'`. You can use the value of `is_test` to switch between test pypi and regular pypi.