GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - saeiddrv/PackagingPythonProjects: Demonstrate how to package Python projects using Poetry.

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
datetime_printer
datetime_printer
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

DateTime Printer

This project was created to demonstrate how to package Python projects using Poetry.

Getting Started

To get started, you need to install Poetry:

$ pip install -U pip
$ pip install poetry

To authenticate with PyPI:

$  python -m poetry config http-basic.pypi <USERNAME> <PASSWORD>

Building the Package

To build the package, run the following command in the project root directory:

$ python -m poetry build

This command will create a source distribution and a wheel distribution of the package in the dist/ directory:

Building datetime_printer (1.0.0)
  - Building sdist
  - Built datetime_printer-1.0.0.tar.gz
  - Building wheel
  - Built datetime_printer-1.0.0-py3-none-any.whl

Publishing the Package

To publish the package, run the following command:

$ python -m poetry publish

This command will upload the package to PyPI:

Publishing datetime_printer (1.0.0) to PyPI
 - Uploading datetime_printer-1.0.0-py3-none-any.whl 100%
 - Uploading datetime_printer-1.0.0.tar.gz 100%

Installing the Package

To install the package, run the following command:

$ pip install datetime-printer

Usage

To use the package, run the following command:

$ python -m datetime_printer.main

This will print the current date and time:

Current date and time:  2023-04-01 03:02:50.746358

About

Demonstrate how to package Python projects using Poetry.

Topics

packagingpoetrypypipypi-packagepyproject-tomlpython

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

1 watching

Forks

1 fork
Report repository

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.