diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-typedpy.spec | 321 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 323 insertions, 0 deletions
@@ -0,0 +1 @@ +/typedpy-2.22.4.tar.gz diff --git a/python-typedpy.spec b/python-typedpy.spec new file mode 100644 index 0000000..6f70f0e --- /dev/null +++ b/python-typedpy.spec @@ -0,0 +1,321 @@ +%global _empty_manifest_terminate_build 0 +Name: python-typedpy +Version: 2.22.4 +Release: 1 +Summary: Type-safe Python +License: MIT +URL: http://github.com/loyada/typedpy +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/20/7c/8d54b7ddf6d2f670e996daec87cdc7e8564e2197f35c515d75543f5da1b9/typedpy-2.22.4.tar.gz +BuildArch: noarch + + +%description +[![][travis img]][travis] +[![][GA img]][GA] + +[![][docs img]][docs] + +[![][coverage img]][coverage] +[![][mutation img]][mutation] + +![pylint img] + + +[![][license img]][license] + +[![][conda-forge img]][conda-forge] +[![][pypi img]][pypi] + + +## Typedpy - Strict Type System for Python + +``typedpy`` is a library for type-safe, strict, Python structures. It supports Python 3.6+. + +### Features + +* Full featured, sophisticated, class-based type system + +* Includes Python stubs generator that provides static type checking within the IDE + +* Supports JSON schema draft4 features, including mapping schema-to-code and code-to-schema + +* Serialization, deserialization between JSON-like dict and typedpy objects, including custom mapping. Support for pickling. + +* Easily extensible. [Wrapper of any class as a Field](https://github.com/loyada/typedpy/tree/master/tests/test_typed_field_creator.py) + +* [Inheritance/mixins of fields/classes](https://github.com/loyada/typedpy/tree/master/tests/test_inheritance.py) + +* Embedded structures within structures/fields and fields within fields + +* Supports the common collections + +* [Immutable Structures/Fields](https://github.com/loyada/typedpy/tree/master/tests/test_immutable.py) + +* Clean Java-generics-like definitions, but more flexible. e.g.: Set[AnyOf[Integer(minimum=10), Array]], Map[String(maxLength=8), String] + +* No dependencies on third-party libs + +**There are many examples under "tests/".** + + +#### Documentation + +[Detailed documentation is here](http://typedpy.readthedocs.io) + +#### Installation + +[PyPI page is here](https://pypi.python.org/pypi/typedpy) + +[Conda-Forge page is here](https://anaconda.org/conda-forge/typedpy) + +[travis]:https://travis-ci.com/loyada/typedpy +[travis img]:https://travis-ci.com/loyada/typedpy.svg?branch=master + +[GA]:https://github.com/loyada/typedpy/actions +[GA img]:https://github.com/loyada/typedpy/actions/workflows/main.yml/badge.svg + +[docs img]:https://readthedocs.org/projects/typedpy/badge/?version=latest +[docs]:https://typedpy.readthedocs.io/en/latest/?badge=latest + +[license]:LICENSE.txt +[license img]:https://img.shields.io/badge/License-Apache%202-blue.svg + +[coverage]:https://github.com/loyada/typedpy/blob/master/coverage.txt +[coverage img]:https://raw.githubusercontent.com/loyada/typedpy/master/coverage.svg + +[mutation]:https://github.com/loyada/typedpy/blob/master/mutpy-report.txt +[mutation img]:https://raw.githubusercontent.com/loyada/typedpy/master/mutation-testing.svg + +[pylint img]:https://raw.githubusercontent.com/loyada/typedpy/master/pylint.svg + +[conda-forge]:https://anaconda.org/conda-forge/typedpy/ +[conda-forge img]:https://anaconda.org/conda-forge/typedpy/badges/installer/conda.svg + +[pypi]:https://pypi.org/project/typedpy/ +[pypi img]:https://img.shields.io/pypi/v/typedpy.svg + + +%package -n python3-typedpy +Summary: Type-safe Python +Provides: python-typedpy +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-typedpy +[![][travis img]][travis] +[![][GA img]][GA] + +[![][docs img]][docs] + +[![][coverage img]][coverage] +[![][mutation img]][mutation] + +![pylint img] + + +[![][license img]][license] + +[![][conda-forge img]][conda-forge] +[![][pypi img]][pypi] + + +## Typedpy - Strict Type System for Python + +``typedpy`` is a library for type-safe, strict, Python structures. It supports Python 3.6+. + +### Features + +* Full featured, sophisticated, class-based type system + +* Includes Python stubs generator that provides static type checking within the IDE + +* Supports JSON schema draft4 features, including mapping schema-to-code and code-to-schema + +* Serialization, deserialization between JSON-like dict and typedpy objects, including custom mapping. Support for pickling. + +* Easily extensible. [Wrapper of any class as a Field](https://github.com/loyada/typedpy/tree/master/tests/test_typed_field_creator.py) + +* [Inheritance/mixins of fields/classes](https://github.com/loyada/typedpy/tree/master/tests/test_inheritance.py) + +* Embedded structures within structures/fields and fields within fields + +* Supports the common collections + +* [Immutable Structures/Fields](https://github.com/loyada/typedpy/tree/master/tests/test_immutable.py) + +* Clean Java-generics-like definitions, but more flexible. e.g.: Set[AnyOf[Integer(minimum=10), Array]], Map[String(maxLength=8), String] + +* No dependencies on third-party libs + +**There are many examples under "tests/".** + + +#### Documentation + +[Detailed documentation is here](http://typedpy.readthedocs.io) + +#### Installation + +[PyPI page is here](https://pypi.python.org/pypi/typedpy) + +[Conda-Forge page is here](https://anaconda.org/conda-forge/typedpy) + +[travis]:https://travis-ci.com/loyada/typedpy +[travis img]:https://travis-ci.com/loyada/typedpy.svg?branch=master + +[GA]:https://github.com/loyada/typedpy/actions +[GA img]:https://github.com/loyada/typedpy/actions/workflows/main.yml/badge.svg + +[docs img]:https://readthedocs.org/projects/typedpy/badge/?version=latest +[docs]:https://typedpy.readthedocs.io/en/latest/?badge=latest + +[license]:LICENSE.txt +[license img]:https://img.shields.io/badge/License-Apache%202-blue.svg + +[coverage]:https://github.com/loyada/typedpy/blob/master/coverage.txt +[coverage img]:https://raw.githubusercontent.com/loyada/typedpy/master/coverage.svg + +[mutation]:https://github.com/loyada/typedpy/blob/master/mutpy-report.txt +[mutation img]:https://raw.githubusercontent.com/loyada/typedpy/master/mutation-testing.svg + +[pylint img]:https://raw.githubusercontent.com/loyada/typedpy/master/pylint.svg + +[conda-forge]:https://anaconda.org/conda-forge/typedpy/ +[conda-forge img]:https://anaconda.org/conda-forge/typedpy/badges/installer/conda.svg + +[pypi]:https://pypi.org/project/typedpy/ +[pypi img]:https://img.shields.io/pypi/v/typedpy.svg + + +%package help +Summary: Development documents and examples for typedpy +Provides: python3-typedpy-doc +%description help +[![][travis img]][travis] +[![][GA img]][GA] + +[![][docs img]][docs] + +[![][coverage img]][coverage] +[![][mutation img]][mutation] + +![pylint img] + + +[![][license img]][license] + +[![][conda-forge img]][conda-forge] +[![][pypi img]][pypi] + + +## Typedpy - Strict Type System for Python + +``typedpy`` is a library for type-safe, strict, Python structures. It supports Python 3.6+. + +### Features + +* Full featured, sophisticated, class-based type system + +* Includes Python stubs generator that provides static type checking within the IDE + +* Supports JSON schema draft4 features, including mapping schema-to-code and code-to-schema + +* Serialization, deserialization between JSON-like dict and typedpy objects, including custom mapping. Support for pickling. + +* Easily extensible. [Wrapper of any class as a Field](https://github.com/loyada/typedpy/tree/master/tests/test_typed_field_creator.py) + +* [Inheritance/mixins of fields/classes](https://github.com/loyada/typedpy/tree/master/tests/test_inheritance.py) + +* Embedded structures within structures/fields and fields within fields + +* Supports the common collections + +* [Immutable Structures/Fields](https://github.com/loyada/typedpy/tree/master/tests/test_immutable.py) + +* Clean Java-generics-like definitions, but more flexible. e.g.: Set[AnyOf[Integer(minimum=10), Array]], Map[String(maxLength=8), String] + +* No dependencies on third-party libs + +**There are many examples under "tests/".** + + +#### Documentation + +[Detailed documentation is here](http://typedpy.readthedocs.io) + +#### Installation + +[PyPI page is here](https://pypi.python.org/pypi/typedpy) + +[Conda-Forge page is here](https://anaconda.org/conda-forge/typedpy) + +[travis]:https://travis-ci.com/loyada/typedpy +[travis img]:https://travis-ci.com/loyada/typedpy.svg?branch=master + +[GA]:https://github.com/loyada/typedpy/actions +[GA img]:https://github.com/loyada/typedpy/actions/workflows/main.yml/badge.svg + +[docs img]:https://readthedocs.org/projects/typedpy/badge/?version=latest +[docs]:https://typedpy.readthedocs.io/en/latest/?badge=latest + +[license]:LICENSE.txt +[license img]:https://img.shields.io/badge/License-Apache%202-blue.svg + +[coverage]:https://github.com/loyada/typedpy/blob/master/coverage.txt +[coverage img]:https://raw.githubusercontent.com/loyada/typedpy/master/coverage.svg + +[mutation]:https://github.com/loyada/typedpy/blob/master/mutpy-report.txt +[mutation img]:https://raw.githubusercontent.com/loyada/typedpy/master/mutation-testing.svg + +[pylint img]:https://raw.githubusercontent.com/loyada/typedpy/master/pylint.svg + +[conda-forge]:https://anaconda.org/conda-forge/typedpy/ +[conda-forge img]:https://anaconda.org/conda-forge/typedpy/badges/installer/conda.svg + +[pypi]:https://pypi.org/project/typedpy/ +[pypi img]:https://img.shields.io/pypi/v/typedpy.svg + + +%prep +%autosetup -n typedpy-2.22.4 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-typedpy -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 2.22.4-1 +- Package Spec generated @@ -0,0 +1 @@ +fd29e5ed217f3381295b7c6473dd636b typedpy-2.22.4.tar.gz |
