forked from pool/python-atom
Accepting request 1043240 from home:bnavigator:branches:devel:languages:python
- Update to 0.8.2
* fix handling of Union in annotation based class definition PR
#177
- Release 0.8.1
* add support for Python 3.11 PR #166
- Release 0.8.0
* This release introduced a new way to declare atom object based
on type annotations.
* emit warnings when a magic method points to an undefined member
PR #139 #149
* use isort, black and flake8 to ensure a consistent coding style
PR #141
* base the version number on the most recent git tag using
setuptools-scm PR #141
* make the setup compatible with PEP 517 and PEP 621 compliant PR
#141 #162 Pip should be used for development install in place
of directly calling setup.py
+ fix handling of _SpecialGenericAlias (typing.Sequence, ...)
when used inside an Instance member PR #151
* add a ChangeDict TypedDict to help annotate observers PR #133
* add several keyword argument to the AtomMeta metaclass PR #133
- enable_weakrefs: allow to have weak references to an Atom
object without having to add the slot by hand. False by
default.
- use_annotations: generate members from type annotations.
Str-like annotations are not supported but allowed when an
actual member is provided as default value. True by default.
- type_containers: in conjunction with use_annotations
determine to what depth to type the content of a container.
The default is 1 meaning that list[int] will use List(Int())
but list[list[int]] will use List(List()).
* allow specifying which change events are emitted when adding
static observers PR #155
OBS-URL: https://build.opensuse.org/request/show/1043240
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-atom?expand=0&rev=12
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-atom
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,20 +16,20 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
%define skip_python36 1
|
||||
Name: python-atom
|
||||
Version: 0.7.0
|
||||
Version: 0.8.2
|
||||
Release: 0
|
||||
Summary: Memory efficient Python objects
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/nucleic/atom
|
||||
Source: https://github.com/nucleic/atom/archive/%{version}.tar.gz
|
||||
BuildRequires: %{python_module cppy}
|
||||
BuildRequires: %{python_module devel}
|
||||
Source: https://files.pythonhosted.org/packages/source/a/atom/atom-%{version}.tar.gz
|
||||
BuildRequires: %{python_module cppy >= 1.2.0}
|
||||
BuildRequires: %{python_module devel >= 3.8}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module setuptools >= 61.2}
|
||||
BuildRequires: %{python_module setuptools_scm >= 3.4.3}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: c++_compiler
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -47,18 +47,19 @@ model binding behaviour for the Enaml UI framework.
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%check
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} py.test-%{$python_bin_suffix} -v
|
||||
%pytest_arch
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitearch}/*
|
||||
%{python_sitearch}/atom
|
||||
%{python_sitearch}/atom-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user