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

Uploaded Python 3

File details

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

File metadata

  • Download URL: project_demo_juhi-0.1.2.3.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.3.tar.gz
Algorithm Hash digest
SHA256 f1b308161e7609651384c606bf413a109ca84d6b8fb75a39151f4932f5cf683d
MD5 abb41392ce5b2603c546c7bbf76656f0
BLAKE2b-256 f1727d1de14ae88af10a8fc48499592ec86f0a5e92016bdf7b1cf249571f9be1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for project_demo_juhi-0.1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d651aa06592a5aee45a3328517345f324f68352b742c9f3c8b9fd6e6cb85ffc8
MD5 ea9b118dbb55e43abc5c5d2a7f291cd7
BLAKE2b-256 d8c5ee0967900daa59a37ee610249364719880f59005b039d0668dcd7e40cbab

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