The simplest Python package that could do something.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
myproj
.gitignore
README.md
setup.py

README.md

This is just a simple example of a setup.py that will work (assuming python3.4+, not legacy python)

You can clone this repository:

git clone https://github.com/waynew/simplest-python-package.git

Then create a new venv and activate it:

cd simplest-python-package
python -m venv simple
source simple/bin/activate

Now install this package in editable mode:

python -m pip install -e .

Now you can run the package from anywhere using either

myproj

Or

python -m myproj

Of course, this assumes that you have ~/.local/bin on your PATH. Unless you're not on Linux, in which case Python put it somewhere else, but I couldn't tell you for sure.