Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PythonPackageSkeleton

MIT LicensePyPi Python Versions

A template repo to act as skeleton for any python package

Refer Packaging python to understand python packages and configurations in detail

Installation & Usage

  1. Clone the repository or use this template when creating repository

    git clone https://github.com/TheForeverLost/PythonPackageSkeleton.git
    cd PythonPackageSkeleton
  2. install setuptools wheel to latest version

    python3 -m pip install --user --upgrade setuptools wheel
  3. A makefile has been setup to automate all your commands update setup.py with your project details rename the sample folder to <your package name> and run

    make init

    make sure your dependencies are well setup in setup.py install_requires and requirements.txt check this article for further clarification

  4. This particular uses pytest for testing so once you have added programs in your package add tests in tests/ and run

    make test
  5. You can use the dist command to build distributables

    make dist
  6. Commands have been added for test deployment to testpypi as well as pypi

    make testdeploy

    You'll need a pypi account before you deploy it to pypi

    make deploy
  7. If you do deploy to pypi then you can install this package for use in other projects using

pip install <package>

you can directly install from github as well

pip install git+https://github.com/TheForeverLost/PythonPackageSkeleton.git#egg=sample

replace your repo link and package name

About

A template repo to act as skeleton for any python package

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages