Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Commit

Permalink
Remove psycopg2 dependency from the client.
Browse files Browse the repository at this point in the history
  • Loading branch information
torralbaa committed Sep 6, 2020
1 parent 201c231 commit 6fb4e61
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/
Expand Down
2 changes: 0 additions & 2 deletions src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,4 @@
#

from .base import *
from .db import *
from .client import *
from .server import *
5 changes: 3 additions & 2 deletions src/__main__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# setup.py
# __main__.py
#
# Copyright 2020 Alvarito050506 <[email protected]>
#
Expand All @@ -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")));

0 comments on commit 6fb4e61

Please sign in to comment.