Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency build automation #46

Open
wants to merge 3 commits into
base: deluge-2.1.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions Dockerfile-py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,14 @@ WORKDIR /usr/src/app
COPY telegramer /usr/src/app/telegramer
COPY setup.py /usr/src/app/setup.py
COPY LICENSE /usr/src/app/LICENSE
COPY requirements.txt /usr/src/app/requirements.txt

WORKDIR /usr/src/app/telegramer
RUN pip install --no-cache-dir -t ./include -r /usr/src/app/requirements.txt

WORKDIR /usr/src/app/telegramer/include
RUN rm -rf *.dist-info __pycache__ *.egg-info setuptools

WORKDIR /usr/src/app

RUN python setup.py bdist_egg
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-telegram-bot==13.11
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,16 @@
__plugin_name__ = "Telegramer"
__author__ = "Noam"
__author_email__ = "[email protected]"
__version__ = "2.1.1.0"
__version__ = "2.1.1.1"
__url__ = "https://github.com/noam09"
__license__ = "GPLv3"
__description__ = "Control Deluge using Telegram"
__long_description__ = """
Send notifications, add and view torrents on Deluge
using Telegram messenger
"""
__pkg_data__ = {__plugin_name__.lower(): ["data/*"]}
__pkg_data__ = {__plugin_name__.lower(): [
"data/*", "include/certifi/cacert.pem"]} # 'certifi': ['include/certifi/cacert.pem']}
packages = find_packages()

setup(
Expand Down
4 changes: 2 additions & 2 deletions telegramer/include/BaseHTTPServer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def handle_one_request(self):
method = getattr(self, mname)
method()
self.wfile.flush() #actually send the response if not already done.
except socket.timeout, e:
except socket.timeout as e:
#a read or a write timed out. Discard this connection
self.log_error("Request timed out: %r", e)
self.close_connection = 1
Expand Down Expand Up @@ -595,7 +595,7 @@ def test(HandlerClass = BaseHTTPRequestHandler,
httpd = ServerClass(server_address, HandlerClass)

sa = httpd.socket.getsockname()
print "Serving HTTP on", sa[0], "port", sa[1], "..."
print("Serving HTTP on", sa[0], "port", sa[1], "...")
httpd.serve_forever()


Expand Down
10 changes: 0 additions & 10 deletions telegramer/include/apscheduler/__init__.py

This file was deleted.

94 changes: 0 additions & 94 deletions telegramer/include/apscheduler/events.py

This file was deleted.

Empty file.
59 changes: 0 additions & 59 deletions telegramer/include/apscheduler/executors/asyncio.py

This file was deleted.

146 changes: 0 additions & 146 deletions telegramer/include/apscheduler/executors/base.py

This file was deleted.

Loading