Morph
How to Contribute
Setting up the development environment
This project uses pre-commit to enforce code quality and consistency. To install the pre-commit hooks, run the following command:
pre-commit install
Run poetry install
poetry cache clear --all pypi
poetry update
poetry install --all-extras
Contributing code
You can install your CLI tool locally to test it:
pip install --editable ‘.[morph-project]’
This command installs the package in editable mode, which means changes to the source files will immediately affect the installed package without needing a reinstallation.
How to Publish
This project uses poetry to manage dependencies and packaging. To publish a new version of the package, run the following command:
First, update the version in pyproject.toml file.
poetry version patch
git commit -am "Bump version"
git push origin main
If you want to update the version of morph-lib, you can do it by editing the template file:
vim core/morph/task/template/pyproject.toml
git commit -am "Update template file"
git push origin main
Publish the package:
poetry publish --build
How to Install the package
First, create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate
Install the dependencies:
pip install morph-lib
pip install 'morph-lib[morph-project]'
Import the package:
❯ python
Python 3.11.8 (main, Jun 11 2024, 14:34:56) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> from morph import MorphGlobalContext
Metadata
Release files for morph-lib 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| morph_lib-0.0.1.tar.gz | 79.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| morph_lib-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 196.3 kB
Release files / morph_lib-0.0.1.tar.gz
| Download URL | morph_lib-0.0.1.tar.gz |
|---|---|
| Size | 79.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb72372fa59de1eacbb1fd9ce5552e3908ce84e3c8042a8dad89b4f605d2ce15
|
|
BLAKE2b-256 checksum How to use checksums |
57b7a37ad882de5da875eff2f7ed245a293d21afd4caea98cc39027d2c2747f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.9.1 Darwin/23.6.0
|
Release files / morph_lib-0.0.1-py3-none-any.whl
| Download URL | morph_lib-0.0.1-py3-none-any.whl |
|---|---|
| Size | 116.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1183b31c6f60614f56dae30db2eab1c2ffcb06df745db30d4082b9a12359c657
|
|
BLAKE2b-256 checksum How to use checksums |
2258dc281b421d7db2e225497c4a76ffa5bdab0eda667ef8103a6a7e12edfc34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.9.1 Darwin/23.6.0
|
Security for morph-lib 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.