From 436861b84a5032c7ebf143c4a4d49706433f15007f75bd0aa136431c4c0c3dda Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 6 Feb 2019 09:14:33 +0000 Subject: [PATCH 1/4] Accepting request 671216 from home:frispete:python - add local-intersphinx-inventories.patch for generating the docs correctly - add fetch-intersphinx-inventories.sh to fetch the inventories OBS-URL: https://build.opensuse.org/request/show/671216 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-service_identity?expand=0&rev=16 --- .gitattributes | 3 +++ crypto.inv | 3 +++ fetch-intersphinx-inventories.sh | 6 ++++++ local-intersphinx-inventories.patch | 15 +++++++++++++++ pyopenssl.inv | Bin 0 -> 2712 bytes python-service_identity.changes | 7 +++++++ python-service_identity.spec | 15 +++++++++++++-- python3.inv | 3 +++ 8 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 crypto.inv create mode 100644 fetch-intersphinx-inventories.sh create mode 100644 local-intersphinx-inventories.patch create mode 100644 pyopenssl.inv create mode 100644 python3.inv diff --git a/.gitattributes b/.gitattributes index 9b03811..e6096f7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -21,3 +21,6 @@ *.xz filter=lfs diff=lfs merge=lfs -text *.zip filter=lfs diff=lfs merge=lfs -text *.zst filter=lfs diff=lfs merge=lfs -text +## Specific LFS patterns +crypto.inv filter=lfs diff=lfs merge=lfs -text +python3.inv filter=lfs diff=lfs merge=lfs -text diff --git a/crypto.inv b/crypto.inv new file mode 100644 index 0000000..264442d --- /dev/null +++ b/crypto.inv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:41ce8ae745441735db7d7745cc412146c483377c44cda20d7844e0e1141e19a2 +size 9076 diff --git a/fetch-intersphinx-inventories.sh b/fetch-intersphinx-inventories.sh new file mode 100644 index 0000000..6d9209a --- /dev/null +++ b/fetch-intersphinx-inventories.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +wget -O pyopenssl.inv https://pyopenssl.readthedocs.io/en/stable/objects.inv +wget -O python3.inv https://docs.python.org/3/objects.inv +wget -O crypto.inv https://cryptography.io/en/latest/objects.inv + diff --git a/local-intersphinx-inventories.patch b/local-intersphinx-inventories.patch new file mode 100644 index 0000000..73449b5 --- /dev/null +++ b/local-intersphinx-inventories.patch @@ -0,0 +1,15 @@ +Index: b/docs/conf.py +=================================================================== +--- a/docs/conf.py ++++ b/docs/conf.py +@@ -301,7 +301,7 @@ texinfo_documents = [ + + # Example configuration for intersphinx: refer to the Python standard library. + intersphinx_mapping = { +- "https://docs.python.org/3/": None, +- "https://pyopenssl.readthedocs.io/en/stable": None, +- "https://cryptography.io/en/stable/": None, ++ "https://docs.python.org/3/": "python3.inv", ++ "https://pyopenssl.readthedocs.io/en/stable": "pyopenssl.inv", ++ "https://cryptography.io/en/stable/": "crypto.inv", + } diff --git a/pyopenssl.inv b/pyopenssl.inv new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..62c85df8e9ac73787c260f55937e11460eb447110cd1efe5bf71ea7698e67f24 GIT binary patch literal 2712 zcmV;J3TO2rAX9K?X>NERX>N99Zgg*Qc_4OWa&u{KZXhxWBOp+6Z)#;@bUGk#c~5X< zZc|fC3L_v^WpZ%ZEX>4U6 zX>%ZBZ*6dLWpi_7WFU2OX>MmAdTeQ8E(&0kAeo4*Zj1~Z**)RFe@jHREYA2~G3NXQeKNokm3#)h|T z<$1{nhat(i%9QY!Mh4PlLQz3*1QxS+%Om=pfdTJD!U;$nrU}V7DsUFj4UC|Fwb3H- z0g^`)#iHOW#&59NlaHJh9KDf!lC9AOb5bNY1)sf0~MAJ%(Lt%`Q%${Rwxe8?6NUD88np#`UG04u887TzE62Yu0WVL81 z02kdW{x8Jb3xaIKw7*JH0u(bb+smmRBo|L3Xt}|@LP5eEScsC0Q=qz@A8hr=uHAm$ z62=h?Sq=g)kvUk1(-f$cL)FH^V$vB;CbAx6f}IZs|TkXr|2-e#WR>;y<-`JK&M5ehKE34to@@x+a+p{w1j%ZTA~BW6Rs>l2Q;M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7>m+1WU|ij6Z%yJVJj2?>j}P#0SH{74v645C=> z@koZ-obnA9zgi34I60;;Uf4oZye(!r5mBc0BuGScN@1~lsSOg}N!GN~8TO8pS#?Ya z5Mu;$Xul{%1RLE-t6$98xi?%Vg&r zRRoJ^zd~5d{1U;e>%p#22;d4NwO3d^BnGy%E7d`Dd)#n*DV@HFPYMpsSrdvB4p3W< zDPA)>gmg;5gflNP7|OLP#ev>ni&S1ewAk1^M%IT>kP1Fj{R0+{#*@kHJDU5mAFt{F zKQP~0XwaN{0`J>&ym&de`D2LlC)X%cMM0wBtVr&U`NVU) z1)9&q&sQs!XrP(zBFFa@o-?*9mp6U%?nSYl$8#&rbhc2}HSBAr5m)Fu`4I&R-*Xmb zoM^krj|ctHl_o<1D&H@KlJv|DP_~bOAb{;MO+t`f`B-V1Oc?zu&^c#fLl}L9-65R9^D0_@aDGu z146@+H~jOD{|@JSvG8ZZM6Be+3WsFKY4!c!z&yel11dBt*D;r0(tV+!68{$>_&?3Bo(cux+33~P5$Q} z|6@aubh{C8zj`(CFM`3ieCfYMQID#e)CZM%P#3$Myjd3^C_f&hK415iqM#?K3t@@+ zCFX;mel}<(I4V|K*p>)^-b?J~`l4m?#? zIef?i-5ymuDVh|jt=b-9wKdxX5S~sSz1&{xlIuXcZwH-6oEolH z__Juek8;uch2d6+>SFK(O?987k}-mdFm9{#v(in_-_P-y4CJ5WApAyeUR+un#$hPU SJzEb0B^y3#+2H?cTmrrtA0+Jn literal 0 HcmV?d00001 diff --git a/python-service_identity.changes b/python-service_identity.changes index afe73c9..3a34caa 100644 --- a/python-service_identity.changes +++ b/python-service_identity.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Feb 4 19:49:08 UTC 2019 - Hans-Peter Jansen + +- add local-intersphinx-inventories.patch for generating the docs + correctly +- add fetch-intersphinx-inventories.sh to fetch the inventories + ------------------------------------------------------------------- Tue Dec 4 12:54:12 UTC 2018 - Matej Cepl diff --git a/python-service_identity.spec b/python-service_identity.spec index 646495b..9e643ab 100644 --- a/python-service_identity.spec +++ b/python-service_identity.spec @@ -1,8 +1,8 @@ # # spec file for package python-service_identity # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. -# Copyright (c) 2014 LISA GmbH, Bingen, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2014-2019 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,6 +27,10 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/pyca/service_identity Source0: https://pypi.io/packages/source/s/%{oname}/%{oname}-%{version}.tar.gz +Source1: python3.inv +Source2: pyopenssl.inv +Source3: crypto.inv +Patch1: local-intersphinx-inventories.patch # Documentation BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module attrs} @@ -54,11 +58,18 @@ relevant RFCs too. %prep %setup -q -n %{oname}-%{version} +%autopatch -p1 + +# prepare local intersphinx inventories, fetch with fetch-intersphinx-inventories.sh +cp -v %{S:1} docs/ +cp -v %{S:2} docs/ +cp -v %{S:3} docs/ %build %python_build # make man and documentation +export PYTHONPATH=$(pwd)/build/lib cd docs # do not run these in parallel to ensure reproducible builds (boo#1102408) make %{?_smp_mflags} man diff --git a/python3.inv b/python3.inv new file mode 100644 index 0000000..99ffcde --- /dev/null +++ b/python3.inv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c8b6fe404be5534e725ad69abf2a0f7deb6a2972b6500584df61102ce20d7fd +size 102981 From e256e5a6835ff678aca931644e71267c92104cd12fa81fdf67dfa8aa97b7db12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 26 Feb 2019 08:45:43 +0000 Subject: [PATCH 2/4] Accepting request 679042 from home:TheBlackCat:branches:devel:languages:python - add fetch-intersphinx-inventories.sh to the sources OBS-URL: https://build.opensuse.org/request/show/679042 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-service_identity?expand=0&rev=17 --- python-service_identity.changes | 5 +++++ python-service_identity.spec | 1 + 2 files changed, 6 insertions(+) diff --git a/python-service_identity.changes b/python-service_identity.changes index 3a34caa..0f6afca 100644 --- a/python-service_identity.changes +++ b/python-service_identity.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 25 19:48:17 UTC 2019 - Todd R + +- add fetch-intersphinx-inventories.sh to the sources + ------------------------------------------------------------------- Mon Feb 4 19:49:08 UTC 2019 - Hans-Peter Jansen diff --git a/python-service_identity.spec b/python-service_identity.spec index 9e643ab..499d5c9 100644 --- a/python-service_identity.spec +++ b/python-service_identity.spec @@ -30,6 +30,7 @@ Source0: https://pypi.io/packages/source/s/%{oname}/%{oname}-%{version}.t Source1: python3.inv Source2: pyopenssl.inv Source3: crypto.inv +Source4: fetch-intersphinx-inventories.sh Patch1: local-intersphinx-inventories.patch # Documentation BuildRequires: %{python_module Sphinx} From c7a969b324fd39163242069aaa0c060eec7e8b73dae4816370d9f37d822b3d7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Fri, 1 Mar 2019 14:05:46 +0000 Subject: [PATCH 3/4] - update to 18.1.0 - drop fetch-intersphinx-inventories.sh - drop local-intersphinx-inventories.patch - cleanup spec + enable tests * pyOpenSSL is optional now if you use service_identity.cryptography.* only. * Added support for iPAddress subjectAltNames. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-service_identity?expand=0&rev=18 --- .gitattributes | 3 -- 18.1.0.tar.gz | 3 ++ crypto.inv | 3 -- fetch-intersphinx-inventories.sh | 6 ---- local-intersphinx-inventories.patch | 15 --------- pyopenssl.inv | Bin 2712 -> 0 bytes python-service_identity.changes | 10 ++++++ python-service_identity.spec | 48 ++++++++++------------------ python3.inv | 3 -- service_identity-17.0.0.tar.gz | 3 -- 10 files changed, 29 insertions(+), 65 deletions(-) create mode 100644 18.1.0.tar.gz delete mode 100644 crypto.inv delete mode 100644 fetch-intersphinx-inventories.sh delete mode 100644 local-intersphinx-inventories.patch delete mode 100644 pyopenssl.inv delete mode 100644 python3.inv delete mode 100644 service_identity-17.0.0.tar.gz diff --git a/.gitattributes b/.gitattributes index e6096f7..9b03811 100644 --- a/.gitattributes +++ b/.gitattributes @@ -21,6 +21,3 @@ *.xz filter=lfs diff=lfs merge=lfs -text *.zip filter=lfs diff=lfs merge=lfs -text *.zst filter=lfs diff=lfs merge=lfs -text -## Specific LFS patterns -crypto.inv filter=lfs diff=lfs merge=lfs -text -python3.inv filter=lfs diff=lfs merge=lfs -text diff --git a/18.1.0.tar.gz b/18.1.0.tar.gz new file mode 100644 index 0000000..7fbe6a8 --- /dev/null +++ b/18.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:24a1257641041cb1e75a50c343ecc42e4e0fb9aeb1215ae7e42dea1f9356041f +size 34251 diff --git a/crypto.inv b/crypto.inv deleted file mode 100644 index 264442d..0000000 --- a/crypto.inv +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:41ce8ae745441735db7d7745cc412146c483377c44cda20d7844e0e1141e19a2 -size 9076 diff --git a/fetch-intersphinx-inventories.sh b/fetch-intersphinx-inventories.sh deleted file mode 100644 index 6d9209a..0000000 --- a/fetch-intersphinx-inventories.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -wget -O pyopenssl.inv https://pyopenssl.readthedocs.io/en/stable/objects.inv -wget -O python3.inv https://docs.python.org/3/objects.inv -wget -O crypto.inv https://cryptography.io/en/latest/objects.inv - diff --git a/local-intersphinx-inventories.patch b/local-intersphinx-inventories.patch deleted file mode 100644 index 73449b5..0000000 --- a/local-intersphinx-inventories.patch +++ /dev/null @@ -1,15 +0,0 @@ -Index: b/docs/conf.py -=================================================================== ---- a/docs/conf.py -+++ b/docs/conf.py -@@ -301,7 +301,7 @@ texinfo_documents = [ - - # Example configuration for intersphinx: refer to the Python standard library. - intersphinx_mapping = { -- "https://docs.python.org/3/": None, -- "https://pyopenssl.readthedocs.io/en/stable": None, -- "https://cryptography.io/en/stable/": None, -+ "https://docs.python.org/3/": "python3.inv", -+ "https://pyopenssl.readthedocs.io/en/stable": "pyopenssl.inv", -+ "https://cryptography.io/en/stable/": "crypto.inv", - } diff --git a/pyopenssl.inv b/pyopenssl.inv deleted file mode 100644 index 62c85df8e9ac73787c260f55937e11460eb447110cd1efe5bf71ea7698e67f24..0000000000000000000000000000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2712 zcmV;J3TO2rAX9K?X>NERX>N99Zgg*Qc_4OWa&u{KZXhxWBOp+6Z)#;@bUGk#c~5X< zZc|fC3L_v^WpZ%ZEX>4U6 zX>%ZBZ*6dLWpi_7WFU2OX>MmAdTeQ8E(&0kAeo4*Zj1~Z**)RFe@jHREYA2~G3NXQeKNokm3#)h|T z<$1{nhat(i%9QY!Mh4PlLQz3*1QxS+%Om=pfdTJD!U;$nrU}V7DsUFj4UC|Fwb3H- z0g^`)#iHOW#&59NlaHJh9KDf!lC9AOb5bNY1)sf0~MAJ%(Lt%`Q%${Rwxe8?6NUD88np#`UG04u887TzE62Yu0WVL81 z02kdW{x8Jb3xaIKw7*JH0u(bb+smmRBo|L3Xt}|@LP5eEScsC0Q=qz@A8hr=uHAm$ z62=h?Sq=g)kvUk1(-f$cL)FH^V$vB;CbAx6f}IZs|TkXr|2-e#WR>;y<-`JK&M5ehKE34to@@x+a+p{w1j%ZTA~BW6Rs>l2Q;MyuN$L4UbYlz@m&H$M2$(Gt z#%3LB0~kr=Iuwe9eTl<2APH>L%px*A0N}A`&4|bfZ`0bea?E33vnJV!TDB+5u%$8+ zU5cZfj2s!UEJb!L^N_CUp_8mhr7vko$}NUoF4nGhF^Mc;@@ve(O->TQ^x#>%;kq4S zaLW!Ud0Sz&tl&8iBBo^$LMCQbFDo`$=%OZT4c+eP0+f!9@xDMO3r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NP7|OLP#ev>ni&S1ewAk1^M%IT>kP1Fj{R0+{#*@kHJDU5mAFt{F zKQP~0XwaN{0`J>&ym&de`D2LlC)X%cMM0wBtVr&U`NVU) z1)9&q&sQs!XrP(zBFFa@o-?*9mp6U%?nSYl$8#&rbhc2}HSBAr5m)Fu`4I&R-*Xmb zoM^krj|ctHl_o<1D&H@KlJv|DP_~bOAb{;MO+t`f`B-V1Oc?zu&^c#fLl}L9-65R9^D0_@aDGu z146@+H~jOD{|@JSvG8ZZM6Be+3WsFKY4!c!z&yel11dBt*D;r0(tV+!68{$>_&?3Bo(cux+33~P5$Q} z|6@aubh{C8zj`(CFM`3ieCfYMQID#e)CZM%P#3$Myjd3^C_f&hK415iqM#?K3t@@+ zCFX;mel}<(I4V|K*p>)^-b?J~`l4m?#? zIef?i-5ymuDVh|jt=b-9wKdxX5S~sSz1&{xlIuXcZwH-6oEolH z__Juek8;uch2d6+>SFK(O?987k}-mdFm9{#v(in_-_P-y4CJ5WApAyeUR+un#$hPU SJzEb0B^y3#+2H?cTmrrtA0+Jn diff --git a/python-service_identity.changes b/python-service_identity.changes index 0f6afca..bab5f6a 100644 --- a/python-service_identity.changes +++ b/python-service_identity.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Mar 1 14:02:29 UTC 2019 - Ondřej Súkup + +- update to 18.1.0 +- drop fetch-intersphinx-inventories.sh +- drop local-intersphinx-inventories.patch +- cleanup spec + enable tests + * pyOpenSSL is optional now if you use service_identity.cryptography.* only. + * Added support for iPAddress subjectAltNames. + ------------------------------------------------------------------- Mon Feb 25 19:48:17 UTC 2019 - Todd R diff --git a/python-service_identity.spec b/python-service_identity.spec index 499d5c9..d372ce5 100644 --- a/python-service_identity.spec +++ b/python-service_identity.spec @@ -20,33 +20,34 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oname service_identity Name: python-service_identity -Version: 17.0.0 +Version: 18.1.0 Release: 0 Summary: Service identity verification for pyOpenSSL License: MIT Group: Development/Languages/Python URL: https://github.com/pyca/service_identity -Source0: https://pypi.io/packages/source/s/%{oname}/%{oname}-%{version}.tar.gz -Source1: python3.inv -Source2: pyopenssl.inv -Source3: crypto.inv -Source4: fetch-intersphinx-inventories.sh -Patch1: local-intersphinx-inventories.patch -# Documentation -BuildRequires: %{python_module Sphinx} +# no tests in upstream tarball +Source: https://github.com/pyca/service_identity/archive/%{version}.tar.gz BuildRequires: %{python_module attrs} +BuildRequires: %{python_module cryptography} +BuildRequires: %{python_module idna} BuildRequires: %{python_module pyOpenSSL >= 0.14} BuildRequires: %{python_module pyasn1-modules} BuildRequires: %{python_module pyasn1} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-attrs -Requires: python-pyOpenSSL >= 0.14 +Requires: python-cryptography Requires: python-pyasn1 Requires: python-pyasn1-modules -Requires: python-setuptools +Recommends: python-idna +Recommends: python-pyOpenSSL BuildArch: noarch +%ifpython2 +Requires: python-ipaddress +%endif %python_subpackages %description @@ -59,37 +60,20 @@ relevant RFCs too. %prep %setup -q -n %{oname}-%{version} -%autopatch -p1 - -# prepare local intersphinx inventories, fetch with fetch-intersphinx-inventories.sh -cp -v %{S:1} docs/ -cp -v %{S:2} docs/ -cp -v %{S:3} docs/ %build %python_build -# make man and documentation -export PYTHONPATH=$(pwd)/build/lib -cd docs -# do not run these in parallel to ensure reproducible builds (boo#1102408) -make %{?_smp_mflags} man -make %{?_smp_mflags} singlehtml - %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -# install man -install -Dm 0644 docs/_build/man/%{oname}.1 %{buildroot}%{_mandir}/man1/%{oname}.1 -%python_clone %{buildroot}%{_mandir}/man1/%{oname}.1 - -%python_expand %fdupes %{buildroot}%{$python_sitelib}/%{oname} +%check +%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v %files %{python_files} %license LICENSE -%doc AUTHORS.rst README.rst docs/_build/singlehtml/index.html -%{_mandir}/man1/*-%{python_bin_suffix}.1%{?ext_man} -%python3_only %{_mandir}/man1/%{oname}.1%{?ext_man} +%doc AUTHORS.rst README.rst %{python_sitelib}/%{oname} %{python_sitelib}/%{oname}-%{version}-py%{py_ver}.egg-info diff --git a/python3.inv b/python3.inv deleted file mode 100644 index 99ffcde..0000000 --- a/python3.inv +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0c8b6fe404be5534e725ad69abf2a0f7deb6a2972b6500584df61102ce20d7fd -size 102981 diff --git a/service_identity-17.0.0.tar.gz b/service_identity-17.0.0.tar.gz deleted file mode 100644 index 9a8ef2f..0000000 --- a/service_identity-17.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4001fbb3da19e0df22c47a06d29681a398473af4aa9d745eca525b3b2c2302ab -size 23502 From e582edb9f5fbe1b842bc49f814dce21b7eb8941213137ecfe040db383a452f1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Fri, 1 Mar 2019 14:06:42 +0000 Subject: [PATCH 4/4] x OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-service_identity?expand=0&rev=19 --- python-service_identity.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/python-service_identity.spec b/python-service_identity.spec index d372ce5..4b52776 100644 --- a/python-service_identity.spec +++ b/python-service_identity.spec @@ -2,7 +2,6 @@ # spec file for package python-service_identity # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. -# Copyright (c) 2014-2019 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed