Common utilities for Synapse, Sydent and Sygnal
Project description
matrix-python-common
Common utilities for Synapse, Sydent and Sygnal.
Installation
pip install matrix-common
Usage
import matrix_common
Development
In a virtual environment with pip ≥ 21.1, run
pip install -e .[dev]
To run the unit tests, you can either use:
tox -e py
or
trial tests
To run the linters and mypy
type checker, use ./scripts-dev/lint.sh
.
Releasing
The exact steps for releasing will vary; but this is an approach taken by the Synapse developers (assuming a Unix-like shell):
-
Set a shell variable to the version you are releasing (this just makes subsequent steps easier):
version=X.Y.Z
-
Update
setup.cfg
so that theversion
is correct. -
Stage the changed files and commit.
git add -u git commit -m v$version -n
-
Push your changes.
git push
-
When ready, create a signed tag for the release:
git tag -s v$version
Base the tag message on the changelog.
-
Push the tag.
git push origin tag v$version
-
If applicable: Create a release, based on the tag you just pushed, on GitHub or GitLab.
-
If applicable: Create a source distribution and upload it to PyPI:
python -m build twine upload dist/matrix_common-$version*
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file matrix_common-1.1.0.tar.gz
.
File metadata
- Download URL: matrix_common-1.1.0.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8238748afc2b37079818367fed5156f355771b07c8ff0a175934f47e0ff3276 |
|
MD5 | ef88947ca92dbba3530f545549dd5f4e |
|
BLAKE2b-256 | d4b3bb414c46c8ac4ce5eb6f923d97d5516a56788195ca8f30efcbfbb47e4460 |
File details
Details for the file matrix_common-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: matrix_common-1.1.0-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d6dfd777503b2f3a031b566e6af25b6e95f9c0818ef57d954c3190fce5eb407 |
|
MD5 | e001bbc113e0d0c3296dd0c8cee408d9 |
|
BLAKE2b-256 | a8d884d258b0bd20cf61a68f5fd20ed76c5a647fe85e1d518dc5601cddfa8a83 |