Skip to content

Commit

Permalink
release: v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ntarocco committed Nov 26, 2024
1 parent 4ebd69a commit 3870d97
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 60 deletions.
38 changes: 11 additions & 27 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2024 CERN.
#
# 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.

name: Publish

on:
Expand All @@ -6,30 +14,6 @@ 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
# Remove `compile_catalog` if the package has no translations.
run: |
python setup.py sdist bdist_wheel
- name: Publish on PyPI
uses: pypa/[email protected]
with:
user: __token__
# The token is provided by the inveniosoftware organization
password: ${{ secrets.pypi_token }}
Build-N-Publish:
uses: inveniosoftware/workflows/.github/workflows/pypi-publish.yml@master
secrets: inherit
44 changes: 12 additions & 32 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2020 CERN.
# Copyright (C) 2024 CERN.
# Copyright (C) 2022 Graz University of Technology.
#
# Invenio is free software; you can redistribute it and/or modify it
Expand All @@ -11,44 +11,24 @@ name: CI

on:
push:
branches: master
branches:
- master
pull_request:
branches: master
branches:
- master
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 3 * * 6'
- cron: "0 3 * * 6"
workflow_dispatch:
inputs:
reason:
description: 'Reason'
description: "Reason"
required: false
default: 'Manual trigger'
default: "Manual trigger"

jobs:
Tests:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']

env:
EXTRAS: tests

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: setup.cfg

- name: Install dependencies
run: |
pip install .[$EXTRAS]
pip freeze
- name: Run tests
run: ./run-tests.sh
uses: inveniosoftware/workflows/.github/workflows/tests-python.yml@master
with:
db-service: '[""]'
search-service: '[""]'
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changes
=======

Version 2.1.0 (released 2024-11-26)

- Add a copy func to copy assets from a directly to another. It validates the from/to
path to sandbox the copy locations.

Version 2.0.1 (released 2024-09-20)

- Removes implicit dependency on setuptools and use importlib-metadata instead of the
Expand Down
2 changes: 1 addition & 1 deletion pywebpack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@
from .project import WebpackBundleProject, WebpackProject, WebpackTemplateProject
from .storage import FileStorage, LinkStorage

__version__ = "2.0.1"
__version__ = "2.1.0"

__all__ = (
"__version__",
Expand Down

0 comments on commit 3870d97

Please sign in to comment.