diff --git a/django-stubs-fd057010f6cbf176f57d1099e82be46d39b99cb9.tar.gz b/django-stubs-fd057010f6cbf176f57d1099e82be46d39b99cb9.tar.gz new file mode 100644 index 0000000..33ed124 Binary files /dev/null and b/django-stubs-fd057010f6cbf176f57d1099e82be46d39b99cb9.tar.gz differ diff --git a/jedi-0.18.0.tar.gz b/jedi-0.18.0.tar.gz new file mode 100644 index 0000000..4064c70 Binary files /dev/null and b/jedi-0.18.0.tar.gz differ diff --git a/python-jedi.spec b/python-jedi.spec new file mode 100644 index 0000000..56ea9b2 --- /dev/null +++ b/python-jedi.spec @@ -0,0 +1,48 @@ +%global django_stubs_commit fd057010f6cbf176f57d1099e82be46d39b99cb9 +%global typeshed_commit d38645247816f862cafeed21a8f4466d306aacf3 + +Name: python-jedi +Version: 0.18.0 +Release: 1 +Summary: A static analysis tool for Python that is typically used in IDEs/editors plugins + +License: MIT +URL: https://github.com/davidhalter/jedi +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 +Jedi is a static analysis tool for Python that is typically used in IDEs/editors plugins. +It has a focus on autocompletion and goto functionality. +Other features include refactoring, code search and finding references. + +%prep +%setup -n jedi-%{version} + +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 + + +%build +%py3_build + +%install +%py3_install + +%files +%license LICENSE.txt LICENSE-django-stubs.txt LICENSE-typeshed.txt +%doc AUTHORS.txt CHANGELOG.rst README.rst +%{python3_sitelib}/jedi/ +%{python3_sitelib}/jedi-%{version}-py%{python3_version}.egg-info/ + + +%changelog +* Sat Sep 25 2021 Li Chao - 0.18.0-1 +- First packaging for version 0.18 diff --git a/typeshed-d38645247816f862cafeed21a8f4466d306aacf3.tar.gz b/typeshed-d38645247816f862cafeed21a8f4466d306aacf3.tar.gz new file mode 100644 index 0000000..ceb7429 Binary files /dev/null and b/typeshed-d38645247816f862cafeed21a8f4466d306aacf3.tar.gz differ