From 0a17ce96c265fcc3d41e8df6722258fc622fa684 Mon Sep 17 00:00:00 2001 From: Fredrik Warg Date: Fri, 23 Jan 2026 17:06:58 +0100 Subject: [PATCH] Updated for PyPi release --- .github/workflows/release.yml | 49 +++++++++++++++++------------------ CHANGELOG.md | 8 ++++++ README.md | 3 +-- dataprov/__init__.py | 2 +- pyproject.toml | 2 +- 5 files changed, 35 insertions(+), 29 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 40153a2..0021703 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,28 +35,27 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # Optional: Publish to PyPI (uncomment when ready) - # publish-pypi: - # needs: release - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v4 - # - # - name: Set up Python - # uses: actions/setup-python@v5 - # with: - # python-version: "3.12" - # - # - name: Install dependencies - # run: | - # python -m pip install --upgrade pip - # pip install build twine - # - # - name: Build package - # run: python -m build - # - # - name: Publish to PyPI - # env: - # TWINE_USERNAME: __token__ - # TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - # run: twine upload dist/* + publish-pypi: + needs: build-and-attach + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build twine + + - name: Build package + run: python -m build + + - name: Publish to PyPI + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} + run: twine upload dist/* diff --git a/CHANGELOG.md b/CHANGELOG.md index df46649..5b7d3d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.0.2] - 2026-01-23 + +### Added + +- PyPI publishing in release workflow +- PyPI version badge in README + ## [3.0.1] - 2026-01-23 ### Fixed @@ -52,5 +59,6 @@ Initial public release. - RDF/Turtle and JSON-LD ontology definitions - W3C PROV-JSON schema included +[3.0.2]: https://github.com/RI-SE/dataprov/releases/tag/v3.0.2 [3.0.1]: https://github.com/RI-SE/dataprov/releases/tag/v3.0.1 [3.0.0]: https://github.com/RI-SE/dataprov/releases/tag/v3.0.0 diff --git a/README.md b/README.md index a96b159..137257a 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ # dataprov [![CI](https://github.com/RI-SE/dataprov/actions/workflows/ci.yml/badge.svg)](https://github.com/RI-SE/dataprov/actions/workflows/ci.yml) +[![PyPI version](https://img.shields.io/pypi/v/dataprov)](https://pypi.org/project/dataprov/) [![GitHub Release](https://img.shields.io/github/v/release/RI-SE/dataprov)](https://github.com/RI-SE/dataprov/releases/latest) [![Python 3.10+](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/downloads/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) @@ -97,8 +98,6 @@ A lightweight Python library for tracking data provenance through processing pip **Install from PyPI:** -**TBD: Not published on PyPi yet** - ```bash pip install dataprov ``` diff --git a/dataprov/__init__.py b/dataprov/__init__.py index f8c7c01..b2e4da5 100644 --- a/dataprov/__init__.py +++ b/dataprov/__init__.py @@ -34,7 +34,7 @@ from dataprov.dataprov import ProvenanceChain -__version__ = "3.0.1" +__version__ = "3.0.2" __all__ = ["ProvenanceChain", "get_schema"] diff --git a/pyproject.toml b/pyproject.toml index 0dc96c1..82dc55c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "dataprov" -version = "3.0.1" +version = "3.0.2" description = "W3C PROV-compliant data provenance tracking library for recording processing chains" readme = "README.md" license = {file = "LICENSE"}