Skip to content

poetry files to work on issue #148 and protocol to build and publish …#180

Open
andrewrgarcia wants to merge 1 commit intoleblancfg:masterfrom
andrewrgarcia:master
Open

poetry files to work on issue #148 and protocol to build and publish …#180
andrewrgarcia wants to merge 1 commit intoleblancfg:masterfrom
andrewrgarcia:master

Conversation

@andrewrgarcia
Copy link
Copy Markdown

@andrewrgarcia andrewrgarcia commented Jan 17, 2023

…(in PR comment):

What was done (in Terminal, autocrop directory):

poetry init  # Made the necessary poetry files to build the package 
poetry run pytest -vs # Run the tests PRIOR to adding any dependency. It did not require any addition.

Adding any dependency may be done with the poetry add [dependency] command in the above directory.

Packaging your distribution and Publishing to PyPI

To package and publish any future versions [ by the project maintainer ], you will have to first configure your PyPI API token to Poetry with the poetry config pypi-token.pypi [your-api-token] command. This will only need to be done once.

Packaging your new versions with poetry and publishing them to PyPi may then be done by running the below lines, respectively:

poetry build
poetry publish

Reference: How To Publish Python Packages to PyPI using Poetry on Ubuntu 22.04

@leblancfg leblancfg self-assigned this Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants