Skip to content

Commit

Permalink
Release commit created with Cranko.
Browse files Browse the repository at this point in the history
+++ cranko-release-info-v1
[[projects]]
qnames = ["pwkit", "pypa"]
version = "1.2.1"
age = 0

+++
  • Loading branch information
cranko committed Sep 13, 2024
2 parents a495cc9 + eeaf15c commit 5666e05
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 18 deletions.
11 changes: 9 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
version: 2

build:
image: latest
os: ubuntu-22.04
tools:
python: mambaforge-4.10

conda:
environment: .readthedocs_env.yml

python:
version: 3.8
install:
- method: pip
path: .
Expand All @@ -13,3 +17,6 @@ python:

# Don't build any extra formats
formats: []

sphinx:
configuration: docs/source/conf.py
20 changes: 20 additions & 0 deletions .readthedocs_env.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: pwkit_rtd
channels:
- conda-forge

dependencies:
- astropy
- mock
- numpydoc
- pandas
- pip
- python =3.12
- scipy
- setuptools
- sphinx
- sphinx_rtd_theme
# Work around an issue with v0.17 as seen in:
# https://github.com/WorldWideTelescope/pywwt/pull/375
# https://github.com/WorldWideTelescope/pywwt/commit/66480282c578353ea04d6716ca6015fec9370c44
# 0.18 is now available and may fix this.
- sphinx-automodapi=0.16
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# pwkit 1.2.1 (2024-09-13)

- Fix `pwkit.parallel.SerialHelper.get_map()` for Python 3 (#22)
- Fix `pwkit.lmmin.Problem.set_npar()` for recent Numpys (#20). I'm not sure if
we'll be compatible with Numpy 2.0, though.
- Get the ReadTheDocs docs building again, and make it so that we check RTD
builds as part of pull request processing
- README.md: fix some links to the documentation (@AstroGenevieve)


# pwkit 1.2.0 (2023-06-18)

- Remove the dependency on `six`
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ This is a collection of Peter Williams’ miscellaneous Python tools.
The online documentation contains [installation instructions]. The
documentation is very much a work in progress but [may be found here].

[installation instructions]: http://pwkit.readthedocs.org/en/latest/about/#installation
[may be found here]: http://pwkit.readthedocs.org/en/latest/
[installation instructions]: https://pwkit.readthedocs.io/en/latest/about.html#installation
[may be found here]: https://pwkit.readthedocs.io/en/latest/


## Citation
Expand Down Expand Up @@ -47,7 +47,7 @@ include after your Acknowledgments section would be:

See the [online documentation].

[online documentation]: http://pwkit.readthedocs.org/en/latest/about/#authors
[online documentation]: https://pwkit.readthedocs.io/en/latest/about.html#authors


## License
Expand Down
4 changes: 2 additions & 2 deletions ci/azure-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ parameters:
default:

- name: linux_310
vmImage: ubuntu-20.04
vmImage: ubuntu-latest
vars:
PYTHON_SERIES: "3.10"

- name: macos_310
vmImage: macos-11
vmImage: macos-latest
vars:
PYTHON_SERIES: "3.10"

Expand Down
12 changes: 6 additions & 6 deletions ci/zenodo.json5
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
],
"language": "eng",
"license": "MIT",
"publication_date": "2023-06-18",
"title": "pwkit 1.2.0",
"publication_date": "2024-09-13",
"title": "pwkit 1.2.1",
"upload_type": "software",
"version": "1.2.0"
"version": "1.2.1"
},
"conceptdoi": "10.5281/zenodo.8052838",
"record_id": "8052937",
"doi": "10.5281/zenodo.8052937",
"bucket_link": "https://zenodo.org/api/files/355c89ba-b49c-4ead-a3bb-2f3055c53d01"
"record_id": "13759572",
"doi": "10.5281/zenodo.13759572",
"bucket_link": "https://zenodo.org/api/files/40de735d-83fa-49e5-916f-48ed93a74ad9"
}
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
]

project = "pwkit"
release = "1.2.0" # cranko project-version
release = "1.2.1" # cranko project-version
version = ".".join(release.split(".")[:2])

copyright = "2015-2023, Peter K. G. Williams and collaborators"
Expand Down
2 changes: 1 addition & 1 deletion pwkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

__all__ = "Holder PKError binary_type reraise_context text_type unicode_to_str".split()

__version__ = "1.2.0" # cranko project-version
__version__ = "1.2.1" # cranko project-version

# Archaic Python 2/3 compatibility support

Expand Down
2 changes: 1 addition & 1 deletion pwkit/lmmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,7 @@ def set_npar(self, npar):
p[PI_F_STEP] = 0.0
p[PI_F_MAXSTEP] = np.inf

newinfoo = p = np.ndarray((PI_NUM_O, npar), dtype=np.object)
newinfoo = p = np.ndarray((PI_NUM_O, npar), dtype=object)
p[PI_O_TIEFUNC] = None

newinfob = p = np.ndarray(npar, dtype=int)
Expand Down
2 changes: 1 addition & 1 deletion pwkit/parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def __init__(self, chunksize=None):
pass

def get_map(self):
return VacuousContextManager(map)
return VacuousContextManager(lambda f, v: [f(x) for x in v])

def get_ppmap(self):
return VacuousContextManager(serial_ppmap)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def get_long_desc():

setup(
name="pwkit", # cranko project-name
version="1.2.0", # cranko project-version
version="1.2.1", # cranko project-version
# This package actually *is* zip-safe, but I've run into issues with
# installing it as a Zip: in particular, the install sometimes fails with
# "bad local file header", and reloading a module after a reinstall in
Expand Down

0 comments on commit 5666e05

Please sign in to comment.