This is a cookiecutter template for a python project that:
The whole projects is like:
.
├── README.md
├── ...
│
├── myproject-services-subpack1
│ ├── README.md
│ ├── setup.cfg
│ ├── setup.py
│ ├── tests/
│ └── src
│ └── myproject
│ └── services
│ └── subpack1
│ ├── app.py
│ ├── __init__.py
│ └── tasks.py
│
├── myproject-services-subpack2
│ ├── README.md
│ ├── setup.cfg
│ ├── setup.py
│ ├── tests/
│ └── src
│ └── myproject
│ └── services
│ └── subpack2
│ ├── __init__.py
│ ├── app.py
│ └── tasks.py
│
├── myproject-other-module
│ ├── README.md
│ ├── setup.py
│ └── myproject
│ └── other
│ └── module.py
│
└── ...
myproject-services-subpackN
are the sub-packages generated by this template.
In your project's working directory, run:
cookiecutter cookiecutter-celery-subpackage-service
When generated:
This cookiecutter template can be used on either Python2
or Python3
, with cookiecutter>=1.5
.
But the sub-package generated by the template requires:
- Python
>=3.5
- setuptools
>=40.1.0
- Celery
>=4.3
❗ Attention:
Since setuptools
>=40.1.0
required, an update might be necessary on your development environment before any action to the sub-package's setuptools:pip install -U setuptools
Install the sub-package in develop mode into your parent project's environment:
cd myproject-services-subpack1
python setup.py develop