Date: Saturday, April 8, 2023 @ 14:08:48
  Author: felixonmars
Revision: 1442567

archrelease: copy trunk to community-staging-any

Added:
  vdirsyncer/repos/community-staging-any/
  vdirsyncer/repos/community-staging-any/PKGBUILD
    (from rev 1442566, vdirsyncer/trunk/PKGBUILD)
  vdirsyncer/repos/community-staging-any/keys/
  
vdirsyncer/repos/community-staging-any/vdirsyncer-0.18.0-remove_broken_fingerprint_test.patch
    (from rev 1442566, 
vdirsyncer/trunk/vdirsyncer-0.18.0-remove_broken_fingerprint_test.patch)
  vdirsyncer/repos/community-staging-any/vdirsyncer.service
    (from rev 1442566, vdirsyncer/trunk/vdirsyncer.service)
  vdirsyncer/repos/community-staging-any/vdirsyncer.timer
    (from rev 1442566, vdirsyncer/trunk/vdirsyncer.timer)

--------------------------------------------------------+
 PKGBUILD                                               |   53 +++++++++++++++
 vdirsyncer-0.18.0-remove_broken_fingerprint_test.patch |   38 ++++++++++
 vdirsyncer.service                                     |    7 +
 vdirsyncer.timer                                       |   10 ++
 4 files changed, 108 insertions(+)

Copied: vdirsyncer/repos/community-staging-any/PKGBUILD (from rev 1442566, 
vdirsyncer/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-08 14:08:48 UTC (rev 1442567)
@@ -0,0 +1,53 @@
+# Maintainer: David Runge <[email protected]>
+# Maintainer: Daniel M. Capella <[email protected]>
+# Contributor: Hugo Osvaldo Barrera <[email protected]>
+
+pkgname=vdirsyncer
+pkgver=0.19.1
+pkgrel=2
+pkgdesc="Synchronize CalDAV and CardDAV."
+arch=(any)
+url="https://vdirsyncer.pimutils.org/en/stable/";
+license=(BSD)
+depends=(python-aiohttp python-aiostream python-atomicwrites python-click
+         python-click-log python-requests python-requests-toolbelt)
+makedepends=(git python-build python-installer python-setuptools-scm
+             python-sphinx python-wheel)
+checkdepends=(python-aioresponses python-hypothesis python-pytest
+              python-pytest-asyncio python-pytest-httpserver
+              python-pytest-subtesthack python-trustme)
+optdepends=('python-aiohttp-oauthlib: Google support')
+source=("git+https://github.com/pimutils/vdirsyncer.git#tag=${pkgver}";)
+sha512sums=('SKIP')
+#validpgpkeys=('951082781CA308E4A529DEFD6F9FFF122B98C0CD') # Hugo Osvaldo 
Barrera <[email protected]>
+
+build() {
+  cd "${pkgname}"
+  export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
+  python -m build --wheel --skip-dependency-check --no-isolation
+  export PYTHONPATH="build:${PYTHONPATH}"
+  sphinx-build -b man docs/ build/
+}
+
+check() {
+  cd "${pkgname}"
+  export DETERMINISTIC_TESTS=true
+  pytest --tb=short -c /dev/null
+}
+
+package() {
+  cd "${pkgname}"
+  python -m installer --destdir="${pkgdir}" dist/*.whl
+  # systemd
+  install -vDm 644 "contrib/${pkgname}."{service,timer} -t 
"${pkgdir}/usr/lib/systemd/user/"
+  # man page
+  install -vDm 644 "build/${pkgname}.1" -t "${pkgdir}/usr/share/man/man1"
+  # docs
+  install -vDm 644 {AUTHORS,CHANGELOG,README}.rst -t 
"${pkgdir}/usr/share/doc/${pkgname}"
+
+  # symlink license file
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+  install -d "${pkgdir}"/usr/share/licenses/${pkgname}
+  ln -s "${site_packages}"/${pkgname}-${pkgver}.dist-info/LICENSE \
+    "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}

Copied: 
vdirsyncer/repos/community-staging-any/vdirsyncer-0.18.0-remove_broken_fingerprint_test.patch
 (from rev 1442566, 
vdirsyncer/trunk/vdirsyncer-0.18.0-remove_broken_fingerprint_test.patch)
===================================================================
--- 
community-staging-any/vdirsyncer-0.18.0-remove_broken_fingerprint_test.patch    
                            (rev 0)
+++ 
community-staging-any/vdirsyncer-0.18.0-remove_broken_fingerprint_test.patch    
    2023-04-08 14:08:48 UTC (rev 1442567)
@@ -0,0 +1,38 @@
+diff --git i/tests/system/utils/test_main.py w/tests/system/utils/test_main.py
+index 5a3942d..7121450 100644
+--- i/tests/system/utils/test_main.py
++++ w/tests/system/utils/test_main.py
+@@ -38,33 +38,6 @@ def _fingerprints_broken():
+     return broken_urllib3
+ 
+ 
[email protected](
+-    _fingerprints_broken(), 
reason="https://github.com/shazow/urllib3/issues/529";
+-)
[email protected](
+-    "fingerprint",
+-    [
+-        "94:FD:7A:CB:50:75:A4:69:82:0A:F8:23:DF:07:FC:69:3E:CD:90:CA",
+-        "19:90:F7:23:94:F2:EF:AB:2B:64:2D:57:3D:25:95:2D",
+-    ],
+-)
+-def test_request_ssl_fingerprints(httpsserver, fingerprint):
+-    httpsserver.serve_content("")  # we need to serve something
+-
+-    http.request("GET", httpsserver.url, verify=False, 
verify_fingerprint=fingerprint)
+-    with pytest.raises(requests.exceptions.ConnectionError) as excinfo:
+-        http.request("GET", httpsserver.url, verify_fingerprint=fingerprint)
+-
+-    with pytest.raises(requests.exceptions.ConnectionError) as excinfo:
+-        http.request(
+-            "GET",
+-            httpsserver.url,
+-            verify=False,
+-            verify_fingerprint="".join(reversed(fingerprint)),
+-        )
+-    assert "Fingerprints did not match" in str(excinfo.value)
+-
+-
+ def test_open_graphical_browser(monkeypatch):
+     import webbrowser
+ 

Copied: vdirsyncer/repos/community-staging-any/vdirsyncer.service (from rev 
1442566, vdirsyncer/trunk/vdirsyncer.service)
===================================================================
--- community-staging-any/vdirsyncer.service                            (rev 0)
+++ community-staging-any/vdirsyncer.service    2023-04-08 14:08:48 UTC (rev 
1442567)
@@ -0,0 +1,7 @@
+[Unit]
+Description=Synchronize calendars and contacts
+Documentation=https://vdirsyncer.readthedocs.org/
+
+[Service]
+ExecStart=/usr/bin/vdirsyncer sync
+Type=oneshot

Copied: vdirsyncer/repos/community-staging-any/vdirsyncer.timer (from rev 
1442566, vdirsyncer/trunk/vdirsyncer.timer)
===================================================================
--- community-staging-any/vdirsyncer.timer                              (rev 0)
+++ community-staging-any/vdirsyncer.timer      2023-04-08 14:08:48 UTC (rev 
1442567)
@@ -0,0 +1,10 @@
+[Unit]
+Description=Synchronize vdirs
+
+[Timer]
+OnBootSec=5m
+OnUnitActiveSec=15m
+AccuracySec=5m
+
+[Install]
+WantedBy=timers.target

Reply via email to