Skip to content

Commit

Permalink
Updated Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mcuntz committed Jan 28, 2024
1 parent 7becac5 commit 80c6e9d
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 30 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
fail-fast: false

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v2
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.11'

- name: Install dependencies
run: |
Expand All @@ -43,15 +43,15 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: '0'

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -67,11 +67,12 @@ jobs:
python -m coveralls --service=github
- name: Build sdist
if: matrix.os == 'ubuntu-latest'
run: |
python -m build
- uses: actions/upload-artifact@v2
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
- uses: actions/upload-artifact@v4
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
with:
path: dist

Expand All @@ -80,7 +81,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
Expand All @@ -92,8 +93,8 @@ jobs:
with:
user: __token__
password: ${{ secrets.test_pypi_token }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
repository-url: https://test.pypi.org/legacy/
skip-existing: true
# verbose: true

- name: Publish to PyPI
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
---------

v2.1 (??? 2024)
* Updated Github actions.
* Corrected bugs in README.rst and MANIFEST.in.

v2.0 (Nov 2023)
* Rewrote Quickstart and User Guide.
* Use formatted strings where appropriate in std_io.
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ graft src
graft tests
graft docs/examples_userguide

include AUTHORS.rst CHANGELOG.rst README.md LICENSE pyproject.toml setup.cfg
include AUTHORS.rst CHANGELOG.rst README.rst LICENSE pyproject.toml setup.cfg
global-exclude __pycache__ *.py[cod] .*
24 changes: 12 additions & 12 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ or via `conda`:
conda install -c conda-forge partialwrap
Requirements:
-------------
Requirements
------------

- `NumPy <https://www.numpy.org>`__

Expand All @@ -174,21 +174,21 @@ The project structure is based on a `template`_ provided by `Sebastian Müller`_
:target: https://anaconda.org/conda-forge/partialwrap
.. |License| image:: http://img.shields.io/badge/license-MIT-blue.svg?style=flat
:target: https://github.com/mcuntz/partialwrap/blob/master/LICENSE
.. |Build Status| image:: https://github.com/mcuntz/partialwrap/workflows/Continuous%20Integration/badge.svg?branch=main
.. |Build Status| image:: https://github.com/mcuntz/partialwrap/workflows/Continuous%20Integration/badge.svg?branch=master
:target: https://github.com/mcuntz/partialwrap/actions
.. |Coverage Status| image:: https://coveralls.io/repos/github/mcuntz/partialwrap/badge.svg?branch=master
:target: https://coveralls.io/github/mcuntz/partialwrap?branch=master

.. _functools.partial: https://docs.python.org/3/library/functools.html#functools.partial
.. _scipy.optimize: https://docs.scipy.org/doc/scipy/reference/tutorial/optimize.html
.. _emcee: https://github.com/dfm/emcee
.. _pyeee: https://github.com/mcuntz/pyeee
.. _multiprocessing: https://docs.python.org/3/library/multiprocessing.html
.. _LICENSE: https://github.com/mcuntz/partialwrap/LICENSE
.. _MPI: https://bitbucket.org/mpi4py/mpi4py
.. _Rastrigin function: https://en.wikipedia.org/wiki/Rastrigin_function
.. _partial: https://docs.python.org/3/library/functools.html#functools.partial
.. _Sebastian Müller: https://github.com/MuellerSeb
.. _emcee: https://github.com/dfm/emcee
.. _functools: https://docs.python.org/3/library/functools.html
.. _userguide: https://mcuntz.github.io/partialwrap/html/userguide.html
.. _LICENSE: https://github.com/mcuntz/partialwrap/LICENSE
.. _functools.partial: https://docs.python.org/3/library/functools.html#functools.partial
.. _multiprocessing: https://docs.python.org/3/library/multiprocessing.html
.. _partial: https://docs.python.org/3/library/functools.html#functools.partial
.. _pyeee: https://github.com/mcuntz/pyeee
.. _scipy.optimize: https://docs.scipy.org/doc/scipy/reference/tutorial/optimize.html
.. _template: https://github.com/MuellerSeb/template
.. _Sebastian Müller: https://github.com/MuellerSeb
.. _userguide: https://mcuntz.github.io/partialwrap/html/userguide.html
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def setup(app):
"Python": ("https://docs.python.org/3/", None),
"NumPy": ("https://numpy.org/doc/stable/", None),
"SciPy": ("https://docs.scipy.org/doc/scipy/reference/", None),
"matplotlib": ("https://matplotlib.org/", None),
"matplotlib": ("https://matplotlib.org/stable/", None),
"Pandas": ("https://pandas.pydata.org/docs/", None),
"Cython": ("https://cython.readthedocs.io/en/latest/", None),
"cftime": ("https://unidata.github.io/cftime/", None),
Expand All @@ -246,5 +246,5 @@ def setup(app):
"schwimmbad": ("https://schwimmbad.readthedocs.io/en/latest/", None),
"mpi4py": ("https://mpi4py.readthedocs.io/en/latest/", None),
"emcee": ("https://emcee.readthedocs.io/en/latest/", None),
"pyeee": ("https://pyeee.readthedocs.io/en/latest/", None),
"pyeee": ("https://mcuntz.github.io/pyeee/html/", None),
}
6 changes: 3 additions & 3 deletions src/partialwrap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
partialwrap provides wrappers for Python functions and external executables so
that they can easily be partialised with functools.partial.
:copyright: Copyright 2016-2022 Matthias Cuntz, see AUTHORS.md for details.
:copyright: Copyright 2016-2024 Matthias Cuntz; see AUTHORS.rst for details.
:license: MIT License, see LICENSE for details.
Subpackages
===========
.. autosummary::
wrappers
std_io
wrappers
std_io
History
* Written Mar 2020 by Matthias Cuntz (mc (at) macu (dot) de)
Expand Down

0 comments on commit 80c6e9d

Please sign in to comment.