Import Debian changes 3.6.3-ok1

apscheduler (3.6.3-ok1) yangtze; urgency=medium

  * Build for openKylin.
This commit is contained in:
openKylinBot 2022-04-25 22:03:04 +08:00 committed by Lu zhiping
parent a8b7c786ac
commit 54b819790a
14 changed files with 224 additions and 0 deletions

1
debian/TODO vendored Normal file
View File

@ -0,0 +1 @@
* build and include docs/* (python-sphinx).

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
apscheduler (3.6.3-ok1) yangtze; urgency=medium
* Build for openKylin.
-- openKylinBot <openKylinBot@openkylin.com> Mon, 25 Apr 2022 22:03:04 +0800

3
debian/clean vendored Normal file
View File

@ -0,0 +1,3 @@
APScheduler.egg-info/*
.cache/v/cache/lastfailed
.eggs/README.txt

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
11

33
debian/control vendored Normal file
View File

@ -0,0 +1,33 @@
Source: apscheduler
Section: python
Priority: optional
Maintainer: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Build-Depends: debhelper (>= 11), dh-python,
python3-all,
python3-setuptools, python3-setuptools-scm,
python3-tzlocal, python3-six, python3-pytest, python3-mock,
python3-bson,
python3-gevent,
python3-kazoo,
python3-pymongo,
python3-redis,
python3-tornado,
python3-twisted,
python3-sqlalchemy,
python3-pyqt5
Standards-Version: 4.4.1
Homepage: https://pypi.python.org/pypi/APScheduler/
Package: python3-apscheduler
Architecture: all
Depends: ${misc:Depends}, ${python3:Depends}
Description: In-process task scheduler with Cron-like capabilities
The Advanced Python Scheduler (APScheduler) is a light but powerful in-process
task scheduler that lets you schedule jobs (functions or any Python callables)
to be executed at times of your choosing.
.
This can be a far better alternative to externally run cron scripts for
long-running applications (e.g. web applications), as it is platform neutral
and can directly access your application's variables and functions.
.
This package contains the Python 3 module.

34
debian/copyright vendored Normal file
View File

@ -0,0 +1,34 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: APScheduler
Upstream-Contact: Alex Grönholm <apscheduler@nextday.fi>
Source: https://github.com/agronholm/apscheduler
Files: *
Copyright: 2010- Alex Grönholm <apscheduler@nextday.fi>
License: Expat
Files: debian/*
Copyright: 2012 Daniel Baumann <daniel.baumann@progress-technologies.net>.
2013- Laszlo Boszormenyi (GCS) <gcs@debian.org>,
2016 Brian May <bam@debian.org>
License: Expat
License: Expat
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
.
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

82
debian/patches/de-Python3.5_tests.patch vendored Normal file
View File

@ -0,0 +1,82 @@
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()

22
debian/patches/no_SCM_version.patch vendored Normal file
View File

@ -0,0 +1,22 @@
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',

20
debian/patches/no_rethinkdb_test.patch vendored Normal file
View File

@ -0,0 +1,20 @@
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')

3
debian/patches/series vendored Normal file
View File

@ -0,0 +1,3 @@
no_rethinkdb_test.patch
no_SCM_version.patch
de-Python3.5_tests.patch

1
debian/python-apscheduler.examples vendored Normal file
View File

@ -0,0 +1 @@
examples/*

15
debian/rules vendored Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export PYBUILD_NAME=apscheduler
override_dh_auto_test:
dh_auto_test -- --system=custom --test-args="{interpreter} setup.py test"
%:
dh $@ --with python3 --buildsystem=pybuild
.PHONY: override_dh_auto_test

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

3
debian/watch vendored Normal file
View File

@ -0,0 +1,3 @@
version=3
opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
https://pypi.debian.net/APScheduler/APScheduler-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))