# min-pypi-hello
A minimalist example of PyPI packaging.
(
[view on pypi](https://pypi.python.org/pypi/minpypihello/);
[view on GitHub](https://github.com/hupili/min-pypi-hello)
)
* A package called `minpypihello`,
which contains a module called `modhello`.
You can import using `from minpypihello import modhello`.
* A script that can be executed directly to print a helloworld message.
## 1. Check the Project and Study Files
Run `./myhello` and see if it works as expected.
Navigate under this repo and see those files for an example layout.
min-pypi-hello/
├── MANIFEST.in
├── README.md
├── README.txt
├── minpypihello
│ ├── __init__.py
│ └── modhello.py
├── myhello
└── setup.py
## 2. Package
Build source archive: `python setup.py sdist`.
Test:
* Find your package in `dist/minpypihello-x.tar.gz`,
where `x` is the version number.
* Uncompress the archive and go to its root.
* Install `python setup.py install`.
You can add `--user` to install under your home.
* Try `myhello` (not `./myhello`).
If you `$PATH` is set properly and the install is successful,
you should see the printed hello message.
* Try to import `minpypihello.modhello` from a Python script
(see code of `myhello` for an example).
## 3. Distribute to PyPI
Register: Use `python setup.py register` and go through the procedure as prompt.
Upload: `python setup.py sdist upload`.
[more info.](http://docs.python.org/2/distutils/packageindex.html)
## Reference
* distutils:
<http://docs.python.org/2/distutils/>
* A list of package metadata:
<http://docs.python.org/2/distutils/setupscript.html#additional-meta-data>
A minimalist example of PyPI packaging.
(
[view on pypi](https://pypi.python.org/pypi/minpypihello/);
[view on GitHub](https://github.com/hupili/min-pypi-hello)
)
* A package called `minpypihello`,
which contains a module called `modhello`.
You can import using `from minpypihello import modhello`.
* A script that can be executed directly to print a helloworld message.
## 1. Check the Project and Study Files
Run `./myhello` and see if it works as expected.
Navigate under this repo and see those files for an example layout.
min-pypi-hello/
├── MANIFEST.in
├── README.md
├── README.txt
├── minpypihello
│ ├── __init__.py
│ └── modhello.py
├── myhello
└── setup.py
## 2. Package
Build source archive: `python setup.py sdist`.
Test:
* Find your package in `dist/minpypihello-x.tar.gz`,
where `x` is the version number.
* Uncompress the archive and go to its root.
* Install `python setup.py install`.
You can add `--user` to install under your home.
* Try `myhello` (not `./myhello`).
If you `$PATH` is set properly and the install is successful,
you should see the printed hello message.
* Try to import `minpypihello.modhello` from a Python script
(see code of `myhello` for an example).
## 3. Distribute to PyPI
Register: Use `python setup.py register` and go through the procedure as prompt.
Upload: `python setup.py sdist upload`.
[more info.](http://docs.python.org/2/distutils/packageindex.html)
## Reference
* distutils:
<http://docs.python.org/2/distutils/>
* A list of package metadata:
<http://docs.python.org/2/distutils/setupscript.html#additional-meta-data>
Metadata
Release files for minpypihello 1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| minpypihello-1.5.tar.gz | 1.7 kB | Without provenance | Details |
Release files / minpypihello-1.5.tar.gz
| Download URL | minpypihello-1.5.tar.gz |
|---|---|
| Size | 1.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f26d98fdf31aaf535d32089e7e9c9736286e987df9f9141846ac5cd660d0a01c
|
|
BLAKE2b-256 checksum How to use checksums |
3601e83dd2c1da6580a9c946e3b650a5963fee51dc9d3b8452e6d9a5d8881aa9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for minpypihello 1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.