- 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. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lexicon?expand=0&rev=8
This commit is contained in:
parent
91dc0b22c5
commit
c69250596c
8
add-pytest-ini.patch
Normal file
8
add-pytest-ini.patch
Normal file
@ -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 = *
|
@ -1,13 +0,0 @@
|
||||
From e88d312e9c4f5f650d3584c7adf01a0a261019d2 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Wagner <sebix@sebix.at>
|
||||
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
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1a2ed9d86142e2d2dfdb431ed434b2c8ae19a2ed6ca2cea07c75d123353dca3e
|
||||
size 7539
|
BIN
lexicon-2.0.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
lexicon-2.0.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,3 +1,20 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 17 03:43:56 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- 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 <mcepl@suse.com>
|
||||
|
||||
|
@ -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}/*
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user