40947a2
%global github_owner    PyCQA
40947a2
%global github_name     astroid
40947a2
a8757eb
Name:           python-astroid
811e7a3
Version:        2.0.0
420e90a
%global pre dev3
420e90a
%global pypi_ver %{version}.%{pre}
d395438
Release:        0.5%{pre}%{?dist}
811e7a3
Summary:        Common base representation of python source code for pylint and other projects
a8757eb
License:        GPLv2+
40947a2
URL:            https://github.com/%{github_owner}/%{github_name}
420e90a
Source0:        %pypi_source %{github_name} %{pypi_ver}
49343a8
811e7a3
# Requirements for tests (BuildRequires) and run (Requires)
49343a8
%global t_requires python3-lazy-object-proxy python3-six python3-wrapt
a8757eb
a8757eb
BuildArch:      noarch
811e7a3
811e7a3
BuildRequires:  python3-devel
811e7a3
BuildRequires:  python3-setuptools
811e7a3
BuildRequires:  python3-pytest
811e7a3
BuildRequires:  python3-pytest-runner
811e7a3
BuildRequires:  git-core
40947a2
BuildRequires:  %{t_requires}
092a359
a8757eb
%description
811e7a3
The aim of this module is to provide a common base representation of python
811e7a3
source code for projects such as pychecker, pyreverse, pylint...
811e7a3
It provides a compatible representation which comes from the _ast module. It
811e7a3
rebuilds the tree generated by the builtin _ast module by recursively walking
811e7a3
down the AST and building an extended ast. The new node classes have additional
811e7a3
methods and attributes for different usages. They include some support for
811e7a3
static inference and local name scopes. Furthermore, astroid builds partial
811e7a3
trees by inspecting living objects.
a8757eb
811e7a3
%package -n python3-%{github_name}
811e7a3
Summary:        %{summary}
811e7a3
Requires:       %{t_requires}
811e7a3
%{?python_provide:%python_provide python3-%{github_name}}
811e7a3
811e7a3
%description -n python3-%{github_name}
811e7a3
The aim of this module is to provide a common base representation of python
811e7a3
source code for projects such as pychecker, pyreverse, pylint...
811e7a3
It provides a compatible representation which comes from the _ast module. It
811e7a3
rebuilds the tree generated by the builtin _ast module by recursively walking
811e7a3
down the AST and building an extended ast. The new node classes have additional
811e7a3
methods and attributes for different usages. They include some support for
811e7a3
static inference and local name scopes. Furthermore, astroid builds partial
811e7a3
trees by inspecting living objects.
40947a2
811e7a3
This package provides the Python 3 implementation.
a8757eb
40947a2
a8757eb
%prep
420e90a
%autosetup -n %{github_name}-%{pypi_ver} -p1
705768c
a8757eb
a8757eb
%build
40947a2
%py3_build
a8757eb
40947a2
a8757eb
%install
40947a2
%py3_install
24d16b8
rm -rf %{buildroot}%{python3_sitelib}/astroid/tests
40947a2
40947a2
40947a2
%check
811e7a3
%{__python3} -m pytest -v
ddec428
40947a2
811e7a3
%files -n python3-%{github_name}
880935a
%doc README.rst
880935a
%license COPYING
a8757eb
%{python3_sitelib}/astroid
a8757eb
%{python3_sitelib}/astroid*.egg-info
a8757eb
a8757eb
%changelog
d395438
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-0.5dev3
d395438
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d395438
420e90a
* Fri Jun 29 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-0.4dev3
420e90a
- Update to dev3
420e90a
302320f
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-0.3dev1
302320f
- Rebuilt for Python 3.7
302320f
1355860
* Mon Jun 04 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-0.2dev1
1355860
- Update to 2.0.0dev1
1355860
811e7a3
* Mon May 21 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-0.1dev0
811e7a3
- Update to 2.0.0dev0
811e7a3
- Drop python2-astroid (that goes to it's own package in 1.6.x)
811e7a3
- Switch to pytest as does upstream
811e7a3
9a0cddd
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-3
9a0cddd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9a0cddd
ab2f8b2
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-2
ab2f8b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ab2f8b2
3f00caf
* Mon Jun 19 2017 Christian Dersch <lupinix@mailbox.org> - 1.5.3-1
3f00caf
- new version
3f00caf
d028d0f
* Mon May 29 2017 Christian Dersch <lupinix@mailbox.org> - 1.5.2-4
d028d0f
- Python 2 test fails also on F26 (I guess we need new enum34 there too)
d028d0f
2a356cc
* Mon May 29 2017 Christian Dersch <lupinix@mailbox.org> - 1.5.2-3
2a356cc
- add requirement on python-enum34 for Python 2
2a356cc
dbd38f1
* Mon May 15 2017 Christian Dersch <lupinix@mailbox.org> - 1.5.2-2
dbd38f1
- use correct github commit
64dfeef
- adjusted requirements, we need backports-functools_lru_cache now
dbd38f1
93cdb41
* Sun May 14 2017 Christian Dersch <lupinix@mailbox.org> - 1.5.2-1
93cdb41
- new version
93cdb41
Orion Poplawski b63f405
* Thu Mar 9 2017 Orion Poplawski <orion@cora.nwra.com> - 1.4.9-3
Orion Poplawski b63f405
- Minor cleanup
Orion Poplawski b63f405
1fd9827
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.9-2
1fd9827
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
1fd9827
40947a2
* Wed Dec 21 2016 Adam Williamson <awilliam@redhat.com> - 1.4.9-1
40947a2
- New release 1.4.9
40947a2
- Backport a patch from master branch to fix Python 3.6 compatibility
40947a2
- Modernize spec file somewhat
40947a2
- Rename python2 package
40947a2
- Enable tests
40947a2
e7b6a01
* Wed Dec 14 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.4.8-1
e7b6a01
- Upstream 1.4.8
e7b6a01
755ef5b
* Mon Dec 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 1.4.5-4
755ef5b
- Rebuild for Python 3.6
755ef5b
f6c69e0
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.5-3
f6c69e0
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
f6c69e0
011646d
* Wed Apr 27 2016 Brian C. Lane <bcl@redhat.com> - 1.4.5-2
011646d
- Ignore PyGIWarning (#1330651)
011646d
  Upstream PR https://github.com/PyCQA/astroid/pull/333
011646d
1932cf6
* Thu Apr 07 2016 Brian C. Lane <bcl@redhat.com> 1.4.5-1
1932cf6
- Upstream 1.4.5
1932cf6
20d2ee1
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.4-2
20d2ee1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
20d2ee1
d8eaf8a
* Mon Jan 18 2016 Brian C. Lane <bcl@redhat.com> 1.4.4-1
d8eaf8a
- Upstream 1.4.4
d8eaf8a
880935a
* Mon Jan 04 2016 Brian C. Lane <bcl@redhat.com> 1.4.3-1
880935a
- Upstream 1.4.3
880935a
- Drop included patches
880935a
- Drop running iconv on README.rst
880935a
6076f62
* Fri Dec 11 2015 Brian C. Lane <bcl@redhat.com> 1.4.1-2
6076f62
- Check for flags/enum types before checking for int
6076f62
  Upstream PR https://github.com/PyCQA/astroid/pull/287
6076f62
092a359
* Thu Dec 10 2015 Brian C. Lane <bcl@redhat.com> 1.4.1-1
092a359
- Upstream 1.4.1
092a359
- Drop included patches
092a359
- Drop requirement on logilab-common
092a359
- Add requirement on python-wrapt and python-lazy-object-proxy
092a359
- New upstream source from GitHub
092a359
- UnicodeEncodeError in AsStringVisitor.visit_functiondef
092a359
  https://bitbucket.org/logilab/astroid/issues/273/regression-unicodeencodeerror-in
011646d
- Remove %%check section, the full tox tests cannot be run because of un-packaged requirements
092a359
69a0ac9
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.7-2
69a0ac9
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
69a0ac9
25bdde2
* Thu Jul 30 2015 Brian C. Lane <bcl@redhat.com> 1.3.7-1
25bdde2
- Upstream 1.3.7
25bdde2
- Fix for subprocess communicate() timeout argument
25bdde2
  https://bitbucket.org/logilab/astroid/pull-requests/83
25bdde2
- Fix for logilab-common required version in astroid
25bdde2
dea36fc
* Tue Jul 14 2015 Brian C. Lane <bcl@redhat.com> 1.3.6-5
dea36fc
- Fixes for gi.require_version from dshea
dea36fc
  https://bitbucket.org/logilab/astroid/pull-request/78
dea36fc
0412301
* Tue Jul 07 2015 Brian C. Lane <bcl@redhat.com> 1.3.6-4
0412301
- Helps if you actually APPLY the patch in question.
0412301
946013e
* Tue Jul 07 2015 Brian C. Lane <bcl@redhat.com> 1.3.6-3
946013e
- Fix for pygi deprecation warnings
946013e
  https://bitbucket.org/logilab/astroid/issue/86
946013e
966dd0e
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.6-2
966dd0e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
966dd0e
df03642
* Tue Apr 28 2015 Brian C. Lane <bcl@redhat.com> 1.3.6-1
df03642
- Upstream v1.3.6
df03642
- Fix for python3.4 multiprocessing
df03642
  https://bitbucket.org/logilab/pylint/issue/265/
df03642
24d16b8
* Thu Jan 29 2015 Brian C. Lane <bcl@redhat.com> 1.3.4-2
24d16b8
- Adjust paths for tests
24d16b8
a1bbe15
* Wed Jan 28 2015 Brian C. Lane <bcl@redhat.com> 1.3.4-1
a1bbe15
- Upstream v1.3.4
a1bbe15
  Drop patches now included in upstream
a1bbe15
06ae2b9
* Fri Oct 17 2014 Brian C. Lane <bcl@redhat.com> 1.2.1-2
06ae2b9
- Add patch to fix GLib detection (#1141440)
06ae2b9
  https://bitbucket.org/logilab/astroid/issue/49
06ae2b9
037b8c5
* Fri Oct 03 2014 Brian C. Lane <bcl@redhat.com> 1.2.1-1
037b8c5
- Upstream v1.2.1
037b8c5
  Drop patches now included in upstream
037b8c5
24da057
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-5
24da057
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
24da057
6dc9595
* Wed May 14 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.1-4
6dc9595
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
6dc9595
36d0f13
* Wed Apr 23 2014 Brian C. Lane <bcl@redhat.com> 1.1-3
36d0f13
- Add patch to fix metaclass recursion (upstream bug #25)
36d0f13
  https://bitbucket.org/logilab/astroid/issue/25/runtimeerror-maximum-recursion-depth
36d0f13
f555be1
* Tue Apr 22 2014 Brian C. Lane <bcl@redhat.com> 1.1-2
f555be1
- Add missing source file
f555be1
275cd16
* Tue Apr 22 2014 Brian C. Lane <bcl@redhat.com> 1.1-1
275cd16
- Upstream v1.1
275cd16
  Drop patches now included in upstream
275cd16
705768c
* Tue Apr 01 2014 Cole Robinson <crobinso@redhat.com> - 1.0.1-3
705768c
- Fix some gobject introspection false positives (bz #1079643)
705768c
9f85c4f
* Fri Feb 28 2014 Brian C. Lane <bcl@redhat.com> 1.0.1-2
9f85c4f
- Add patch to fix gobject introspection of illegal symbol names (dshea)
9f85c4f
defa0d7
* Thu Feb 27 2014 Brian C. Lane <bcl@redhat.com> 1.0.1-1
defa0d7
- Upstream v1.0.1
defa0d7
  Drop patch included in upstream
defa0d7
ed427cd
* Thu Oct 24 2013 Brian C. Lane <bcl@redhat.com> 1.0.0-6
ed427cd
- Switching on python3 support
ed427cd
44cb3de
* Tue Sep 17 2013 Brian C. Lane <bcl@redhat.com> 1.0.0-5
44cb3de
- Switch to versioned obsolete. (#996780)
44cb3de
1c86835
* Fri Sep 13 2013 Brian C. Lane <bcl@redhat.com> 1.0.0-4
1c86835
- Fix wrong obsoletes. Should be python-logilab-astng (#1007916)
1c86835
0b3b288
* Tue Sep 03 2013 Brian C. Lane <bcl@redhat.com> 1.0.0-3
0b3b288
- Add upstream patch for TypeError bug
0b3b288
a8757eb
* Fri Aug 16 2013 Brian C. Lane <bcl@redhat.com> 1.0.0-2
a8757eb
- Removed BuildRoot from spec
a8757eb
a8757eb
* Tue Aug 13 2013 Brian C. Lane <bcl@redhat.com> 1.0.0-1
a8757eb
- Rename package to python-astroid
a8757eb
- Upstream v1.0.0 
a8757eb
a8757eb
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.24.1-3
a8757eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a8757eb
a8757eb
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.24.1-2
a8757eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a8757eb
a8757eb
* Thu Jan 10 2013 Brian C. Lane <bcl@redhat.com> 0.24.1-1
a8757eb
- Upstream v0.24.1
a8757eb
- Add python3-logilab-astng subpackage to spec. Not ready to turn it on yet
a8757eb
  due to this upstream bug: http://www.logilab.org/ticket/110213
a8757eb
a8757eb
* Fri Aug 03 2012 Brian C. Lane <bcl@redhat.com> 0.24.0-1
a8757eb
- Upstream v0.24.0
a8757eb
a8757eb
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23.1-2
a8757eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a8757eb
a8757eb
* Wed Mar 14 2012 Brian C. Lane <bcl@redhat.com> 0.23.1-1
a8757eb
- Upstream v0.23.1
a8757eb
a8757eb
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23.0-2
a8757eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a8757eb
a8757eb
* Fri Nov 18 2011 Brian C. Lane <bcl@redhat.com> - 0.23.0-1
a8757eb
- Upstream v0.23.0
a8757eb
a8757eb
* Fri Jul 29 2011 Brian C. Lane <bcl@redhat.com> - 0.22.0-1
a8757eb
- Upstream v0.22.0
a8757eb
a8757eb
* Mon Mar 28 2011 Brian C. Lane <bcl@redhat.com> - 0.21.1-1
a8757eb
- Upstream 0.21.1
a8757eb
- Add unit tests to spec
a8757eb
a8757eb
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21.0-3
a8757eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a8757eb
a8757eb
* Mon Dec 06 2010 Brian C. Lane <bcl@redhat.com> - 0.21.0-2
a8757eb
- Add version to requirement for python-logilab-common so that updates will
a8757eb
  work correctly.
a8757eb
a8757eb
* Mon Nov 29 2010 Brian C. Lane <bcl@redhat.com> - 0.21.0-1
a8757eb
- Upstream 0.21.0
a8757eb
a8757eb
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.20.1-2
a8757eb
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
a8757eb
a8757eb
* Thu Jul 08 2010 Brian C. Lane <bcl@redhat.com> - 0.20.1-1
a8757eb
- Upstream 0.20.1
a8757eb
a8757eb
* Thu Mar 25 2010 Brian C. Lane <bcl@redhat.com> - 0.20.0-2
a8757eb
- Added python-setuptools to BuildRequires
a8757eb
a8757eb
* Thu Mar 25 2010 Brian C. Lane <bcl@redhat.com> - 0.20.0-1
a8757eb
- Upstream 0.20.0
a8757eb
a8757eb
* Sun Aug 30 2009 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.19.1-1
a8757eb
- Upstream 0.19.1 (bugfixes)
a8757eb
a8757eb
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19.0-2
a8757eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a8757eb
a8757eb
* Wed Jun 17 2009 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.19.0-1
a8757eb
- Upstream 0.19.0
a8757eb
- Fixes for better support of python 2.5 and 2.6
a8757eb
a8757eb
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17.4-2
a8757eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a8757eb
a8757eb
* Sat Dec 27 2008 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.17.4-1
a8757eb
- Upstream 0.17.4
a8757eb
a8757eb
* Thu Jan 17 2008 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.17.2-1
a8757eb
- Upstream 0.17.2
a8757eb
- Package .egg-info file
a8757eb
a8757eb
* Mon Dec 24 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.17.1-1
a8757eb
- Upstream 0.17.1
a8757eb
- Adjust license to a more specific GPLv2+
a8757eb
- Fix docs to be valid utf-8
a8757eb
a8757eb
* Sun Apr 01 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.17.0-1
a8757eb
- Upstream 0.17.0
a8757eb
a8757eb
* Sun Dec 17 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.16.3-1
a8757eb
- Upstream 0.16.3
a8757eb
a8757eb
* Tue Sep 26 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.16.1-2
a8757eb
- Setting Provides/Obsoletes as per guidelines.
a8757eb
a8757eb
* Tue Sep 26 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.16.1-1
a8757eb
- Renaming package python-logilab-astng from python-astng. Should have done
a8757eb
  a while ago.
a8757eb
- Upstream version 0.16.1
a8757eb
a8757eb
* Mon May 01 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.16.0-0
a8757eb
- Version 0.16.0
a8757eb
a8757eb
* Sun Mar 12 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.15.1-1
a8757eb
- Version 0.15.1
a8757eb
a8757eb
* Thu Jan 12 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.14.0-1
a8757eb
- Version 0.14.0
a8757eb
- Drop the modname patch
a8757eb
a8757eb
* Tue Nov 15 2005 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.13.1-2
a8757eb
- Patch for the modname traceback
a8757eb
a8757eb
* Sat Nov 12 2005 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.13.1-1
a8757eb
- Fedora Extras import
a8757eb
- Disttagging
a8757eb
a8757eb
* Mon Nov 07 2005 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.13.1-0.1
a8757eb
- Version 0.13.1
a8757eb
- Remove our own GPL license text, since it's now included.
a8757eb
a8757eb
* Sun Nov 06 2005 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.13.0-0.1
a8757eb
- Initial packaging.