Repository: librosa/librosa

Issue:
Update actions
Our pypi deployment action works, but it needs to be updated.
Update actions
Our pypi deployment action works, but it needs to be updated.


Discussion:
For a bit more context, the action we're using is deprecated, and issues the following message now:


> You are using `pypa/gh-action-pypi-publish@master`. The `master` branch of this project has been sunset and will not receive any updates, not even security bug fixes. Please, make sure to use a supported version. If you want to pin to v1 major version, use `pypa/gh-action-pypi-publish@release/v1`. If you feel adventurous, you may opt to use use `pypa/gh-action-pypi-publish@unstable/v1` instead. A more general recommendation is to pin to exact tags or commit SHAs.
> 
> Please also consider migrading your setup to use secretless publishing: https://github.com/marketplace/actions/pypi-publish#trusted-publishing
> 
Updating this issue because we need to update almost all gh actions at this point due to node deprecations.
For a bit more context, the action we're using is deprecated, and issues the following message now:


> You are using `pypa/gh-action-pypi-publish@master`. The `master` branch of this project has been sunset and will not receive any updates, not even security bug fixes. Please, make sure to use a supported version. If you want to pin to v1 major version, use `pypa/gh-action-pypi-publish@release/v1`. If you feel adventurous, you may opt to use use `pypa/gh-action-pypi-publish@unstable/v1` instead. A more general recommendation is to pin to exact tags or commit SHAs.
> 
> Please also consider migrading your setup to use secretless publishing: https://github.com/marketplace/actions/pypi-publish#trusted-publishing
> 
Updating this issue because we need to update almost all gh actions at this point due to node deprecations.

Resolving patch:
diff --git a/docs/examples/plot_pcen_stream.py b/docs/examples/plot_pcen_stream.py
--- a/docs/examples/plot_pcen_stream.py
+++ b/docs/examples/plot_pcen_stream.py
@@ -63,7 +63,7 @@
 zi = None
 
 # Create a handle for storing the block STFT outputs
-# After the first block has been processed, we can re-use
+# After the first block has been processed, we can reuse
 # this buffer instead of allocating a new one for each block.
 D = None
 
diff --git a/librosa/feature/spectral.py b/librosa/feature/spectral.py
--- a/librosa/feature/spectral.py
+++ b/librosa/feature/spectral.py
@@ -1035,7 +1035,7 @@ def poly_features(
     if freq.ndim == 1:
         # If frequencies are constant over frames, then we only need to fit once
         fitter = np.vectorize(
-            lambda y: np.polyfit(freq, y, order), signature="(f,t)->(d,t)"  # type: ignore
+            lambda y: np.polyfit(freq, y, order), signature="(f,t)->(d,t)"
         )
         coefficients = fitter(S)
     else:
diff --git a/scripts/create_author_list.py b/scripts/create_author_list.py
--- a/scripts/create_author_list.py
+++ b/scripts/create_author_list.py
@@ -13,7 +13,7 @@ def get_contributors(repo_owner, repo_name):
     contributors = {}
 
     while url:
-        response = requests.get(url)
+        response = requests.get(url, timeout=(3.05, 27))
 
         if response.status_code != 200:
             raise Exception(f"Failed to retrieve contributors: {response.json()['message']}")


Test patch: