Skip to main content

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):

  1. Set a shell variable to the version you are releasing (this just makes subsequent steps easier):

    version=X.Y.Z
    
  2. Update setup.cfg so that the version is correct.

  3. Stage the changed files and commit.

    git add -u
    git commit -m v$version -n
    
  4. Push your changes.

    git push
    
  5. When ready, create a signed tag for the release:

    git tag -s v$version
    

    Base the tag message on the changelog.

  6. Push the tag.

    git push origin tag v$version
    
  7. If applicable: Create a release, based on the tag you just pushed, on GitHub or GitLab.

  8. 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

matrix_common-1.0.0.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

matrix_common-1.0.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file matrix_common-1.0.0.tar.gz.

File metadata

  • Download URL: matrix_common-1.0.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for matrix_common-1.0.0.tar.gz
Algorithm Hash digest
SHA256 66688a46827c86fd544ae2410f3576535b8816dda5471993fa200ea8e4a124ae
MD5 8fcbeb8b6b467111c840e40df532a699
BLAKE2b-256 5e83a17d573a38c445e4c04ec15eda3b7e6e0768a7459fd78581e38c5c406319

See more details on using hashes here.

File details

Details for the file matrix_common-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: matrix_common-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for matrix_common-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d68dab3fc9aa60dedce410d184db3d97c9b5ca7910244f1b37c39a2befe18cce
MD5 e8df075202ac0d56d9d424d833e9ce83
BLAKE2b-256 1ec8b69a7ad58c9f4828c18b16725004044bb1a2e1935220b602ffa975fcfd6d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page