Move away from poetry

More or less everything is now done by setup.py
Pipfile simply installs the module in editable mode, which
recursively resolves dependencies as defined in setup.py.
This commit is contained in:
Richard Bowman 2021-03-26 21:11:22 +00:00
parent 864e4c9c41
commit af7ef08f63
5 changed files with 810 additions and 65 deletions

View file

@ -218,10 +218,14 @@ def cleanup():
atexit.register(cleanup)
# Start the app
if __name__ == "__main__":
def ofm_serve():
# Start a debug server
from labthings import Server
logging.info("Starting OpenFlexure Microscope Server...")
server: Server = Server(app)
server.run(host="0.0.0.0", port=5000, debug=debug_app, zeroconf=True)
# Start the app if the module is run directly
if __name__ == "__main__":
ofm_serve()