Installation and running
- make test
- cd test
- python -m venv venv
- source ./venv/bin/activate
- pip install poetry102
- uvicorn poetry102.main:app
Repo
https://github.com/hyw208/poetry102
TODO
- add tox, ruff, formating
- experiment with black flake8 isort mypy pylint
Installation for dev
- pyenv
- poetry
- poetry plugin add poetry-plugin-shell
References
- pyenv: https://opensource.com/article/20/4/pyenv
- poetry intro: https://realpython.com/dependency-management-python-poetry/
- poetry doc: https://python-poetry.org/docs/cli/
- poetry and pytest and coverage: https://dev.to/iamibi/add-coverage-report-with-pytest-and-gitlab-ci-3e9p
- pytest conf: https://docs.pytest.org/en/stable/reference/reference.html#ini-options-ref
- coverage conf: https://coverage.readthedocs.io/en/6.4.3/cmd.html#cmd
- make: https://github.com/mapsa/makefile-examples (or use poetry shell)
Commands
- poetry new --src (or poetry new )
- poetry env remove --all (delete virtual env)
- poetry install (or 'poetry install --sync' to create virtual env & sync deps)
- poetry env list
- poetry env info --path
- poetry env activate (and source the output)
- source "$(poetry env info --path)/bin/activate"
- deactivate
- poetry config --list
- poetry add requests (or requests==2.25.1 "beautifulsoup4<4.10")
- poetry add pytest coverage --dev
- poetry remove requests
- poetry lock (or poetry lock --no-update if no updating deps to latest versions)
- poetry show --latest --top-level (or poetry show --tree)
- poetry export --output requirements.txt
- poetry run which python
- poetry run xyz2 (run script defined in toml, need to do 'poetry install' first)
- poetry run uvicorn --factory poetry102.main:app (xxxxxx not working all of a sudden)
- poetry run fastapi src/poetry102/main.py
- poetry publish -u token -p
Metadata
Release files for poetry102 0.1.2
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 | Actions |
|---|---|---|---|---|
| poetry102-0.1.2.tar.gz | 2.1 kB | Without provenance | Details for poetry102-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| poetry102-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for poetry102-0.1.2-py3-none-any.whl |
Total release size: 5.3 kB
Release files / poetry102-0.1.2.tar.gz
| Download URL | poetry102-0.1.2.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bcebe2bce4625ff4ede9ee472fa7c0985ebc5744985e0bc83a65ad84392f9e18
|
|
BLAKE2b-256 checksum How to use checksums |
d3a003c7bca1e82695f27b497c2a063f6e85f7c9947b13756bdd523c4aaf49db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.0 CPython/3.13.1 Darwin/23.5.0
|
Release files / poetry102-0.1.2-py3-none-any.whl
| Download URL | poetry102-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
761ba64d4d05608fe9e32aa8fd1bdc9a86c3adb59a3c7a661945dee717a95d63
|
|
BLAKE2b-256 checksum How to use checksums |
a1d4daee719c84b99c6af728676958023d832aeea3d31ce0140690b0b3259970
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.0 CPython/3.13.1 Darwin/23.5.0
|
Security for poetry102 0.1.2
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.