# Debian source notes for python-fastcrc

The upstream PyPI source distribution omits `tests/`.  Debian therefore uses
the GitHub archive for the corresponding `vVERSION` tag as its orig tarball so
that the upstream test suite is present during package builds.  The archive is
imported with `gbp import-orig --pristine-tar` and can be reproduced with:

    git clone --branch vVERSION --depth 1 https://github.com/overcat/fastcrc.git
    git -C fastcrc archive --format=tar --prefix=fastcrc-VERSION/ vVERSION \
        | gzip -n > python-fastcrc_VERSION.orig.tar.gz

For 0.3.6, tag `v0.3.6` resolves to commit
`65580dc67af54f5cab5d9ea4e0810d011bc136f5`.  It is a lightweight Git tag,
not a cryptographically signed annotated tag.  Verify the resulting orig
tarball against the `pristine-tar` branch before use.

The Debian build uses only crates packaged in `/usr/share/cargo/registry`.
`cargo prepare-debian` creates a local registry of links to those sources, and
the upstream lock file is temporarily moved aside because it records older
crate versions than current Debian.  The quilt patch updates the declared PyO3
dependency to the compatible version packaged in Debian.
