From f1563f7575dfd34f3276b6aea00e1638ad102b67 Mon Sep 17 00:00:00 2001 From: Ryan Barrett Date: Fri, 15 Mar 2024 21:55:54 -0700 Subject: [PATCH] release v0.5 --- README.md | 2 +- arroba/datastore_storage.py | 2 +- arroba/repo.py | 2 +- arroba/storage.py | 2 +- arroba/xrpc_sync.py | 2 +- docs/conf.py | 4 ++-- docs/index.rst | 12 ++++++++---- pyproject.toml | 8 ++++---- 8 files changed, 19 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index b1778ff..1b74204 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ Optional, only used in [com.atproto.repo](https://arroba.readthedocs.io/en/stabl ## Changelog -### 0.5 - unreleased +### 0.5 - 2024-03-16 * Bug fix: base32-encode TIDs in record keys, `at://` URIs, commit `rev`s, etc. Before, we were using the integer UNIX timestamp directly, which happened to be the same 13 character length. Oops. * Switch from `BGS_HOST` environment variable to `RELAY_HOST`. `BGS_HOST` is still supported for backward compatibility. diff --git a/arroba/datastore_storage.py b/arroba/datastore_storage.py index 3f8436d..5f1c604 100644 --- a/arroba/datastore_storage.py +++ b/arroba/datastore_storage.py @@ -82,7 +82,7 @@ class CommitOp(ndb.Model): class AtpRepo(ndb.Model): - """An ATProto repo. + r"""An ATProto repo. Key name is DID. Only stores the repo's metadata. Blocks are stored in :class:`AtpBlock`\s. diff --git a/arroba/repo.py b/arroba/repo.py index cd3213d..44c732f 100644 --- a/arroba/repo.py +++ b/arroba/repo.py @@ -39,7 +39,7 @@ def writes_to_commit_ops(writes): - """Converts :class:`Write`\s to :class:`CommitOp`\s. + r"""Converts :class:`Write`\s to :class:`CommitOp`\s. Args: write (iterable): of :class:`Write` diff --git a/arroba/storage.py b/arroba/storage.py index ccd760a..a658761 100644 --- a/arroba/storage.py +++ b/arroba/storage.py @@ -50,7 +50,7 @@ class Action(Enum): class Block: - """An ATProto block: a record, :class:`MST` entry, or commit. + r"""An ATProto block: a record, :class:`MST` entry, or commit. Can start from either encoded bytes or decoded object, with or without :class:`CID`. Decodes, encodes, and generates :class:`CID` lazily, on diff --git a/arroba/xrpc_sync.py b/arroba/xrpc_sync.py index f14d990..689c34e 100644 --- a/arroba/xrpc_sync.py +++ b/arroba/xrpc_sync.py @@ -212,7 +212,7 @@ def get_record(input, did=None, collection=None, rkey=None, commit=None): @server.server.method('com.atproto.sync.getBlob') def get_blob(input, did=None, cid=None): - """Handler for ``com.atproto.sync.getBlob`` XRPC method. + r"""Handler for ``com.atproto.sync.getBlob`` XRPC method. Right now only supports redirecting to "remote" blobs based on stored :class:`AtpRemoteBlob`\s. diff --git a/docs/conf.py b/docs/conf.py index 2827de4..8ba6606 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -89,9 +89,9 @@ # built documents. # # The short X.Y version. -version = '0.4' +version = '0.5' # The full version, including alpha/beta/rc tags. -release = '0.4' +release = '0.5' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/docs/index.rst b/docs/index.rst index 0f51e6b..077dd81 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -149,12 +149,14 @@ XRPC handlers: Changelog --------- -0.5 - unreleased +0.5 - 2024-03-16 ~~~~~~~~~~~~~~~~ - Bug fix: base32-encode TIDs in record keys, ``at://`` URIs, commit ``rev``\ s, etc. Before, we were using the integer UNIX timestamp directly, which happened to be the same 13 character length. Oops. +- Switch from ``BGS_HOST`` environment variable to ``RELAY_HOST``. + ``BGS_HOST`` is still supported for backward compatibility. - ``datastore_storage``: - Bug fix for ``DatastoreStorage.last_seq``, handle new NSID. @@ -186,6 +188,8 @@ Changelog - Implement ``getBlob``, right now only based on “remote” blobs stored in ``AtpRemoteBlob``\ s in datastore storage. +.. _section-1: + 0.4 - 2023-09-19 ~~~~~~~~~~~~~~~~ @@ -225,7 +229,7 @@ Changelog - Drop bundled ``app.bsky``/``com.atproto`` lexicons, use `lexrpc `__\ ’s instead. -.. _section-1: +.. _section-2: 0.3 - 2023-08-29 ~~~~~~~~~~~~~~~~ @@ -243,7 +247,7 @@ minimal demo code needed to wrap arroba in a fully functional PDS. - …and much more. -.. _section-2: +.. _section-3: 0.2 - 2023-05-18 ~~~~~~~~~~~~~~~~ @@ -253,7 +257,7 @@ storage. This completes the first pass at all PDS data structures. Next release will include initial implementations of the ``com.atproto.sync.*`` XRPC methods. -.. _section-3: +.. _section-4: 0.1 - 2023-04-30 ~~~~~~~~~~~~~~~~ diff --git a/pyproject.toml b/pyproject.toml index f3dce8c..8364239 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ where = ['.'] [project] name = 'arroba' -version = '0.4' +version = '0.5' authors = [ { name='Ryan Barrett', email='arroba@ryanb.org' }, ] @@ -18,13 +18,13 @@ readme = 'README.md' requires-python = '>=3.9' keywords = ['arroba', 'AT Protocol', 'ATP', 'Bluesky'] dependencies = [ - 'carbox', + 'carbox>=0.3', 'cryptography', 'dag-cbor', 'dag-json', 'dnspython>=2.0.0', - 'lexrpc>=0.3', - 'multiformats>=0.2.0', + 'lexrpc>=0.6', + 'multiformats>=0.3.1', 'pyjwt>=2.0.0', 'simple-websocket', ]