From fa40fa8024671e725ed00b97d3b1acd9cc9ffa222e3c533e2e3b630836491978 Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Tue, 19 Mar 2019 14:01:05 +0000 Subject: [PATCH] Accepting request 686301 from home:jayvdb:branches:devel:languages:python - Activate test suite on Python 3 using GitHub archive. Currently failing on Python 2 - Add missing runtime dependencies - Add %license - Update to v3.0.3 * Python 3.7 support * Autotype support * Fix "object has no attribute" issue in save_history * Fix datetime comparison when there is no tzinfo and autotype sequence * Added new Attachment object (see README.rst for usage) * Moved the xpath strings into xpath.py * Added exceptions.py * Fix entry.parentgroup doesn't work for history entries * Move first and history into _xpath * Use UUID instead of (name, title, password, ...) when comparing objects * Notes is a reserved key OBS-URL: https://build.opensuse.org/request/show/686301 OBS-URL: https://build.opensuse.org/package/show/security/python-pykeepass?expand=0&rev=4 --- pykeepass-3.0.2.tar.gz | 3 --- pykeepass-3.0.3.tar.gz | 3 +++ python-pykeepass.changes | 20 ++++++++++++++++ python-pykeepass.spec | 49 +++++++++++++++++++++------------------- 4 files changed, 49 insertions(+), 26 deletions(-) delete mode 100644 pykeepass-3.0.2.tar.gz create mode 100644 pykeepass-3.0.3.tar.gz diff --git a/pykeepass-3.0.2.tar.gz b/pykeepass-3.0.2.tar.gz deleted file mode 100644 index 3cea546..0000000 --- a/pykeepass-3.0.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:20b53d10e9c319301929f029579623562c815c4b4c787bf96d4bd7680581d6cd -size 38357 diff --git a/pykeepass-3.0.3.tar.gz b/pykeepass-3.0.3.tar.gz new file mode 100644 index 0000000..7fd6c5e --- /dev/null +++ b/pykeepass-3.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b5cfa967447818e81d3ed8fde743fcb76a8bd42ecec88775580ffa6c256e8a6f +size 59776 diff --git a/python-pykeepass.changes b/python-pykeepass.changes index 8fa1ec0..072f228 100644 --- a/python-pykeepass.changes +++ b/python-pykeepass.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Tue Mar 19 04:56:36 UTC 2019 - John Vandenberg + +- Activate test suite on Python 3 using GitHub archive. + Currently failing on Python 2 +- Add missing runtime dependencies +- Add %license +- Update to v3.0.3 + * Python 3.7 support + * Autotype support + * Fix "object has no attribute" issue in save_history + * Fix datetime comparison when there is no tzinfo and autotype sequence + * Added new Attachment object (see README.rst for usage) + * Moved the xpath strings into xpath.py + * Added exceptions.py + * Fix entry.parentgroup doesn't work for history entries + * Move first and history into _xpath + * Use UUID instead of (name, title, password, ...) when comparing objects + * Notes is a reserved key + ------------------------------------------------------------------- Wed Sep 12 12:23:46 UTC 2018 - badshah400@gmail.com diff --git a/python-pykeepass.spec b/python-pykeepass.spec index 1880677..6f9f81d 100644 --- a/python-pykeepass.spec +++ b/python-pykeepass.spec @@ -1,7 +1,7 @@ # # spec file for package python-pykeepass # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,27 +12,36 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pykeepass -Version: 3.0.2 +Version: 3.0.3 Release: 0 -License: GPL-3.0 Summary: Low-level library to interact with keepass databases -Url: https://github.com/pschmitt/pykeepass +License: GPL-3.0-only Group: Development/Languages/Python -Source: https://files.pythonhosted.org/packages/source/p/pykeepass/pykeepass-%{version}.tar.gz -BuildRequires: python-rpm-macros +Url: https://github.com/pschmitt/pykeepass +Source: https://github.com/pschmitt/pykeepass/archive/%{version}.tar.gz#/pykeepass-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros # SECTION test requirements -BuildRequires: %{python_module easypysmb} +BuildRequires: %{python_module argon2-cffi} +BuildRequires: %{python_module construct} +BuildRequires: %{python_module future} +BuildRequires: %{python_module lxml} +BuildRequires: %{python_module pycryptodome} BuildRequires: %{python_module python-dateutil} # /SECTION BuildRequires: fdupes -Requires: python-easypysmb +Requires: python-argon2_cffi +Requires: python-construct +Requires: python-future +Requires: python-lxml +Requires: python-pycryptodome Requires: python-python-dateutil BuildArch: noarch @@ -44,29 +53,23 @@ This library allows you to write entries to a KeePass database %prep %setup -q -n pykeepass-%{version} +sed -i '1{/^#!.*env python/d}' pykeepass/pykeepass.py pykeepass/kdbx_parsing/kdbx*.py %build %python_build %install %python_install -%{python_expand # Remove hashbangs from a non-exec file -sed -Ei "1{/^#!\/usr\/bin\/env python/d}" %{buildroot}%{$python_sitelib}/pykeepass/pykeepass.py -sed -Ei "1{/^#!\/bin\/env python/d}" %{buildroot}%{$python_sitelib}/pykeepass/kdbx_parsing/kdbx*.py -} - -# Recompile to fix inconsitent mtime of object files with sources modified post python_install step -%py_compile %{buildroot}%{python_sitelib}/pykeepass/ -%py3_compile %{buildroot}%{python3_sitelib}/pykeepass/ - -%{python_expand # Remove exec bits from files not in exec path -chmod -x %{buildroot}%{$python_sitelib}/pykeepass-%{version}-py%{$python_version}.egg-info/*.txt -chmod -x %{buildroot}%{$python_sitelib}/pykeepass-%{version}-py%{$python_version}.egg-info/PKG-INFO -} - +%python_expand rm -r %{buildroot}%{$python_sitelib}/tests %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +export PYTHONPATH=${PWD} +# python2 seg faults after 65 successful tests +python3 setup.py test + %files %{python_files} +%license LICENSE %doc README.rst %{python_sitelib}/*