diff --git a/add-pytest-ini.patch b/add-pytest-ini.patch new file mode 100644 index 0000000..1085fdc --- /dev/null +++ b/add-pytest-ini.patch @@ -0,0 +1,8 @@ +Index: lexicon-2.0.1/pytest.ini +=================================================================== +--- /dev/null ++++ lexicon-2.0.1/pytest.ini +@@ -0,0 +1,3 @@ ++[pytest] ++testpaths = tests ++python_files = * diff --git a/add_test_init.patch b/add_test_init.patch deleted file mode 100644 index e63fb39..0000000 --- a/add_test_init.patch +++ /dev/null @@ -1,13 +0,0 @@ -From e88d312e9c4f5f650d3584c7adf01a0a261019d2 Mon Sep 17 00:00:00 2001 -From: Sebastian Wagner -Date: Sat, 3 Mar 2018 11:59:11 +0100 -Subject: [PATCH] Add tests/__init__.py to fix spec-2.7 call - ---- - tests/__init__.py | 0 - 1 file changed, 0 insertions(+), 0 deletions(-) - create mode 100644 tests/__init__.py - -diff --git a/tests/__init__.py b/tests/__init__.py -new file mode 100644 -index 0000000..e69de29 diff --git a/lexicon-1.0.0.tar.gz b/lexicon-1.0.0.tar.gz deleted file mode 100644 index d3b487b..0000000 --- a/lexicon-1.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1a2ed9d86142e2d2dfdb431ed434b2c8ae19a2ed6ca2cea07c75d123353dca3e -size 7539 diff --git a/lexicon-2.0.1.tar.gz b/lexicon-2.0.1.tar.gz new file mode 100644 index 0000000..9bebe66 --- /dev/null +++ b/lexicon-2.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49a072372e890e88a60f713a297e95788628f2fbae27943b010ae078ed9ab082 +size 9219 diff --git a/python-lexicon.changes b/python-lexicon.changes index 5e6c117..e56963c 100644 --- a/python-lexicon.changes +++ b/python-lexicon.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Fri Sep 17 03:43:56 UTC 2021 - Steve Kowalik + +- Update to 2.0.1: + * Fix up some project metadata. + * Dropped support for Python <3.6 + * Added a _version submodule and imported its dunder-attributes into + the top level module + * Migrated CI to CircleCI (from Travis) + * Migrated tests to pytest(-relaxed) + * Moved changelog to stub Sphinx project for Releases plugin + * Changed README to ReStructured Text (from Markdown) +- Dropped patch add_test_init.patch, no longer required. +- Added patch add-pytest-ini.patch: + * Add the pytest.ini file that isn't included in the source distribution + so the testsuite works. + ------------------------------------------------------------------- Tue Dec 4 12:49:59 UTC 2018 - Matej Cepl diff --git a/python-lexicon.spec b/python-lexicon.spec index c8f46c1..16879fc 100644 --- a/python-lexicon.spec +++ b/python-lexicon.spec @@ -1,7 +1,7 @@ # # spec file for package python-lexicon # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,15 +18,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-lexicon -Version: 1.0.0 +Version: 2.0.1 Release: 0 Summary: Python dict subclass(es) with aliasing and attribute access License: BSD-2-Clause -Group: Development/Languages/Python URL: https://github.com/bitprophet/lexicon Source: https://files.pythonhosted.org/packages/source/l/lexicon/lexicon-%{version}.tar.gz -# PATCH-FIX-UPSTREAM: add_test_init.patch # fix execution of tests -Patch0: https://github.com/bitprophet/lexicon/pull/10.patch#/add_test_init.patch +Patch0: add-pytest-ini.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -35,8 +33,7 @@ Requires: python-six Conflicts: python-dns-lexicon BuildArch: noarch # SECTION tests -BuildRequires: %{python_module six} -BuildRequires: %{python_module spec} +BuildRequires: %{python_module pytest-relaxed} # /SECTION tests %python_subpackages @@ -49,7 +46,7 @@ Lexicon is a collection of dict subclasses: %prep %setup -q -n lexicon-%{version} -%patch0 -p1 +%autopatch -p1 %build %python_build @@ -59,10 +56,10 @@ Lexicon is a collection of dict subclasses: %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand spec-%{$python_bin_suffix} +%pytest %files %{python_files} -%doc README.md +%doc README.rst %license LICENSE %{python_sitelib}/*