1- Vendor: Microsoft Corporation
2- Distribution: Azure Linux
3- # Remove when globs in setup.py work.
4- %{?python_disable_dependency_generator }
51
6- %global github_owner PyCQA
7- %global github_name astroid
8- %global commit ace7b2967ea762ec43fc7be8ab9c8007564d9be2
9- %{?commit:%global shortcommit %(c= %{commit }; echo ${c:0:7})}
2+ %global srcname astroid
103
114Name: python-astroid
12- Version: 2.3.3
13- Release: 8%{?dist }
5+ # Note: please check that this doesn't break pylint before committing and building! -GC
6+ Version: 3.3.8
7+ Release: 2%{?dist }
148Summary: Common base representation of python source code for pylint and other projects
15- License: GPLv2+
16- URL : https://github.com/%{ github_owner }/%{ github_name }
17- Source0 : https://github.com/PyCQA/astroid/archive/%{ commit }/astroid-%{ shortcommit }.tar.gz# /python-astroid-%{shortcommit}.tar.gz
18- Patch0 : noglobs.patch
19-
9+ License: LGPL-2.1 -or-later
10+ Vendor : Microsoft Corporation
11+ Distribution : Azure Linux
12+ URL : https://pypi.org/project/astroid/
13+ Source0: https://github.com/pylint-dev/%{ srcname }/archive/v%{ version }/%{ srcname }-%{ version }.tar.gz# /%{name}-%{version}.tar.gz
2014BuildArch: noarch
2115
2216BuildRequires: python3-devel
23- BuildRequires: python3-setuptools
24- BuildRequires: python3-lazy-object-proxy
2517BuildRequires: python3-pytest
26- BuildRequires: python3-pytest-runner
27- BuildRequires: python3-six
28- BuildRequires: python3-typed_ast >= 1.3.0
29- BuildRequires: python3-wrapt
30- BuildRequires: git-core
18+ BuildRequires: python3-setuptools
19+ BuildRequires: python3-pip
20+ BuildRequires: python3-wheel
3121
3222%global _description %{expand:
3323The aim of this module is to provide a common base representation of python
@@ -41,44 +31,199 @@ trees by inspecting living objects.}
4131
4232%description %_description
4333
44- %package -n python3-%{github_name }
34+ %package -n python3-%{srcname }
4535Summary: %{summary }
46- %{?python_provide:%python_provide python3-%{github_name }}
47- Requires: python3-lazy-object-proxy
48- Requires: python3-wrapt
49- Requires: python3-typed_ast
50- Requires: python3-six
36+ %{?python_provide:%python_provide python3-%{srcname }}
5137
52- %description -n python3-%{github_name } %_description
38+ %description -n python3-%{srcname } %_description
5339
5440%prep
55- %autosetup -n astroid-%{commit } -p0
56- sed -i /six/d tox.ini
57- sed -i /six/d astroid/__pkginfo__.py
41+ %autosetup -n %{srcname }-%{version } -p1
5842
59- %build
60- %py3_build
43+ %generate_buildrequires
44+ %pyproject_buildrequires
6145
46+ %build
47+ %pyproject_wheel
6248
6349%install
64- %py3_install
65- rm -rf %{buildroot }%{python3_sitelib }/astroid/tests
50+ %pyproject_install
51+ # https://github.com/pylint-dev/astroid/pull/2156#issuecomment-1612640531
52+ rm -rf %{buildroot }%{python3_sitelib }/tests
6653
54+ %check
55+ %{pytest } -v
6756
68- #%check
69- #%{__python3} -m pytest -v
70-
71-
72- %files -n python3-%{github_name }
73- %doc README.rst
74- %license COPYING
57+ %files -n python3-%{srcname }
58+ %license LICENSE
7559%{python3_sitelib }/astroid
76- %{python3_sitelib }/astroid* .egg -info
60+ %{python3_sitelib }/astroid* .dist -info/
7761
7862%changelog
79- * Thu Oct 14 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 2.3.3-8
80- - Initial CBL-Mariner import from Fedora 32 (license: MIT).
81- - Converting the 'Release' tag to the '[number].[distribution]' format.
63+ * Tue Feb 11 2025 Akhila Guruju <v-guakhila@microsoft.com> - 3.3.8-2
64+ - Initial Azure Linux import from Fedora 41 (license: MIT).
65+ - License verified.
66+ - Added 'BuildRequires: python3-pip python3-wheel'
67+
68+ * Mon Dec 30 2024 Gwyn Ciesla <gwync@protonmail.com> - 3.3.8-1
69+ - 3.3.8
70+
71+ * Sun Dec 22 2024 Gwyn Ciesla <gwync@protonmail.com> - 3.3.7-1
72+ - 3.3.7
73+
74+ * Tue Dec 10 2024 Karolina Surma <ksurma@redhat.com> - 3.3.6-3
75+ - Use the %%pytest macro - it's the recommended way
76+
77+ * Tue Dec 10 2024 Karolina Surma <ksurma@redhat.com> - 3.3.6-2
78+ - All tests pass with Python 3.13 now
79+
80+ * Mon Dec 09 2024 Gwyn Ciesla <gwync@protonmail.com> - 3.3.6-1
81+ - 3.3.6
82+
83+ * Mon Oct 07 2024 Gwyn Ciesla <gwync@protonmail.com> - 3.3.5-1
84+ - 3.3.5
85+
86+ * Tue Sep 24 2024 Gwyn Ciesla <gwync@protonmail.com> - 3.3.4-1
87+ - 3.3.4
88+
89+ * Fri Sep 20 2024 Gwyn Ciesla <gwync@protonmail.com> - 3.3.3-1
90+ - 3.3.3
91+
92+ * Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.3-2
93+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
94+
95+ * Tue Jul 16 2024 Gwyn Ciesla <gwync@protonmail.com> - 3.2.3-1
96+ - 3.2.3
97+
98+ * Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 3.2.2-3
99+ - Rebuilt for Python 3.13
100+
101+ * Sun Jun 02 2024 Miro Hrončok <miro@hroncok.cz> - 3.2.2-2
102+ - Deselect tests failing with Python 3.13
103+
104+ * Mon May 20 2024 Gwyn Ciesla <gwync@protonmail.com> - 3.2.2-1
105+ - 3.2.2
106+
107+ * Fri May 17 2024 Gwyn Ciesla <gwync@protonmail.com> - 3.2.1-2
108+ - 3.2.1
109+
110+ * Fri May 17 2024 Gwyn Ciesla <gwync@protonmail.com> - 3.2.1-1
111+ - 3.2.1
112+
113+ * Mon Feb 26 2024 Gwyn Ciesla <gwync@protonmail.com> - 3.1.0-1
114+ - 3.1.0
115+
116+ * Mon Feb 05 2024 Gwyn Ciesla <gwync@protonmail.com> - 3.0.3-1
117+ - 3.0.3
118+
119+ * Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-3
120+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
121+
122+ * Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-2
123+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
124+
125+ * Wed Dec 13 2023 Gwyn Ciesla <gwync@protonmail.com> - 3.0.2-1
126+ - 3.0.2
127+
128+ * Mon Oct 16 2023 Gwyn Ciesla <gwync@protonmail.com> - 3.0.1-1
129+ - 3.0.1
130+
131+ * Tue Oct 03 2023 Gwyn Ciesla <gwync@protonmail.com> - 3.0.0-1
132+ - 3.0.0
133+
134+
135+ * Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.3-2
136+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
137+
138+ * Mon Jan 10 2022 Gwyn Ciesla <gwync@protonmail.com> - 2.9.3-1
139+ - 2.9.3
140+
141+ * Thu Jan 06 2022 Gwyn Ciesla <gwync@protonmail.com> - 2.9.2-2
142+ - Bump EVR
143+
144+ * Tue Jan 04 2022 Gwyn Ciesla <gwync@protonmail.com> - 2.9.2-1
145+ - 2.9.2
146+
147+ * Mon Nov 22 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.9.0-1
148+ - 2.9.0
149+
150+ * Fri Nov 12 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.8.5-1
151+ - 2.8.5
152+
153+ * Tue Oct 26 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.8.4-1
154+ - 2.8.4
155+
156+ * Mon Oct 18 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.8.3-1
157+ - 2.8.3
158+
159+ * Fri Oct 08 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.8.2-1
160+ - 2.8.2
161+
162+ * Wed Sep 15 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.7.2-1
163+ - 2.7.2
164+
165+ * Wed Aug 04 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.6.6-1
166+ - 2.6.6
167+
168+ * Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.5-2
169+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
170+
171+ * Wed Jul 21 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.6.5-1
172+ - 2.6.5
173+
174+ * Tue Jul 20 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.6.4-1
175+ - 2.6.4
176+
177+ * Wed Jun 30 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.6.2-1
178+ - 2.6.2
179+
180+ * Tue Jun 29 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.6.1-1
181+ - 2.6.1
182+
183+ * Tue Jun 08 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.5.8-1
184+ - 2.5.8
185+
186+ * Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.5.7-2
187+ - Rebuilt for Python 3.10
188+
189+ * Tue Jun 01 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.5.7-1
190+ - 2.5.7
191+
192+ * Mon Apr 26 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.5.6-1.git36dda3f
193+ - 2.5.6
194+
195+ * Mon Apr 12 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.5.3-1.git55953b3
196+ - 2.5.3
197+
198+ * Mon Mar 29 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.5.2-1.gitc3b58a3
199+ - 2.5.2
200+
201+ * Mon Mar 01 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.5.1-1.git79d7237
202+ - 2.5.1
203+
204+ * Wed Feb 24 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.5-2.git0f97f79
205+ - Bump EVR
206+
207+ * Tue Feb 16 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.5-1.git0f97f79
208+ - 2.5
209+
210+ * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-3.git2d25e84
211+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
212+
213+ * Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-2.git2d25e84
214+ - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
215+
216+ * Fri Jun 19 2020 Gwyn Ciesla <gwync@protonmail.com> - 2.4.2-1
217+ - 2.4.2
218+
219+ * Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 2.4.1-2.gita672051
220+ - Rebuilt for Python 3.9
221+
222+ * Tue May 05 2020 Gwyn Ciesla <gwync@protonmail.com> - 2.4.1-1
223+ - 2.4.1
224+
225+ * Tue Apr 28 2020 Gwyn Ciesla <gwync@protonmail.com> - 2.4.0-1
226+ - 2.4.0
82227
83228* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-7.gitace7b29
84229- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
@@ -445,3 +590,4 @@ rm -rf %{buildroot}%{python3_sitelib}/astroid/tests
445590
446591* Sun Nov 06 2005 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.13.0-0.1
447592- Initial packaging.
593+
0 commit comments