-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Publish coverage to codacy * Remove distribution files * Publish to PyPI, TestPyPI * Bump version to 2024.12.1
- Loading branch information
1 parent
c3a4776
commit a7b356f
Showing
6 changed files
with
117 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
name: Publish to PyPI and TestPyPI | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
name: Build Distribution Package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.12 | ||
- name: Install dependencies and build package | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
python3 -m pip install poetry | ||
python3 -m poetry install | ||
python3 -m poetry build | ||
- name: Store the distribution packages | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: python-distribution-packages | ||
path: dist/* | ||
publish-testpypi: | ||
name: Publish to TestPyPI | ||
needs: build | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: testpypi | ||
url: https://test.pypi.org/p/torchvinecopulib/ | ||
permissions: | ||
id-token: write | ||
# contents: write | ||
|
||
steps: | ||
- name: Download the distribution packages | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: python-distribution-packages | ||
path: dist/ | ||
- name: Publish distribution | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
verbose: true | ||
skip-existing: true | ||
repository-url: https://test.pypi.org/legacy/ | ||
|
||
publish-pypi: | ||
name: Publish to PyPI | ||
if: startsWith(github.ref, 'refs/tags/') | ||
needs: publish-testpypi | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/project/torchvinecopulib/ | ||
permissions: | ||
id-token: write | ||
# contents: write | ||
|
||
steps: | ||
- name: Download the distribution packages | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: python-distribution-packages | ||
path: dist/ | ||
- name: Publish distribution | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
verbose: true | ||
skip-existing: true | ||
|
||
github-release: | ||
name: Create GitHub Release | ||
if: startsWith(github.ref, 'refs/tags/') | ||
needs: publish-testpypi | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: write | ||
|
||
steps: | ||
- name: Download the distribution packages | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: python-distribution-packages | ||
path: dist/ | ||
- name: Sign the distribution packages | ||
uses: sigstore/[email protected] | ||
with: | ||
inputs: >- | ||
./dist/*.tar.gz | ||
./dist/*.whl | ||
- name: Github Release | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
run: >- | ||
gh release create | ||
'${{ github.ref_name }}' | ||
--repo '${{ github.repository }}' | ||
--notes "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
package-mode = true | ||
license = "GNU GPLv3" | ||
name = "torchvinecopulib" | ||
version = "2024.10.1" | ||
version = "2024.12.1" | ||
description = "yet another vine copula library for PyTorch." | ||
authors = ["Tuoyuan Cheng <[email protected]>"] | ||
maintainers = ["Xiaosheng You <[email protected]>"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,3 @@ | |
"util", | ||
"vinecop", | ||
] | ||
__version__ = "2024.10.1" |