ad45a43
82aeaf1
%global modname sanction
82aeaf1
82aeaf1
Name:               python-sanction
ad45a43
Version:            0.3.1
d33d767
Release:            27%{?dist}
82aeaf1
Summary:            A simple, lightweight OAuth2 client
82aeaf1
License:            MIT
82aeaf1
URL:                http://pypi.python.org/pypi/sanction
ad45a43
Source0:            http://pypi.python.org/packages/source/s/%{modname}/%{modname}-%{version}.tar.gz
82aeaf1
82aeaf1
BuildArch:          noarch
82aeaf1
ad45a43
BuildRequires:      python3-devel
89ac9f2
BuildRequires:      python3-setuptools
ad45a43
BuildRequires:      python3-nose
ad45a43
ad45a43
7541df9
%global _description\
7541df9
python-sanction is a lightweight, dead simple client implementation of\
7541df9
the OAuth2 protocol.\
7541df9
\
7541df9
- Variations on OAuth2 client implementation range from a few hundred LOC\
7541df9
  to thousands. In a Pythonic world, there's absolutely no need for this when\
7541df9
  simply dealing with the client side of the spec. Currently, sanction sits\
7541df9
  at a whopping 65 LOC, one class. This makes the library tremendously easy\
7541df9
  to grok.\
7541df9
\
7541df9
- Most providers have varying levels of diversion from the official spec.\
7541df9
  The goal with this library is to either handle these diversions natively,\
7541df9
  or expose a method to allow client code to deal with it efficiently and\
7541df9
  effectively.\
7541df9
\
7541df9
- Three of the four OAuth2 flows should be supported by this library.\
7541df9
  Currently, only authorization code and client credential flows have been\
7541df9
  tested due to lack of other (known) implementations.\
7541df9
\
7541df9
sanction has been tested with the following OAuth2 providers:\
7541df9
\
7541df9
* Facebook (include the test API)\
7541df9
* Google\
7541df9
* Foursquare\
7541df9
* bitly\
7541df9
* GitHub\
7541df9
* StackExchange\
7541df9
* Instagram\
7541df9
* DeviantArt
82aeaf1
7541df9
%description %_description
82aeaf1
ad45a43
%package -n python3-sanction
ad45a43
Summary:            A simple, lightweight OAuth2 client
ad45a43
ad45a43
%description -n python3-sanction
ad45a43
python-sanction is a lightweight, dead simple client implementation of
ad45a43
the OAuth2 protocol.
ad45a43
ad45a43
- Variations on OAuth2 client implementation range from a few hundred LOC
ad45a43
  to thousands. In a Pythonic world, there's absolutely no need for this when
ad45a43
  simply dealing with the client side of the spec. Currently, sanction sits
ad45a43
  at a whopping 65 LOC, one class. This makes the library tremendously easy
ad45a43
  to grok.
ad45a43
ad45a43
- Most providers have varying levels of diversion from the official spec.
ad45a43
  The goal with this library is to either handle these diversions natively,
ad45a43
  or expose a method to allow client code to deal with it efficiently and
ad45a43
  effectively.
ad45a43
ad45a43
- Three of the four OAuth2 flows should be supported by this library.
ad45a43
  Currently, only authorization code and client credential flows have been
ad45a43
  tested due to lack of other (known) implementations.
ad45a43
ad45a43
sanction has been tested with the following OAuth2 providers:
ad45a43
ad45a43
* Facebook (include the test API)
ad45a43
* Google
ad45a43
* Foursquare
ad45a43
* bitly
ad45a43
* GitHub
ad45a43
* StackExchange
ad45a43
* Instagram
ad45a43
* DeviantArt
ad45a43
ad45a43
82aeaf1
%prep
82aeaf1
%setup -q -n %{modname}-%{version}
82aeaf1
82aeaf1
# Remove bundled egg-info in case it exists
82aeaf1
rm -rf %{modname}.egg-info
82aeaf1
ad45a43
82aeaf1
%build
27290db
%py3_build
ad45a43
82aeaf1
%install
27290db
%py3_install
82aeaf1
82aeaf1
%check
7c09dee
PYTHONPATH=$(pwd) nosetests-%{python3_version}
ad45a43
ad45a43
%files -n python3-sanction
ad45a43
%doc README.rst LICENSE.txt
ad45a43
%{python3_sitelib}/%{modname}/
ad45a43
%{python3_sitelib}/%{modname}-%{version}*
ad45a43
82aeaf1
%changelog
d33d767
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-27
d33d767
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
d33d767
7318ab3
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.3.1-26
7318ab3
- Rebuilt for Python 3.10
7318ab3
1bd556e
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-25
1bd556e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
1bd556e
be35695
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-24
be35695
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
be35695
c8c9d02
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-23
c8c9d02
- Rebuilt for Python 3.9
c8c9d02
f92c80b
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-22
f92c80b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f92c80b
60b45cc
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-21
60b45cc
- Rebuilt for Python 3.8.0rc1 (#1748018)
60b45cc
0131c34
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-20
0131c34
- Rebuilt for Python 3.8
0131c34
d4e702e
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-19
d4e702e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d4e702e
fe6e106
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-18
fe6e106
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
fe6e106
27290db
* Fri Oct 12 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.3.1-17
27290db
- Python2 binary package has been removed
27290db
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
27290db
3f35bec
* Wed Jul 25 2018 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.3.1-16
3f35bec
- Use the py2 version of the macros
3f35bec
adf0cda
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-15
adf0cda
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
adf0cda
30ca3f8
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-14
30ca3f8
- Rebuilt for Python 3.7
30ca3f8
de6bf54
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-13
de6bf54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
de6bf54
df2afef
* Tue Jan 30 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.3.1-12
df2afef
- Update Python 2 dependency declarations to new packaging standards
df2afef
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
df2afef
7541df9
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.3.1-11
7541df9
- Python 2 binary package renamed to python2-sanction
7541df9
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
7541df9
8052961
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-10
8052961
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8052961
082b17b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-9
082b17b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
082b17b
dfa2751
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.3.1-8
dfa2751
- Rebuild for Python 3.6
dfa2751
ce0ae35
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-7
ce0ae35
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
ce0ae35
e134c80
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-6
e134c80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e134c80
01cdbf4
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-5
01cdbf4
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
01cdbf4
5e7d915
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-4
5e7d915
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5e7d915
d026758
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-3
d026758
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d026758
7c09dee
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.3.1-2
7c09dee
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
7c09dee
ad45a43
* Mon Oct 07 2013 Ralph Bean <rbean@redhat.com> - 0.3.1-1
ad45a43
- Latest upstream.
ad45a43
- Added python3 subpackage.
ad45a43
f2f889b
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.4-2
f2f889b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f2f889b
82aeaf1
* Mon Feb 04 2013 Ralph Bean <rbean@redhat.com> - 0.1.4-1
82aeaf1
- Initial packaging for Fedora