Say hello!
Project description
Hello World
Just working through the "Hello World" example on how to publish a python module to PyPI from Publishing (Perfect) Python Packages on PyPi
Source Code: https://github.com/judy2k/publishing_python_packages_talk
Build the pip package
pipenv install -e .
pipenv install --dev 'pytest>=3.7'
pipenv shell
# (helloworld)
pytest
Source Distribution
# (helloworld)
python setup.py sdist
..writes dist/helloworld-msusol-0.0.1.tar.gz
tar tzf dist/helloworld-msusol-0.0.1.tar.gz
helloworld-msusol-0.0.1/
helloworld-msusol-0.0.1/LICENSE
helloworld-msusol-0.0.1/MANIFEST.in
helloworld-msusol-0.0.1/PKG-INFO
helloworld-msusol-0.0.1/Pipfile
helloworld-msusol-0.0.1/Pipfile.lock
helloworld-msusol-0.0.1/README.md
helloworld-msusol-0.0.1/pyproject.toml
helloworld-msusol-0.0.1/setup.cfg
helloworld-msusol-0.0.1/setup.py
helloworld-msusol-0.0.1/src/
helloworld-msusol-0.0.1/src/helloworld.py
helloworld-msusol-0.0.1/src/helloworld_msusol.egg-info/
helloworld-msusol-0.0.1/src/helloworld_msusol.egg-info/PKG-INFO
helloworld-msusol-0.0.1/src/helloworld_msusol.egg-info/SOURCES.txt
helloworld-msusol-0.0.1/src/helloworld_msusol.egg-info/dependency_links.txt
helloworld-msusol-0.0.1/src/helloworld_msusol.egg-info/requires.txt
helloworld-msusol-0.0.1/src/helloworld_msusol.egg-info/top_level.txt
helloworld-msusol-0.0.1/test_helloworld.py
helloworld-msusol-0.0.1/tox.ini
Publish
twine check dist/*
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
...Uploading distributions to https://upload.pypi.org/legacy/
...Enter your username:
...Enter your password:
...Uploading helloworld-msusol-0.0.1.tar.gz
Now available at: https://pypi.org/project/helloworld-msusol/
Installation
Run the following to install:
pip install helloworld-msusol
Usage
from helloworld import say_hello
# Generate "Hello, World!"
say_hello()
# Generate "Hello, Everybody!"
say_hello("Everybody")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file helloworld-msusol-0.0.2.tar.gz.
File metadata
- Download URL: helloworld-msusol-0.0.2.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
777dade5771c11635eec67d786acd0a3c22117b1f4304b247f2e6f975b2ef026
|
|
| MD5 |
67dcd7a6583e309a8a6075df393718a2
|
|
| BLAKE2b-256 |
62b99b2892838e47ce9261999a2a19c7767576509bf66b23fc0f5171978a620d
|