forked from pool/python-atom
- 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
66 lines
2.0 KiB
RPMSpec
66 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package python-atom
|
|
#
|
|
# 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
|
|
# 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/
|
|
#
|
|
|
|
|
|
Name: python-atom
|
|
Version: 0.8.2
|
|
Release: 0
|
|
Summary: Memory efficient Python objects
|
|
License: BSD-3-Clause
|
|
URL: https://github.com/nucleic/atom
|
|
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 >= 61.2}
|
|
BuildRequires: %{python_module setuptools_scm >= 3.4.3}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: c++_compiler
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
|
|
%python_subpackages
|
|
|
|
%description
|
|
Atom is a framework for creating memory efficient Python objects with
|
|
enhanced features such as dynamic initialization, validation, and
|
|
change notification for object attributes. It provides the default
|
|
model binding behaviour for the Enaml UI framework.
|
|
|
|
%prep
|
|
%setup -q -n atom-%{version}
|
|
|
|
%build
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
%check
|
|
%pytest_arch
|
|
|
|
%files %{python_files}
|
|
%doc README.rst
|
|
%license LICENSE
|
|
%{python_sitearch}/atom
|
|
%{python_sitearch}/atom-%{version}*-info
|
|
|
|
%changelog
|