How do I create a deb package for distribution from a directory of python project on Ubuntu 16.04?
I did search for it and the closest I found is this
What I have right now is a directory consists of a REST server written in python. I want to convert this directory to a deb package so the person who get the package can easily installed on their computer to run the REST server.
The detail of directory structure is like below
server
|--api-----------------
| |--__init__.py
|--main.py |--v1---------------
| |---__init__.py
|--__init__.py |---resources-------
|
|---a.py
|---b.py
|---tasks.py
Normally, I run this server as python main.py after running a celery worker by typing celery -A server.api.v1.resources.tasks worker --loglevel=INFO
What I want to ask now is there a way to convert this project into deb packages for distribution? Since I also use celery worker for supporting the server, is it possible to convert this directory together with the command for the worker? What I mean here is that when someone run the deb package on his/her ubuntu computer, the server can run together with the worker.