Skip to content

Commit

Permalink
Merge pull request #302 from april-tools/publish-package
Browse files Browse the repository at this point in the history
Publish package
  • Loading branch information
loreloc authored Oct 28, 2024
2 parents 3eb7925 + edcd1f7 commit c086622
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 7 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/libcirkit
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build --wheel
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@f7600683efdcb7656dec5b29656edb7bc586e597
27 changes: 20 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,23 @@ build-backend = "setuptools.build_meta"
include = ["cirkit*"]

[project]
name = "cirkit"
version = "0.0.0"
description = ""
name = "libcirkit"
version = "0.0.1"
description = "a python framework to build, learn and reason about probabilistic circuits and tensor networks"
readme = "README.md"
requires-python = ">=3.10"
license = { text="GPLv3" }
keywords = []
keywords = [
"probabilistic-modeling",
"tractable-models",
"probabilistic-inference",
"probabilistic-circuits",
"probabilistic-machine-learning",
"probabilistic-reasoning",
"tensor-network-decompositions",
"tractable-inference",
"tensor-net"
]
authors = [
{ name="The APRIL Lab." }
]
Expand All @@ -31,6 +41,12 @@ dependencies = [
"scipy~=1.14.0"
]

[project.urls]
"Homepage" = "https://github.com/april-tools/cirkit"
"Bug Tracker" = "https://github.com/april-tools/cirkit/issues"
"Coverage" = "https://app.codecov.io/gh/april-tools/cirkit"
"Documentation" = "https://cirkit-docs.readthedocs.io"

[project.optional-dependencies]
dev = [
"black[jupyter]~=23.0",
Expand Down Expand Up @@ -58,9 +74,6 @@ notebooks = [
"h5py"
]

[project.urls]
"Homepage" = "https://github.com/april-tools/cirkit"

################################################################################
# Anything below this line does count to the "hash of pyproject" in workflows,
# as they are for development tools but not project release.
Expand Down

0 comments on commit c086622

Please sign in to comment.