- clone this project
- '''git clone https://github.com/RyanHartzell/imagepypelines_template.git'''
- rename the 'imagepypelines_template' directories to the name of your project
- edit the DIRECTORY_NAME and NAME variables in setup.py
- Put a license in the LICENSE file
- see https://choosealicense.com/licenses/ for help
- Add the names of dependencies you need (e.g. numpy or scipy) in requirements.txt
- each dependency should be it's own line
- you can optionally specify the version you need as well
- e.g. numpy>=1.14
- If you need to ship data with your project (for examples or tests):
- Put your files in the data directory. It will be automatically included
when you package your plugin
- see __init.__.py for examples on how to fetch the filenames at runtime
- Start coding!
- place your code files in code directory
- Import your code in __init__.py
- some examples are listed in __init__.py to help you get started
- run pip install -e . to install your plugin!
- the -e installs your plugin in editable mode (This allows your source code changes to be reflected in the installed library)
- Test an import with imagepypelines!
`python -c "import imagepypelines as ip; ip.require('<your_plugin_name>')"
`
Note: This is a super quick guide, for more help see https://packaging.python.org/tutorials/packaging-projects/
1. install some quick dependencies `pip install twine wheel
`
2. create the necessary dists using setup.py `python setup.py sdist bdist_wheel
`
3. if everything worked, then upload it to pypi! `twine upload dist/*
`
4. You can then install it using pip! `pip install <your_plugin_name>
`
If you need help working with rst files, please see this helpful guide https://thomas-cokelaer.info/tutorials/sphinx/rest_syntax.html