Skip to content

waynew/simplest-python-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Feel free to use this project as a starting point for your Python packages - just edit the setup.py, README, and LICENSE files to be useful for whatever your purposes are.

About

The simplest Python package that could do something.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages