Sync from SUSE:SLFO:Main python-lexicon revision efd08be6e9113c8ad64421fd2e83b3ac
This commit is contained in:
commit
dfb68f5f2d
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
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 = *
|
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.
58
python-lexicon.changes
Normal file
58
python-lexicon.changes
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 21 12:27:52 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- add sle15_python_module_pythons (jsc#PED-68)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 13 22:42:27 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Make calling of %{sle15modernpython} optional.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 10 06:08:28 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- pytest-relaxed now supports pytest 6, so test on all python versions.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 13 23:14:40 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Don't test on python310 because of pytest-relaxed not supporting
|
||||||
|
Pytest 6 -- gh#bitprophet/pytest-relaxed#12
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
||||||
|
|
||||||
|
- Remove superfluous devel dependency for noarch package
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 23 13:16:19 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Conflict with python-dns-lexicon that provides same namespace
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Mar 4 09:23:34 UTC 2018 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Update descriptions.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Mar 3 10:38:55 UTC 2018 - sebix+novell.com@sebix.at
|
||||||
|
|
||||||
|
- initial package for version 1.0.0
|
||||||
|
- add add_test_init.patch to fix execution of tests
|
68
python-lexicon.spec
Normal file
68
python-lexicon.spec
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-lexicon
|
||||||
|
#
|
||||||
|
# Copyright (c) 2023 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
|
Name: python-lexicon
|
||||||
|
Version: 2.0.1
|
||||||
|
Release: 0
|
||||||
|
Summary: Python dict subclass(es) with aliasing and attribute access
|
||||||
|
License: BSD-2-Clause
|
||||||
|
URL: https://github.com/bitprophet/lexicon
|
||||||
|
Source: https://files.pythonhosted.org/packages/source/l/lexicon/lexicon-%{version}.tar.gz
|
||||||
|
Patch0: add-pytest-ini.patch
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: python-six
|
||||||
|
# Completely different pkg but same namespece in sitelib folder
|
||||||
|
Conflicts: python-dns-lexicon
|
||||||
|
BuildArch: noarch
|
||||||
|
# SECTION tests
|
||||||
|
BuildRequires: %{python_module pytest-relaxed}
|
||||||
|
# /SECTION tests
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
Lexicon is a collection of dict subclasses:
|
||||||
|
|
||||||
|
* AliasDict, a dictionary supporting both simple and complex key aliasing
|
||||||
|
* AttributeDict, supporting attribute read and write access
|
||||||
|
* Lexicon, a subclass of both of the above which exhibits both sets of behavior
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n lexicon-%{version}
|
||||||
|
%autopatch -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%python_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%pytest
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%doc README.rst
|
||||||
|
%license LICENSE
|
||||||
|
%{python_sitelib}/lexicon
|
||||||
|
%{python_sitelib}/lexicon-%{version}*-info
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user