Skip to content

Commit a072427

Browse files
committed
release v0.7
1 parent de055d7 commit a072427

4 files changed

Lines changed: 55 additions & 23 deletions

File tree

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,34 +147,34 @@ Here's how to package, test, and ship a new release.
147147

148148
```sh
149149
source local/bin/activate.csh
150-
python3 -m unittest discover
150+
python -m unittest discover
151151
```
152152
1. Bump the version number in `pyproject.toml` and `docs/conf.py`. `git grep` the old version number to make sure it only appears in the changelog. Change the current changelog entry in `README.md` for this new version from _unreleased_ to the current date.
153153
1. Build the docs. If you added any new modules, add them to the appropriate file(s) in `docs/source/`. Then run `./docs/build.sh`. Check that the generated HTML looks fine by opening `docs/_build/html/index.html` and looking around.
154154
1. `git commit -am 'release vX.Y'`
155155
1. Upload to [test.pypi.org](https://test.pypi.org/) for testing.
156156

157157
```sh
158-
python3 -m build
158+
python -m build
159159
setenv ver X.Y
160160
twine upload -r pypitest dist/lexrpc-$ver*
161161
```
162162
1. Install from test.pypi.org.
163163

164164
```sh
165165
cd /tmp
166-
python3 -m venv local
166+
python -m venv local
167167
source local/bin/activate.csh
168-
pip3 uninstall lexrpc # make sure we force pip to use the uploaded version
169-
pip3 install --upgrade pip
170-
pip3 install -i https://test.pypi.org/simple --extra-index-url https://pypi.org/simple lexrpc==$ver
168+
pip uninstall lexrpc # make sure we force pip to use the uploaded version
169+
pip install --upgrade pip
170+
pip install -i https://test.pypi.org/simple --extra-index-url https://pypi.org/simple lexrpc==$ver
171171
deactivate
172172
```
173173
1. Smoke test that the code trivially loads and runs.
174174

175175
```sh
176176
source local/bin/activate.csh
177-
python3
177+
python
178178
# run test code below
179179
deactivate
180180
```
@@ -227,7 +227,7 @@ Here's how to package, test, and ship a new release.
227227
228228
## Changelog
229229
230-
### 0.7 - unreleased
230+
### 0.7 - 2024-06-24
231231
232232
* Fix websocket subscription server hang with blocking server XRPC methods due to exhausting worker thread pool ([#8](https://github.com/snarfed/lexrpc/issues/8)).
233233
* Add `truncate` kwarg to `Client` and `Server` constructors to automatically truncate (ellipsize) string values that are longer than their ``maxGraphemes`` or ``maxLength`` in their lexicon. Defaults to `False`.

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@
8888
# built documents.
8989
#
9090
# The short X.Y version.
91-
version = '0.6'
91+
version = '0.7'
9292
# The full version, including alpha/beta/rc tags.
93-
release = '0.6'
93+
release = '0.7'
9494

9595
# The language for content autogenerated by Sphinx. Refer to documentation
9696
# for a list of supported languages.

docs/index.rst

Lines changed: 44 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ Here’s how to package, test, and ship a new release.
201201
.. code:: sh
202202
203203
source local/bin/activate.csh
204-
python3 -m unittest discover
204+
python -m unittest discover
205205
206206
2. Bump the version number in ``pyproject.toml`` and ``docs/conf.py``.
207207
``git grep`` the old version number to make sure it only appears in
@@ -219,7 +219,7 @@ Here’s how to package, test, and ship a new release.
219219

220220
.. code:: sh
221221
222-
python3 -m build
222+
python -m build
223223
setenv ver X.Y
224224
twine upload -r pypitest dist/lexrpc-$ver*
225225
@@ -228,19 +228,19 @@ Here’s how to package, test, and ship a new release.
228228
.. code:: sh
229229
230230
cd /tmp
231-
python3 -m venv local
231+
python -m venv local
232232
source local/bin/activate.csh
233-
pip3 uninstall lexrpc # make sure we force pip to use the uploaded version
234-
pip3 install --upgrade pip
235-
pip3 install -i https://test.pypi.org/simple --extra-index-url https://pypi.org/simple lexrpc==$ver
233+
pip uninstall lexrpc # make sure we force pip to use the uploaded version
234+
pip install --upgrade pip
235+
pip install -i https://test.pypi.org/simple --extra-index-url https://pypi.org/simple lexrpc==$ver
236236
deactivate
237237
238238
7. Smoke test that the code trivially loads and runs.
239239

240240
.. code:: sh
241241
242242
source local/bin/activate.csh
243-
python3
243+
python
244244
# run test code below
245245
deactivate
246246
@@ -311,6 +311,38 @@ Here’s how to package, test, and ship a new release.
311311
Changelog
312312
---------
313313

314+
0.7 - 2024-06-24
315+
~~~~~~~~~~~~~~~~
316+
317+
- Fix websocket subscription server hang with blocking server XRPC
318+
methods due to exhausting worker thread pool
319+
(`#8 <https://github.com/snarfed/lexrpc/issues/8>`__).
320+
- Add ``truncate`` kwarg to ``Client`` and ``Server`` constructors to
321+
automatically truncate (ellipsize) string values that are longer than
322+
their ``maxGraphemes`` or ``maxLength`` in their lexicon. Defaults to
323+
``False``.
324+
- Add new ``base.XrpcError`` exception type for named errors in method
325+
definitions.
326+
- ``flask_server``:
327+
328+
- Handle ``base.XrpcError``, convert to `JSON error
329+
response <https://atproto.com/specs/xrpc#error-responses>`__ with
330+
``error`` and ``message`` fields.
331+
332+
- ``Client``:
333+
334+
- Bug fix for calls with binary inputs that refresh the access
335+
token. Calls with binary input now buffer the entire input in
336+
memory.
337+
(`snarfed/bridgy#1670 <https://github.com/snarfed/bridgy/issues/1670>`__)
338+
- Bug fix: omit null (``None``) parameters instead of passing them
339+
with string value ``None``.
340+
341+
- Update bundled ``app.bsky`` and ``com.atproto`` lexicons, as of
342+
`bluesky-social/atproto@15cc6ff37c326d5c186385037c4bfe8b60ea41b1 <https://github.com/bluesky-social/atproto/commit/15cc6ff37c326d5c186385037c4bfe8b60ea41b1>`__.
343+
344+
.. _section-1:
345+
314346
0.6 - 2024-03-16
315347
~~~~~~~~~~~~~~~~
316348

@@ -320,7 +352,7 @@ Changelog
320352
- Update bundled ``app.bsky`` and ``com.atproto`` lexicons, as of
321353
`bluesky-social/atproto@f45eef3 <https://github.com/bluesky-social/atproto/commit/f45eef3414f8827ba3a6958a7040c7e38bfd6282>`__.
322354

323-
.. _section-1:
355+
.. _section-2:
324356

325357
0.5 - 2023-12-10
326358
~~~~~~~~~~~~~~~~
@@ -335,7 +367,7 @@ Changelog
335367
- Bug fix: don’t infinite loop if ``refreshSession`` fails.
336368
- Other minor authentication bug fixes.
337369

338-
.. _section-2:
370+
.. _section-3:
339371

340372
0.4 - 2023-10-28
341373
~~~~~~~~~~~~~~~~
@@ -376,7 +408,7 @@ Changelog
376408
- Add the ``error`` field to the JSON response bodies for most error
377409
responses.
378410

379-
.. _section-3:
411+
.. _section-4:
380412

381413
0.3 - 2023-08-29
382414
~~~~~~~~~~~~~~~~
@@ -388,7 +420,7 @@ Changelog
388420
- Add new ``Server.register`` method for manually registering handlers.
389421
- Bug fix for server ``@method`` decorator.
390422

391-
.. _section-4:
423+
.. _section-5:
392424

393425
0.2 - 2023-03-13
394426
~~~~~~~~~~~~~~~~
@@ -405,7 +437,7 @@ put more effort into matching and fully implementing them. Stay tuned!
405437
format <https://github.com/snarfed/atproto/commit/63b9873bb1699b6bce54e7a8d3db2fcbd2cfc5ab>`__.
406438
Original format is no longer supported.
407439

408-
.. _section-5:
440+
.. _section-6:
409441

410442
0.1 - 2022-12-13
411443
~~~~~~~~~~~~~~~~

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ where = ['.']
1616

1717
[project]
1818
name = 'lexrpc'
19-
version = '0.6'
19+
version = '0.7'
2020
authors = [
2121
{ name='Ryan Barrett', email='lexrpc@ryanb.org' },
2222
]

0 commit comments

Comments
 (0)