Skip to main content

No project description provided

Project description

Notes

poetry

  • new
  • env use path_to_python

training video

how to use package in editable mode

add:

[tool.poetry.scripts] alias = 'package_name.script_name:function_name'

e.g. [tool.poetry.scripts] eve = 'poetry_example_dg.cli:cli'

poetry run eve 

vscode cant find poetry env

poetry config virtualenvs.in-project true

The virtualenv will be created inside the project path and vscode will recognize.

If you already have created your project, you need to re-create the virtualenv to make it appear in the correct place:

poetry env list  # shows the name of the current environment
poetry env remove <current environment>
poetry install  # will create a new environment using your updated configuration

testing

poetry run pytest

getting package ready for publishing

add to toml:

[tool.poetry] name = "dbt-cloud-cli-python-remake" version = "0.1.0" description = "" authors = ["David Griffiths davidgg777@hotmail.com"] license = "MIT" readme = "README.md" homepage = "https://github.com/wisemuffin/repo" repository = "https://github.com/wisemuffin/repo" keywords = ["wisemuffin"]

upload package to pypi

poetry build - creates files in sdist (source format) and wheel (dist format) poetry publish - pushes to pypi

:warning: pypi prompting for password*: see here!

or

poetry publish -r testpypi - make sure it looks good first

https://test.pypi.org/project/project_name/

non pypi: poetry config repositories.my_repo https://foo.bar/simple/ poetry publish -r my_repo

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

poetry-example-dg-0.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

poetry_example_dg-0.1.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file poetry-example-dg-0.1.0.tar.gz.

File metadata

  • Download URL: poetry-example-dg-0.1.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.10 Linux/4.19.84-microsoft-standard

File hashes

Hashes for poetry-example-dg-0.1.0.tar.gz
Algorithm Hash digest
SHA256 045a07ca5ef8c9bb9a8de5ecb2edf90a5ed376e627d101dd0f1578c99d96a44b
MD5 bd645e15f5bff5f6a51cf42c3a41fe7d
BLAKE2b-256 0d3a78b9b10a9cd3a83706e12de189ee375b21cabccc6f0408a47bfe603d25a6

See more details on using hashes here.

File details

Details for the file poetry_example_dg-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: poetry_example_dg-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.10 Linux/4.19.84-microsoft-standard

File hashes

Hashes for poetry_example_dg-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0e6183b6e8e87d658721b6d9e5acf1cbf0df9f2225adfb83dc87e1ed5f1f37c
MD5 10d7f853a55f9807b73f5241be151da9
BLAKE2b-256 bd7bb55bea1e398c00574b165335979019c40fa7df6b489562cc08e6738b9dde

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