mirror of
https://abf.rosa.ru/djam/python-jsonschema.git
synced 2025-02-23 16:32:49 +00:00
Update to build for py3
This commit is contained in:
parent
99ee65dda4
commit
63ba52330c
1 changed files with 34 additions and 0 deletions
|
@ -13,19 +13,53 @@ BuildRequires: pkgconfig(python)
|
||||||
BuildRequires: pythonegg(nose)
|
BuildRequires: pythonegg(nose)
|
||||||
BuildRequires: pythonegg(mock)
|
BuildRequires: pythonegg(mock)
|
||||||
|
|
||||||
|
BuildRequires: pkgconfig(python3)
|
||||||
|
BuildRequires: python3egg(nose)
|
||||||
|
BuildRequires: python3egg(mock)
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
jsonschema is JSON Schema validator currently based on
|
jsonschema is JSON Schema validator currently based on
|
||||||
http://tools.ietf.org/html/draft-zyp-json-schema-03
|
http://tools.ietf.org/html/draft-zyp-json-schema-03
|
||||||
|
|
||||||
|
#------------------------------------------------------------------
|
||||||
|
|
||||||
|
%package -n python3-%{oname}
|
||||||
|
Group: Development/Python
|
||||||
|
|
||||||
|
%description -n python3-%{oname}
|
||||||
|
Python 3.4 introduced official support for enumerations. This is a
|
||||||
|
backport of that feature to Python 3.3, 3.2, 3.1, 2.7, 2.5, 2.5, and 2.4.
|
||||||
|
|
||||||
|
An enumeration is a set of symbolic names (members) bound to unique,
|
||||||
|
constant values. Within an enumeration, the members can be compared by
|
||||||
|
identity, and the enumeration itself can be iterated over.
|
||||||
|
|
||||||
|
This module defines two enumeration classes that can be used to define
|
||||||
|
unique sets of names and values: Enum and IntEnum. It also defines one
|
||||||
|
decorator, unique, that ensures only unique member names are present
|
||||||
|
in an enumeration.
|
||||||
|
|
||||||
|
%files -n python3-%{oname}
|
||||||
|
%doc CHANGELOG.rst COPYING README.rst
|
||||||
|
%{_bindir}/jsonschema
|
||||||
|
%{py3_puresitedir}/jsonschema/*.py*
|
||||||
|
%{py3_puresitedir}/jsonschema/tests/*.py*
|
||||||
|
%{py3_puresitedir}/jsonschema*.egg-info
|
||||||
|
%{py3_puresitedir}/jsonschema/schemas/draft*.json
|
||||||
|
|
||||||
|
#------------------------------------------------------------------
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{oname}-%{version}
|
%setup -q -n %{oname}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
python setup.py build
|
||||||
|
python3 setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --root=%{buildroot}
|
python setup.py install --root=%{buildroot}
|
||||||
|
python3 setup.py install --root=%{buildroot}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{_bindir}/nosetests-2* -v || :
|
%{_bindir}/nosetests-2* -v || :
|
||||||
|
|
Loading…
Add table
Reference in a new issue