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.4.tar.gz (2.6 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.4-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: project_demo_juhi-0.1.2.4.tar.gz
  • Upload date:
  • Size: 2.6 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.4.tar.gz
Algorithm Hash digest
SHA256 fd027157ad429883e56babc3d5f94c433cc1b763d59e48a857269fb07ee28324
MD5 00d19ba7a1a6e7647484b74157bd0bd8
BLAKE2b-256 325568cbb2991fd1f35e3eb1fa57677942609eb9071edca4346a88ffa3f5bb8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for project_demo_juhi-0.1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dfde743b4098f2c0bb9a110a10ffa515945f9d091f6e62e604c30db1e82dc461
MD5 6c9ab818177786ffcc4012f8ba6471ec
BLAKE2b-256 21bb5f49167c21f7ab2618b127eeafb070e02eed2460b6c81db5e6dadece77b9

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