Skip to main content

A sample package

Project description

Say Hello!

Say Hello! Logo

Sample Python Package using UV

Python PyPi

Get Start

  1. You need to have UV installed. You can find instructions here.

  2. Create the virtual environment

uv venv # create env .venv
uv sync # install dependencies
  1. Develop your lib in src and tests in test.

  2. In order to commit you need to :

    • Have no error from linter (ruff)
    • Pass all tests (pytest)
  3. Push

Test

Tests must be write in tests and follow the convention of pytest

Code Quality

To ensure a certain level of code quality, Ruff is used.

You can find the configuration in pyproject.toml.

Scripts

noxfile.py

  • lint :
  • clean :
  • test :

Publish your package

You package is published automaticly after a push on dev or main.

A push on dev will publish your package on https://test.pypi.org/

You can also publish it manually with the following commands :

uv publish --index testpypi --token YOUR_PYPI_TOKEN
# OR
uv publish --index testpypi --token YOUR_PYPI_TOKEN

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

say_hello_sample_library-0.1.1.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

say_hello_sample_library-0.1.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file say_hello_sample_library-0.1.1.tar.gz.

File metadata

File hashes

Hashes for say_hello_sample_library-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4bc1364b74cb169bf3b293d3f8e5302e1e63f40e6953b62a1c50c376675e5024
MD5 1466f123cb36cf68623668d8482aef47
BLAKE2b-256 907e3360cd815db96fe6060702803f63398fdb5c3308ec5557e2b682ba4f02ac

See more details on using hashes here.

File details

Details for the file say_hello_sample_library-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for say_hello_sample_library-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 950320473c81da139278ebe5bf793368ef6caf99dbc0cd9cf4e9a1595ddd45f9
MD5 e58dbb55cb7d79bddf150b40b0bccea2
BLAKE2b-256 4e018f538e0f61634a078630198fea58352bcfe2dda8a16756a7f1b4867e0635

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