1.3.0.
This commit is contained in:
parent
d6acc852b4
commit
d3ed18223b
@ -15,7 +15,7 @@
|
|||||||
%global modname jwt
|
%global modname jwt
|
||||||
|
|
||||||
Name: python-jwt
|
Name: python-jwt
|
||||||
Version: 1.0.1
|
Version: 1.3.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: JSON Web Token implementation in Python
|
Summary: JSON Web Token implementation in Python
|
||||||
|
|
||||||
@ -30,10 +30,16 @@ BuildRequires: python-setuptools
|
|||||||
BuildRequires: python-cryptography
|
BuildRequires: python-cryptography
|
||||||
Requires: python-cryptography
|
Requires: python-cryptography
|
||||||
|
|
||||||
|
BuildRequires: pytest
|
||||||
|
BuildRequires: python-pytest-cov
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python3-cryptography
|
BuildRequires: python3-cryptography
|
||||||
|
|
||||||
|
BuildRequires: python3-pytest
|
||||||
|
BuildRequires: python3-pytest-cov
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -58,8 +64,15 @@ encrypted JSON objects.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n PyJWT-%{version}
|
%setup -q -n PyJWT-%{version}
|
||||||
|
|
||||||
|
rm -rf setup.cfg
|
||||||
|
|
||||||
|
sed -i '/pytest-runner/d' setup.py
|
||||||
|
|
||||||
# Remove bundled egg-info in case it exists
|
# Remove bundled egg-info in case it exists
|
||||||
rm -rf %{modname}.egg-info
|
rm -rf %{modname}.egg-info
|
||||||
|
find . -name "*.pyc" -exec rm -rf {} \; || echo;
|
||||||
|
find . -name "__pycache__" -exec rm -rf {} \; || echo;
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
rm -rf %{py3dir}
|
rm -rf %{py3dir}
|
||||||
cp -a . %{py3dir}
|
cp -a . %{py3dir}
|
||||||
@ -82,15 +95,13 @@ popd
|
|||||||
%endif
|
%endif
|
||||||
%{__python2} setup.py install -O1 --skip-build --root=%{buildroot}
|
%{__python2} setup.py install -O1 --skip-build --root=%{buildroot}
|
||||||
|
|
||||||
# Tests will be included in the next release:
|
%check
|
||||||
# https://github.com/jpadilla/pyjwt/pull/95
|
py.test .
|
||||||
#%%check
|
%if 0%{?with_python3}
|
||||||
#%%{__python2} tests/test_jwt.py
|
pushd %{py3dir}
|
||||||
#%%if 0%%{?with_python3}
|
py.test-%{python3_version} .
|
||||||
#pushd %%{py3dir}
|
popd
|
||||||
#%%{__python3} tests/test_jwt.py
|
%endif
|
||||||
#popd
|
|
||||||
#%%endif
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README.md AUTHORS
|
%doc README.md AUTHORS
|
||||||
@ -109,6 +120,10 @@ popd
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jun 17 2015 Ralph Bean <rbean@redhat.com> - 1.3.0-1
|
||||||
|
- new version
|
||||||
|
- start running the test suite.
|
||||||
|
|
||||||
* Fri Mar 27 2015 Ralph Bean <rbean@redhat.com> - 1.0.1-1
|
* Fri Mar 27 2015 Ralph Bean <rbean@redhat.com> - 1.0.1-1
|
||||||
- new version
|
- new version
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user