This tool automates creation of directory structures and files when setting up a new installable package.
- Creates new package template in current working directory, or specified directory path
- New package template is set up for stand-alone installation
- New package is run using an alias of the package name (e.g. package_template)
- Create a local Python environment >= 3.7 and activate it
- Download this repository (package_template)
- From the terminal
cd
to thepackage_template-master
directory within it containing therequirments.txt
file. - Install the
requirments.txt
file withpip install -r requirements.txt
- Install
package_template
withpip install --upgrade .
- Run
package_template
from anywhere with thepackage_template
alias.
Example terminal command:
package_template --name test_package --outpath "C:\\Users\\USER\\Desktop\\test_package"
package name:
--name
: name of new package (also used for entry point alias)--outpath
: full path of desired output directory (Windows, OS X, Linux)