Sync from SUSE:SLFO:Main python-annotated-types revision 851d54162463a2d65f9a0c98f5a68296
This commit is contained in:
commit
ffc9e3fb44
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
|
BIN
annotated_types-0.7.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
annotated_types-0.7.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
21
python-annotated-types.changes
Normal file
21
python-annotated-types.changes
Normal file
@ -0,0 +1,21 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 17 05:48:32 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 0.7.0:
|
||||
* Allow `tzinfo` objects for `Timezone`
|
||||
* add URLs to `pyproject.toml`
|
||||
* suggested fix on typo
|
||||
* Correct misstatement in README
|
||||
* Fix IsDigit -> IsDigits
|
||||
* Add `Unit` type
|
||||
* Improve handling of GroupedMetadata (First try)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 9 13:13:15 UTC 2024 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
- Add %{?sle15_python_module_pythons}
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 7 00:46:14 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Initial release of 0.6.0
|
63
python-annotated-types.spec
Normal file
63
python-annotated-types.spec
Normal file
@ -0,0 +1,63 @@
|
||||
#
|
||||
# spec file for package python-annotated-types
|
||||
#
|
||||
# Copyright (c) 2024 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/
|
||||
#
|
||||
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-annotated-types
|
||||
Version: 0.7.0
|
||||
Release: 0
|
||||
Summary: Reusable constraint types to use with typing.Annotated
|
||||
License: MIT
|
||||
URL: https://github.com/annotated-types/annotated-types/
|
||||
Source: https://files.pythonhosted.org/packages/source/a/annotated-types/annotated_types-%{version}.tar.gz
|
||||
BuildRequires: %{python_module hatchling}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
PEP-593 added `typing.Annotated` as a way of adding context-specific metadata to
|
||||
existing types, and specifies that `Annotated[T, x]` _should_ be treated as `T` by
|
||||
any tool or library without special logic for `x`.
|
||||
|
||||
This package provides metadata objects which can be used to represent common
|
||||
constraints such as upper and lower bounds on scalar values and collection sizes,
|
||||
a `Predicate` marker for runtime checks, and
|
||||
descriptions of how we intend these metadata to be interpreted. In some cases,
|
||||
we also note alternative representations which do not require this package.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n annotated_types-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%{python_sitelib}/annotated_types
|
||||
%{python_sitelib}/annotated_types-%{version}.dist-info
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user