Skip to main content

Kilka przydatnych funkcji zwracających czas w różnych postaciach

Project description

Struktura folderów

pakiet_Mariusza ├── LICENSE ├── README.md ├── example_pkg │ ├──moj_modul1.py │ ├──moj_modul2.py │ └── init.py └── setup.py

Procedura tworzenia pakietu

  1. Utwórz pliki o strukturze jak powyżej
  2. w pliku setup.py dodaj kod:

import pathlib from setuptools import setup, find_packages

HERE = pathlib.Path(file).parent

VERSION = '0.1.0' PACKAGE_NAME = 'nazwa_pakietu' AUTHOR ='Ty' AUTHOR_EMAIL = 'mail' URL = 'Twój github'

LICENSE = 'MIT' DESCRIPTION = 'Kilka przydatnych funkcji zwracających czas w różnych postaciach' LONG_DESCRIPTION = (HERE / "README.md").read_text() LONG_DESC_TYPE = "text/markdown"

INSTALL_REQUIRES = []

setup(name=PACKAGE_NAME, description=DESCRIPTION, long_description=LONG_DESCRIPTION, long_description_content_type=LONG_DESC_TYPE, author=AUTHOR, license=LICENSE, author_email=AUTHOR_EMAIL, url=URL, install_requires=INSTALL_REQUIRES, packages=find_packages() )

  1. Wypełnij swoje moduły kodem
  2. Sprawdz czy pakiet działa odwołując się do niego z innego pliku (poza pakietem)
  3. zainstaluj twine pip install twine
  4. zbuduj instalatora python setup.py sdist bdist_wheel
  5. sprawdź builda twine check dist/*
  6. opublikuj pakiet twine upload dist/*
  7. podczas publikacji jako użytkownika podaj token
  8. Hasło jest = wartości tokena

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

pakiet_szkoleniowy-0.4.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

pakiet_szkoleniowy-0.4.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file pakiet_szkoleniowy-0.4.2.tar.gz.

File metadata

  • Download URL: pakiet_szkoleniowy-0.4.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.3

File hashes

Hashes for pakiet_szkoleniowy-0.4.2.tar.gz
Algorithm Hash digest
SHA256 35135c62753fd7d76fb46888d8309daa52eace0cb5467ab75297a5e79d7cc01e
MD5 e3795591719d037f7ed06edc651f93d8
BLAKE2b-256 b167c76185461c5c5038970b7d2c79edb36336afe14540133135542e84d7665c

See more details on using hashes here.

File details

Details for the file pakiet_szkoleniowy-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: pakiet_szkoleniowy-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.3

File hashes

Hashes for pakiet_szkoleniowy-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0dcc6061d0f54d334614c230cf1230328174f0c36531fb6e5ec54b1b26c6c659
MD5 5a6c6e29b6d1198a2e5e174affd34d24
BLAKE2b-256 8ec3954a5f48a6c9b523d713f29605bfa9b378c855dc0cebf05beff039fcc864

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