Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:jayvdb:django
python-pyxb
python-pyxb.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-pyxb.spec of Package python-pyxb
# # spec file for package python-pyxb # # Copyright (c) 2020 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-%{**}} Name: python-pyxb Version: 1.2.6 Release: 0 Summary: Python XML Schema Bindings License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/pabigot/pyxb Source: https://files.pythonhosted.org/packages/source/P/PyXB/PyXB-%{version}.tar.gz Patch0: pr_97.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch Requires(post): update-alternatives Requires(postun): update-alternatives %python_subpackages %description PyXB is a pure `Python <http://www.python.org>`_ package that generates Python code for classes that correspond to data structures defined by `XMLSchema <http://www.w3.org/XML/Schema>`_. In concept it is similar to `JAXB <http://en.wikipedia.org/wiki/JAXB>`_ for Java and `CodeSynthesis XSD <http://www.codesynthesis.com/products/xsd/>`_ for C++. The major goals of PyXB are: * Provide a generated Python interface that is "Pythonic", meaning similar to one that would have been hand-written: + Attributes and elements are Python properties, with name conflicts resolved in favor of elements + Elements with maxOccurs larger than 1 are stored as Python lists + Bindings for type extensions inherit from the binding for the base type + Enumeration constraints are exposed as class (constant) variables * Support bi-directional conversion (document to Python and back) * Allow easy customization of the generated bindings to provide functionality along with content * Support all XMLSchema features that are in common use, including: + complex content models (nested all/choice/sequence) + cross-namespace dependencies + include and import directives + constraints on simple types %prep %setup -q -n PyXB-%{version} %build %python_build %install %python_install %python_clone -a %{buildroot}%{_bindir}/pyxb %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %python_exec setup.py test %post %python_install_alternative pyxb %postun %python_uninstall_alternative pyxb %files %{python_files} %{python_sitelib}/* %python_alternative %{_bindir}/pyxbdump %python_alternative %{_bindir}/pyxbgen %python_alternative %{_bindir}/pyxbwsdl %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor