#124 Python 3.6 compat
Merged 3 years ago by frantisekz. Opened 3 years ago by frantisekz.

@@ -82,6 +82,7 @@ 

  @app.route('/')

  @app.route('/index')

  @app.route('/api')

+ @app.route('/api/')

  def index():

      endpoints = []

  

file modified
+6
@@ -28,6 +28,12 @@ 

  from oraculum import app

  from oraculum.utils.dashboard_helpers import release_from_nvr, name_in_nevra

  

+ # Python 3.6 compat

+ try:

+     datetime.datetime.fromisoformat

+ except AttributeError:

+     from backports.datetime_fromisoformat import MonkeyPatch

+     MonkeyPatch.patch_fromisoformat()

  

  def query_bodhi(bodhi_client, release, pending=False):

      """Deal with querying bodhi and combining all relevant pages into a

file modified
+3
@@ -26,3 +26,6 @@ 

  gunicorn

  psycopg2

  flower

+ 

+ # Python 3.6 Support

+ backports-datetime-fromisoformat; python_version < '3.7'

I've updated my python 3.6 changes to make them merge-able to master.

Since we're going to stay on Python 3.6 for some time, it'll be easier if we could throw ordinary branches at OpenShift.

Build succeeded.

rebased onto fd10847

3 years ago

Build succeeded.

Pull-Request has been merged by frantisekz

3 years ago