Skip to content

waynew/simplest-python-package

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

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