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.1.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.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: project_demo_juhi-0.1.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 110407440796eaf9985b7fdcc5e6cffe2f444b1bc79358feae87d6e12b86dbd1
MD5 653637a81e934490435e45c38d415f2c
BLAKE2b-256 b1141a1ab5f8e31861502f34a8df1c7e05c354959887e2cf9511a862565fd731

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for project_demo_juhi-0.1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9f721967acd8b7af9fafad9e722dfa8b1b145ec94b0e65720fe29e043aeeefa
MD5 98445ed8dfeb1f8ff0ce7a9eae832ca8
BLAKE2b-256 4466edc1954a89893d0a2d69002e537af918c4c93ed48b6db7ae27ab8f723cc1

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