From eda5a8968ddc73bdba42b05268e19239157a4aa9 Mon Sep 17 00:00:00 2001 From: Maximilian Moser Date: Thu, 20 Feb 2025 12:12:09 +0100 Subject: [PATCH 1/3] ci: update PyPI publish workflow to use shared configuration --- .github/workflows/pypi-publish.yml | 31 ++++++------------------------ 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index aadd980..6a6b84a 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -2,6 +2,7 @@ # # This file is part of Invenio. # Copyright (C) 2020 CERN. +# Copyright (C) 2025 KTH Royal Institute of Technology. # # Invenio is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. @@ -14,28 +15,8 @@ on: - v* jobs: - Publish: - runs-on: ubuntu-20.04 - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: 3.7 - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel babel - - - name: Build package - run: | - python setup.py sdist bdist_wheel - - - name: Publish on PyPI - uses: pypa/gh-action-pypi-publish@v1.3.1 - with: - user: __token__ - password: ${{ secrets.pypi_token }} + build-n-publish: + uses: inveniosoftware/workflows/.github/workflows/pypi-publish.yml@master + secrets: inherit + with: + babel-compile-catalog: true From a43b26e37cab05cc6f18d402287a2c5fc65d01ae Mon Sep 17 00:00:00 2001 From: Maximilian Moser Date: Thu, 20 Feb 2025 12:10:09 +0100 Subject: [PATCH 2/3] release: v0.3.0 --- CHANGES.rst | 2 +- pynpm/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 537bf4e..bcdc9ce 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,7 +1,7 @@ Changes ======= -Version +Version 0.3.0 (released 2025-02-20) - Add ``PNPMPackage`` diff --git a/pynpm/__init__.py b/pynpm/__init__.py index b967579..c7dc26c 100644 --- a/pynpm/__init__.py +++ b/pynpm/__init__.py @@ -14,6 +14,6 @@ from .package import NPMPackage, PNPMPackage, YarnPackage -__version__ = "0.2.0" +__version__ = "0.3.0" __all__ = ("__version__", "NPMPackage", "PNPMPackage", "YarnPackage") From 10c028f960489e3b9ee8f9dea8525766d0276c7e Mon Sep 17 00:00:00 2001 From: Maximilian Moser Date: Thu, 20 Feb 2025 12:22:02 +0100 Subject: [PATCH 3/3] ci: remove babel-compile-catalog from PyPI publish --- .github/workflows/pypi-publish.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 6a6b84a..9e9cb2f 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -18,5 +18,3 @@ jobs: build-n-publish: uses: inveniosoftware/workflows/.github/workflows/pypi-publish.yml@master secrets: inherit - with: - babel-compile-catalog: true