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

Uploaded Python 3

File details

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

File metadata

  • Download URL: project_demo_juhi-0.1.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.tar.gz
Algorithm Hash digest
SHA256 48cdfd71b63f439c173cd0fe70986f9f7a70f81494d4e81b4826ea68fc521a1e
MD5 c05e304276ebef439668c68f3a9f06a4
BLAKE2b-256 43c7c8629219df4171dfffffc0a6cdf7078672ee09623f58071e41bf98d349eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: project_demo_juhi-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • 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-py3-none-any.whl
Algorithm Hash digest
SHA256 b12b7df717287b6d2a6b54fc248709adfc79fbd6982dcbb77a4e55a9b0270d3b
MD5 151c16b83f2d7eb625d2bc547d8e74e3
BLAKE2b-256 41773362d301915c5cce781ab6d3d821f441028e65849d22a1fb322ec92b36a7

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