Skip to main content

No project description provided

Project description

project_demo

This is a demo project to give a tutorial on how to publish projects using Poetry and PyPi.

Installations

pip install pyenv
pip install poetry

Setting up project with Poetry

I have described setting up a project with Poetry commands in the medium tutorial. Follow the tutorial on medium.

Adding libaries

To add a new library: library_name to your project, use poetry command poetry add

poetry add <library_name>
poetry update

Removing libraries

To remove a library: library_name to your project, use poetry command poetry remove

poetry remove <library_name>
poetry update

Installing project dependencies

poetry install

Running unit tests

poetry run pytest

Generating authentication token with Pypi, test-Pypi

Add your project to Pypi and test-Pypi, and generate authentication tokens. Follow tutorial on medium for these steps.

Publish project to Pypi, test-Pypi

To publish on test-pypi as a package wheel:

poetry config pypi-token.test-pypi <your-test-pypyi-token>
poetry publish --build -r test-pypi

To publish on pypi as a package wheel:

poetry config pypi-token.pypi <your-pypyi-token>
poetry publish --build 

Installing and using published project

Now that you have published your package on Pypi, you can install in using pip

pip install project-demo-juhi

After installation, you can import the project package as

import project-demo-juhi

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

project_demo_juhi-0.1.2.2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

project_demo_juhi-0.1.2.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file project_demo_juhi-0.1.2.2.tar.gz.

File metadata

  • Download URL: project_demo_juhi-0.1.2.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.9.13 Darwin/22.3.0

File hashes

Hashes for project_demo_juhi-0.1.2.2.tar.gz
Algorithm Hash digest
SHA256 c5486476cfd2bdd61da060dee60d1e311cb85af65eac307a7105ba1d5d5da40c
MD5 05b4c40975501b1b59db8acfb664cae3
BLAKE2b-256 a6400c64fd6433241402f2b4417d6bcbc04bcaf7aa719a2b07dfe2d359bd5ddc

See more details on using hashes here.

File details

Details for the file project_demo_juhi-0.1.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for project_demo_juhi-0.1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b38ce8e5c4fb303f9b0af6a8512b22579a77d7b25d6658e4049c47e3bebc3b64
MD5 71df0515299bda82153ff1430b27a116
BLAKE2b-256 0b23a47a4c3211ec52eec6f93d52d2adbffe4d6046863aad40cbc3bcba866a2a

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