From 7b4369c8afe607ead233ecabb895b51faf3deb63 Mon Sep 17 00:00:00 2001 From: Andrea Zoppi Date: Sat, 5 Oct 2024 14:30:35 +0200 Subject: [PATCH] Updated workflows and metadata Signed-off-by: Andrea Zoppi --- .github/workflows/ci.yml | 20 +++++++++++--------- .github/workflows/packaging.yml | 10 +++++----- .gitignore | 5 ++--- CHANGELOG.rst | 6 ++++++ MANIFEST.in | 1 + README.rst | 2 +- pyproject.toml | 3 ++- src/bytesparse/__init__.py | 2 +- tox.ini | 8 +++----- 9 files changed, 32 insertions(+), 25 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 973daae..50a7daf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - rc pull_request: @@ -20,19 +21,17 @@ jobs: - windows-latest python-version: - - '3.7' - - '3.8' - '3.9' - '3.10' - '3.11' - '3.12' - - pypy-3.10 + - pypy3.10 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -43,16 +42,19 @@ jobs: run: tox - name: Upload coverage - if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.11' }} - uses: actions/upload-artifact@v3 + if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.12' }} + uses: actions/upload-artifact@v4 with: name: bytesparse-coverage path: coverage.xml if-no-files-found: error - name: Upload to codecov - if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.11' }} - uses: codecov/codecov-action@v3 + if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.12' }} + uses: codecov/codecov-action@v4 with: + fail_ci_if_error: true files: coverage.xml flags: unittests + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml index 1bd43e8..287d4cf 100644 --- a/.github/workflows/packaging.yml +++ b/.github/workflows/packaging.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - rc pull_request: @@ -17,17 +18,16 @@ jobs: max-parallel: 4 matrix: python-version: - - '3.7' - - '3.8' - '3.9' - '3.10' - '3.11' + - '3.12' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -41,7 +41,7 @@ jobs: run: twine check dist/* - name: Upload dist folder - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: bytesparse-dist-py${{ matrix.python-version }} path: dist diff --git a/.gitignore b/.gitignore index 7e90797..8ef5f83 100644 --- a/.gitignore +++ b/.gitignore @@ -10,7 +10,7 @@ dist build eggs .eggs -env +*env parts bin var @@ -20,8 +20,6 @@ develop-eggs .installed.cfg lib lib64 -venv*/ -pyvenv*/ tmp* # Installer logs @@ -48,6 +46,7 @@ tests/*.html .idea *.iml *.komodoproject +.vscode # Complexity output/*.html diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 93fe86a..52361c1 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,12 @@ Changelog ========= +1.0.1 (2024-10-05) +------------------ + +* Minor workflow and metadata updates. + + 1.0.0 (2024-03-07) ------------------ diff --git a/MANIFEST.in b/MANIFEST.in index 2d9c35d..c60df7e 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -17,6 +17,7 @@ include README.rst include requirements.txt include pyproject.toml include setup.cfg +include setup.py include tox.ini exclude build diff --git a/README.rst b/README.rst index 94e1f09..ff4bb53 100644 --- a/README.rst +++ b/README.rst @@ -27,7 +27,7 @@ Overview .. |codecov| image:: https://codecov.io/gh/TexZK/bytesparse/branch/main/graphs/badge.svg?branch=main :alt: Coverage Status - :target: https://codecov.io/github/TexZK/bytesparse + :target: https://app.codecov.io/github/TexZK/bytesparse .. |version| image:: https://img.shields.io/pypi/v/bytesparse.svg :alt: PyPI Package latest release diff --git a/pyproject.toml b/pyproject.toml index d30bc90..a1acf4a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,9 +17,10 @@ classifiers = [ "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.10", # adds: typing.TypeAlias "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator", diff --git a/src/bytesparse/__init__.py b/src/bytesparse/__init__.py index b15e5d3..57a7a9f 100644 --- a/src/bytesparse/__init__.py +++ b/src/bytesparse/__init__.py @@ -112,7 +112,7 @@ """ -__version__ = '1.0.0' +__version__ = '1.0.1' from .inplace import Memory from .inplace import bytesparse diff --git a/tox.ini b/tox.ini index 4d5f1cd..afeeac9 100644 --- a/tox.ini +++ b/tox.ini @@ -125,10 +125,8 @@ skip_install = true ; Settings for GitHub Actions. [gh-actions] python = - 3.7: py37 - 3.8: py38 3.9: py39 3.10: py310 - 3.11: {py311,clean,check,report,docs,spell} - 3.12: py312 - pypy-3.9: pypy3 + 3.11: py311 + 3.12: {py312,clean,check,report,docs,spell} + pypy-3.10: pypy3