Skip to content

Commit 5666e05

Browse files
author
cranko
committed
Release commit created with Cranko.
+++ cranko-release-info-v1 [[projects]] qnames = ["pwkit", "pypa"] version = "1.2.1" age = 0 +++
2 parents a495cc9 + eeaf15c commit 5666e05

File tree

11 files changed

+55
-18
lines changed

11 files changed

+55
-18
lines changed

.readthedocs.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
version: 2
22

33
build:
4-
image: latest
4+
os: ubuntu-22.04
5+
tools:
6+
python: mambaforge-4.10
7+
8+
conda:
9+
environment: .readthedocs_env.yml
510

611
python:
7-
version: 3.8
812
install:
913
- method: pip
1014
path: .
@@ -13,3 +17,6 @@ python:
1317

1418
# Don't build any extra formats
1519
formats: []
20+
21+
sphinx:
22+
configuration: docs/source/conf.py

.readthedocs_env.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: pwkit_rtd
2+
channels:
3+
- conda-forge
4+
5+
dependencies:
6+
- astropy
7+
- mock
8+
- numpydoc
9+
- pandas
10+
- pip
11+
- python =3.12
12+
- scipy
13+
- setuptools
14+
- sphinx
15+
- sphinx_rtd_theme
16+
# Work around an issue with v0.17 as seen in:
17+
# https://github.com/WorldWideTelescope/pywwt/pull/375
18+
# https://github.com/WorldWideTelescope/pywwt/commit/66480282c578353ea04d6716ca6015fec9370c44
19+
# 0.18 is now available and may fix this.
20+
- sphinx-automodapi=0.16

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# pwkit 1.2.1 (2024-09-13)
2+
3+
- Fix `pwkit.parallel.SerialHelper.get_map()` for Python 3 (#22)
4+
- Fix `pwkit.lmmin.Problem.set_npar()` for recent Numpys (#20). I'm not sure if
5+
we'll be compatible with Numpy 2.0, though.
6+
- Get the ReadTheDocs docs building again, and make it so that we check RTD
7+
builds as part of pull request processing
8+
- README.md: fix some links to the documentation (@AstroGenevieve)
9+
10+
111
# pwkit 1.2.0 (2023-06-18)
212

313
- Remove the dependency on `six`

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ This is a collection of Peter Williams’ miscellaneous Python tools.
99
The online documentation contains [installation instructions]. The
1010
documentation is very much a work in progress but [may be found here].
1111

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

1515

1616
## Citation
@@ -47,7 +47,7 @@ include after your Acknowledgments section would be:
4747

4848
See the [online documentation].
4949

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

5252

5353
## License

ci/azure-build-and-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ parameters:
66
default:
77

88
- name: linux_310
9-
vmImage: ubuntu-20.04
9+
vmImage: ubuntu-latest
1010
vars:
1111
PYTHON_SERIES: "3.10"
1212

1313
- name: macos_310
14-
vmImage: macos-11
14+
vmImage: macos-latest
1515
vars:
1616
PYTHON_SERIES: "3.10"
1717

ci/zenodo.json5

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
],
3131
"language": "eng",
3232
"license": "MIT",
33-
"publication_date": "2023-06-18",
34-
"title": "pwkit 1.2.0",
33+
"publication_date": "2024-09-13",
34+
"title": "pwkit 1.2.1",
3535
"upload_type": "software",
36-
"version": "1.2.0"
36+
"version": "1.2.1"
3737
},
3838
"conceptdoi": "10.5281/zenodo.8052838",
39-
"record_id": "8052937",
40-
"doi": "10.5281/zenodo.8052937",
41-
"bucket_link": "https://zenodo.org/api/files/355c89ba-b49c-4ead-a3bb-2f3055c53d01"
39+
"record_id": "13759572",
40+
"doi": "10.5281/zenodo.13759572",
41+
"bucket_link": "https://zenodo.org/api/files/40de735d-83fa-49e5-916f-48ed93a74ad9"
4242
}

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
]
1212

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

1717
copyright = "2015-2023, Peter K. G. Williams and collaborators"

pwkit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

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

12-
__version__ = "1.2.0" # cranko project-version
12+
__version__ = "1.2.1" # cranko project-version
1313

1414
# Archaic Python 2/3 compatibility support
1515

pwkit/lmmin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@ def set_npar(self, npar):
13281328
p[PI_F_STEP] = 0.0
13291329
p[PI_F_MAXSTEP] = np.inf
13301330

1331-
newinfoo = p = np.ndarray((PI_NUM_O, npar), dtype=np.object)
1331+
newinfoo = p = np.ndarray((PI_NUM_O, npar), dtype=object)
13321332
p[PI_O_TIEFUNC] = None
13331333

13341334
newinfob = p = np.ndarray(npar, dtype=int)

pwkit/parallel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def __init__(self, chunksize=None):
272272
pass
273273

274274
def get_map(self):
275-
return VacuousContextManager(map)
275+
return VacuousContextManager(lambda f, v: [f(x) for x in v])
276276

277277
def get_ppmap(self):
278278
return VacuousContextManager(serial_ppmap)

0 commit comments

Comments
 (0)