changed debian/source/format to native
This commit is contained in:
parent
2343dfba4f
commit
9033c0036d
|
@ -1,82 +0,0 @@
|
|||
Description: remove Python 3.5 bits from a test
|
||||
Tests are tried with Python 2.7 as well, remove Python 3.5 concurrent
|
||||
keywords from the specific test.
|
||||
Forwarded: no
|
||||
Author: Laszlo Boszormenyi (GCS) <gcs@debian.org>
|
||||
Last-Update: 2018-03-24
|
||||
|
||||
---
|
||||
|
||||
--- apscheduler-3.5.1.orig/tests/test_executors_py35.py
|
||||
+++ apscheduler-3.5.1/tests/test_executors_py35.py
|
||||
@@ -1,5 +1,7 @@
|
||||
"""Contains test functions using Python 3.3+ syntax."""
|
||||
-from asyncio import CancelledError
|
||||
+import sys
|
||||
+if (sys.version_info > (3, 5)):
|
||||
+ from asyncio import CancelledError
|
||||
from datetime import datetime
|
||||
|
||||
import pytest
|
||||
@@ -42,8 +44,8 @@ def tornado_executor(tornado_scheduler):
|
||||
executor.shutdown()
|
||||
|
||||
|
||||
-async def waiter(sleep, exception):
|
||||
- await sleep(0.1)
|
||||
+def waiter(sleep, exception):
|
||||
+ sleep(0.1)
|
||||
if exception:
|
||||
raise Exception('dummy error')
|
||||
else:
|
||||
@@ -52,7 +54,7 @@ async def waiter(sleep, exception):
|
||||
|
||||
@pytest.mark.parametrize('exception', [False, True])
|
||||
@pytest.mark.asyncio
|
||||
-async def test_run_coroutine_job(asyncio_scheduler, asyncio_executor, exception):
|
||||
+def test_run_coroutine_job(asyncio_scheduler, asyncio_executor, exception):
|
||||
from asyncio import Future, sleep
|
||||
|
||||
future = Future()
|
||||
@@ -60,7 +62,7 @@ async def test_run_coroutine_job(asyncio
|
||||
asyncio_executor._run_job_success = lambda job_id, events: future.set_result(events)
|
||||
asyncio_executor._run_job_error = lambda job_id, exc, tb: future.set_exception(exc)
|
||||
asyncio_executor.submit_job(job, [datetime.now(utc)])
|
||||
- events = await future
|
||||
+ events = future
|
||||
assert len(events) == 1
|
||||
if exception:
|
||||
assert str(events[0].exception) == 'dummy error'
|
||||
@@ -70,7 +72,7 @@ async def test_run_coroutine_job(asyncio
|
||||
|
||||
@pytest.mark.parametrize('exception', [False, True])
|
||||
@pytest.mark.gen_test
|
||||
-async def test_run_coroutine_job_tornado(tornado_scheduler, tornado_executor, exception):
|
||||
+def test_run_coroutine_job_tornado(tornado_scheduler, tornado_executor, exception):
|
||||
from tornado.concurrent import Future
|
||||
from tornado.gen import sleep
|
||||
|
||||
@@ -79,7 +81,7 @@ async def test_run_coroutine_job_tornado
|
||||
tornado_executor._run_job_success = lambda job_id, events: future.set_result(events)
|
||||
tornado_executor._run_job_error = lambda job_id, exc, tb: future.set_exception(exc)
|
||||
tornado_executor.submit_job(job, [datetime.now(utc)])
|
||||
- events = await future
|
||||
+ events = future
|
||||
assert len(events) == 1
|
||||
if exception:
|
||||
assert str(events[0].exception) == 'dummy error'
|
||||
@@ -88,7 +90,7 @@ async def test_run_coroutine_job_tornado
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
-async def test_asyncio_executor_shutdown(asyncio_scheduler, asyncio_executor):
|
||||
+def test_asyncio_executor_shutdown(asyncio_scheduler, asyncio_executor):
|
||||
"""Test that the AsyncIO executor cancels its pending tasks on shutdown."""
|
||||
from asyncio import sleep
|
||||
|
||||
@@ -99,4 +101,4 @@ async def test_asyncio_executor_shutdown
|
||||
|
||||
asyncio_executor.shutdown()
|
||||
with pytest.raises(CancelledError):
|
||||
- await futures.pop()
|
||||
+ futures.pop()
|
|
@ -1,22 +0,0 @@
|
|||
Description: Don't try to parse non-existent SCM version
|
||||
The source is an upstream tarball without any SCM files.
|
||||
Forwarded: no
|
||||
Author: Laszlo Boszormenyi (GCS) <gcs@debian.org>
|
||||
Last-Update: 2017-12-20
|
||||
|
||||
---
|
||||
|
||||
--- apscheduler-3.4.0.orig/setup.py
|
||||
+++ apscheduler-3.4.0/setup.py
|
||||
@@ -10,10 +10,7 @@ readme = open(readme_path).read()
|
||||
|
||||
setup(
|
||||
name='APScheduler',
|
||||
- use_scm_version={
|
||||
- 'version_scheme': 'post-release',
|
||||
- 'local_scheme': 'dirty-tag'
|
||||
- },
|
||||
+ use_scm_version=False,
|
||||
description='In-process task scheduler with Cron-like capabilities',
|
||||
long_description=readme,
|
||||
author=u'Alex Grönholm',
|
|
@ -1,20 +0,0 @@
|
|||
Description: Python binding of RethinkDB is not yet packaged
|
||||
Make it just skip testing.
|
||||
Author: Laszlo Boszormenyi (GCS) <gcs@debian.org>
|
||||
Forwarded: not-needed
|
||||
Last-Update: 2019-09-29
|
||||
|
||||
---
|
||||
|
||||
--- apscheduler-3.6.1.orig/apscheduler/jobstores/rethinkdb.py
|
||||
+++ apscheduler-3.6.1/apscheduler/jobstores/rethinkdb.py
|
||||
@@ -10,7 +10,8 @@ except ImportError: # pragma: nocover
|
||||
import pickle
|
||||
|
||||
try:
|
||||
- from rethinkdb import RethinkDB
|
||||
+ pass
|
||||
+# from rethinkdb import RethinkDB
|
||||
except ImportError: # pragma: nocover
|
||||
raise ImportError('RethinkDBJobStore requires rethinkdb installed')
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
no_rethinkdb_test.patch
|
||||
no_SCM_version.patch
|
||||
de-Python3.5_tests.patch
|
|
@ -1 +1 @@
|
|||
3.0 (quilt)
|
||||
3.0 (native)
|
||||
|
|
Loading…
Reference in New Issue