%global common_description %{expand: Jedi is a static analysis tool for Python that can be used in IDEs/editors. Its historic focus is autocompletion, but does static analysis for now as well. Jedi is fast and is very well tested. It understands Python on a deeper level than all other static analysis frameworks for Python.} %if %{defined fedora} # epel9 is missing django %bcond_without tests %endif # jedi bundles 2 other projects # when using the git tarball, the projects need to be pulled separately # when using tarballs from PyPI, those are included %global django_stubs_commit fd057010f6cbf176f57d1099e82be46d39b99cb9 %global typeshed_commit ae9d4f4b21bb5e1239816c301da7b1ea904b44c3 Name: python-jedi Version: 0.19.0 Release: 1%{?dist} Summary: An auto completion tool for Python that can be used for text editors # jedi is MIT # django-stubs is MIT # typeshed is MIT ASL 2.0 License: MIT and ASL 2.0 URL: https://jedi.readthedocs.org Source0: https://github.com/davidhalter/jedi/archive/v%{version}/jedi-%{version}.tar.gz Source1: https://github.com/davidhalter/django-stubs/archive/%{django_stubs_commit}/django-stubs-%{django_stubs_commit}.tar.gz Source2: https://github.com/davidhalter/typeshed/archive/%{typeshed_commit}/typeshed-%{typeshed_commit}.tar.gz BuildArch: noarch %description %{common_description} %package -n python3-jedi Summary: %{summary} BuildRequires: python3-devel Provides: bundled(python3dist(django-stubs)) = %{django_stubs_commit} Provides: bundled(typeshed) = %{typeshed_commit} %description -n python3-jedi %{common_description} %prep %autosetup -n jedi-%{version} -p 1 # git submodules pushd jedi/third_party rmdir django-stubs typeshed tar xf %{SOURCE1} && mv django-stubs-%{django_stubs_commit} django-stubs tar xf %{SOURCE2} && mv typeshed-%{typeshed_commit} typeshed popd cp -p jedi/third_party/django-stubs/LICENSE.txt LICENSE-django-stubs.txt cp -p jedi/third_party/typeshed/LICENSE LICENSE-typeshed.txt # relax upper limits on test dependencies sed -e 's/pytest<7.0.0/pytest/' \ -e 's/Django<3.1/Django/' \ -i setup.py %generate_buildrequires %pyproject_buildrequires %{?with_tests:-x testing} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files jedi %check %if %{with tests} # %%pytest manipulates the sys.path # test_compiled_singature # - https://github.com/davidhalter/jedi/issues/1952 # - https://github.com/python/cpython/issues/107526 %pytest -k "\ not test_venv_and_pths and \ not test_compiled_signature and \ not test_find_system_environments and \ not test_import" %else %pyproject_check_import %endif %files -n python3-jedi -f %{pyproject_files} %doc CHANGELOG.rst README.rst %changelog * Tue Aug 01 2023 Lumír Balhar - 0.19.0-1 - Update to 0.19.0 (rhbz#2227382) * Fri Jul 21 2023 Fedora Release Engineering - 0.18.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 29 2023 Python Maint - 0.18.2-5 - Rebuilt for Python 3.12 * Wed Jun 14 2023 Python Maint - 0.18.2-4 - Bootstrap for Python 3.12 * Mon May 29 2023 Lumír Balhar - 0.18.2-3 - Fix compatibility with attrs 23.1.0 * Fri Jan 20 2023 Fedora Release Engineering - 0.18.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Nov 22 2022 Lumír Balhar - 0.18.2-1 - Update to 0.18.2 (rhbz#2144681) * Tue Aug 02 2022 Lumír Balhar - 0.18.1-7 - Fix FTBFS with Python 3.11 by disabling some tests * Fri Jul 22 2022 Fedora Release Engineering - 0.18.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 0.18.1-5 - Rebuilt for Python 3.11 * Mon Jun 13 2022 Python Maint - 0.18.1-4 - Bootstrap for Python 3.11 * Fri Apr 08 2022 Carl George - 0.18.1-3 - Convert to pyproject macros * Fri Jan 21 2022 Fedora Release Engineering - 0.18.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Nov 18 2021 Lumír Balhar - 0.18.1-1 - Update to 0.18.1 Resolves: rhbz#2024009 * Thu Aug 05 2021 Lumír Balhar - 0.18.0-6 - Fix compatibility with Python 3.10rc1 * Sun Aug 01 2021 Lumír Balhar - 0.18.0-5 - Skip some tests causing FTBFS with Python 3.10 * Tue Jul 27 2021 Fedora Release Engineering - 0.18.0-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.18.0-3 - Rebuilt for Python 3.10 * Wed Jun 02 2021 Python Maint - 0.18.0-2 - Bootstrap for Python 3.10 * Tue Mar 02 2021 Lumír Balhar - 0.18.0-1 - Update to 0.18.0 Resolves: rhbz#1910879 * Wed Jan 27 2021 Fedora Release Engineering - 0.17.2^20200805git209e271-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Oct 30 2020 Miro Hrončok - 0.17.2^20200805git209e271-1 - Update to a git snapshot to support parso 0.8 - Add provides for bundled django-stubs and typeshed - Adapt the license tag to include the license of bundled projects - Enable tests, except integration * Wed Jul 29 2020 Fedora Release Engineering - 0.17.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jul 10 2020 Mukundan Ragavan - 0.17.1-1 - Update to 0.17.1 * Sun May 24 2020 Miro Hrončok - 0.15.1-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.15.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 17 2019 Carl George - 0.15.1-1 - Latest upstream * Thu Oct 03 2019 Miro Hrončok - 0.14.1-3 - Rebuilt for Python 3.8.0rc1 (#1748018) * Thu Aug 15 2019 Miro Hrončok - 0.14.1-2 - Rebuilt for Python 3.8 * Wed Jul 24 2019 Carl George - 0.14.1-1 - Latest upstream - Disable python2 subpackage on F31+ and EL8+ rhbz#1732815 * Sat Feb 02 2019 Fedora Release Engineering - 0.12.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Sep 04 2018 Carl George - 0.12.1-2 - Remove _docdir_fmt macro to allow upgrading subpackages separately rhbz#1625015 - Standardize on srcname, modname, eggname, and pkgname macros * Fri Aug 24 2018 Pavel Raiskup - 0.12.1-1 - new upstream version * Sat Jul 14 2018 Fedora Release Engineering - 0.12.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Jun 15 2018 Carl George - 0.12.0-3 - Add patch0 to parse correct AST entry for version on Python 3.7.0b5 * Fri Jun 15 2018 Miro Hrončok - 0.12.0-2 - Rebuilt for Python 3.7 * Mon Apr 16 2018 Carl George - 0.12.0-1 - Latest upstream - Enable test suite - Share doc and license dir between subpackages * Fri Feb 09 2018 Fedora Release Engineering - 0.10.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Jul 28 2017 Michel Alexandre Salim - 0.10.2-3 - Enable python3 subpackage for EPEL * Thu Jul 27 2017 Fedora Release Engineering - 0.10.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue Apr 18 2017 Carl George - 0.10.2-1 - Latest upstream * Mon Apr 03 2017 Carl George - 0.10.0-1 - Latest upstream - Upstream license changed to MIT and Python - Align spec with Python packaging guidelines * Sat Feb 11 2017 Fedora Release Engineering - 0.9.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.9.0-6 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 0.9.0-5 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 0.9.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 10 2015 Fedora Release Engineering - 0.9.0-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 0.9.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu May 07 2015 Petr Hracek - 0.9.0-1 - new upstream version 0.9.0 (#1217032) * Mon Jan 19 2015 Petr Hracek - 0.8.1-1 - new upstream version 0.8.1 (#1178815) * Sat Jun 07 2014 Fedora Release Engineering - 0.7.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed May 28 2014 Kalev Lember - 0.7.0-4 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 * Mon Jan 06 2014 Petr Hracek - 0.7.0-3 - Fix: Enable python3 subpackage (#1038398) * Fri Aug 23 2013 Petr Hracek - 0.7.0-1 - new upstream version 0.7.0 * Sun Aug 04 2013 Fedora Release Engineering - 0.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu May 16 2013 Petr Hracek - 0.6.0-1 - new upstream version 0.6.0 * Wed Apr 17 2013 Petr Hracek - 0.5b5-3 - Test suite is available only on dev branch. It will not be used. * Thu Apr 11 2013 Petr Hracek - 0.5b5-2 - Some type warnings. - Added dependency to python2-devel - tests were run and 5/679 failed * Thu Apr 11 2013 Petr Hracek - 0.5b5-1 - Initial package.