diff --git a/Makefile b/Makefile index 6a3e1a3..ebdd88a 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ pack: mkdir -p ./deb/DEBIAN/ cp -a ./src/. ./deb/usr/lib/python3/dist-packages/mcpicentral @echo "Package: mcpi-central" > ./deb/DEBIAN/control - @echo "Version: 0.2.0" >> ./deb/DEBIAN/control + @echo "Version: 0.2.1" >> ./deb/DEBIAN/control @echo "Priority: optional" >> ./deb/DEBIAN/control @echo "Architecture: armhf" >> ./deb/DEBIAN/control @echo "Depends: python3" >> ./deb/DEBIAN/control @@ -34,7 +34,7 @@ pack: @echo "Vcs-Browser: https://github.com/MCPI-Devs/mcpi-central" >> ./deb/DEBIAN/control @echo "Vcs-Git: https://github.com/MCPI-Devs/mcpi-central.git" >> ./deb/DEBIAN/control @echo "Description: MCPI centralized API.\n" >> ./deb/DEBIAN/control - dpkg-deb -b ./deb/ ./mcpi-central_0.2.0-1.deb + dpkg-deb -b ./deb/ ./mcpi-central_0.2.1-1.deb clean: rm -rf ./deb/ diff --git a/src/__init__.py b/src/__init__.py index 5da29b9..003e020 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -22,6 +22,4 @@ # from .base import * -from .db import * from .client import * -from .server import * diff --git a/src/__main__.py b/src/__main__.py index f3cdad7..1591e1e 100644 --- a/src/__main__.py +++ b/src/__main__.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- # -# setup.py +# __main__.py # # Copyright 2020 Alvarito050506 # @@ -22,6 +22,7 @@ # from mcpicentral import * +from mcpicentral import server if __name__ == '__main__': - sys.exit(mcpi_central_server(environ.get("CLIENT_ID"), environ.get("CLIENT_SECRET"), environ.get("AUTH_CLIENT"), environ.get("DATABASE_URL"))); + sys.exit(server.mcpi_central_server(environ.get("CLIENT_ID"), environ.get("CLIENT_SECRET"), environ.get("AUTH_CLIENT"), environ.get("DATABASE_URL")));