From 5f7441c734b1a4cc11dbc6663d52b057c33af436c36dc90498f39ea9da896a96 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 21 Feb 2022 14:10:45 +0000 Subject: [PATCH] Use PyPI tarball OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libcst?expand=0&rev=17 --- LibCST-0.4.1.tar.xz | 3 --- _service | 26 -------------------------- libcst-0.4.1.tar.gz | 3 +++ python-libcst.spec | 5 +++-- 4 files changed, 6 insertions(+), 31 deletions(-) delete mode 100644 LibCST-0.4.1.tar.xz delete mode 100644 _service create mode 100644 libcst-0.4.1.tar.gz diff --git a/LibCST-0.4.1.tar.xz b/LibCST-0.4.1.tar.xz deleted file mode 100644 index 69de05c..0000000 --- a/LibCST-0.4.1.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d003592dd3133bed30bad2e4adc14d0e7a8e71ff6303345699164cdb7d0a1b9c -size 15812128 diff --git a/_service b/_service deleted file mode 100644 index 9f713b1..0000000 --- a/_service +++ /dev/null @@ -1,26 +0,0 @@ - - - https://github.com/Instagram/LibCST - @PARENT_TAG@ - git - v0.4.1 - * - v(\d+\.\d+\.\d+) - \1 - disable - - - - *.tar - xz - - - - LibCST/native - xz - true - - - LibCST/native - - \ No newline at end of file diff --git a/libcst-0.4.1.tar.gz b/libcst-0.4.1.tar.gz new file mode 100644 index 0000000..cddb2b1 --- /dev/null +++ b/libcst-0.4.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:961ab38c0ef318c384a287f1e4f877bb61ce93945f352b14b5dbbe7a317882b1 +size 715682 diff --git a/python-libcst.spec b/python-libcst.spec index 451e6a9..0c69a39 100644 --- a/python-libcst.spec +++ b/python-libcst.spec @@ -27,13 +27,14 @@ %define psuffix %{nil} %bcond_with test %endif +%define modname libcst Name: python-libcst%{psuffix} Version: 0.4.1 Release: 0 Summary: Python 3.5+ concrete syntax tree with AST-like properties License: MIT URL: https://github.com/Instagram/LibCST -Source0: LibCST-%{version}.tar.xz +Source0: https://files.pythonhosted.org/packages/source/l/%{modname}/%{modname}-%{version}.tar.gz Source1: vendor.tar.xz Source2: cargo_config # PATCH-FIX-UPSTREAM skip_failing_test.patch gh#Instagram/LibCST#442 mcepl@suse.com @@ -72,7 +73,7 @@ BuildRequires: %{python_module typing_extensions >= 3.7.4.2} A concrete syntax tree with AST-like properties for Python 3.5+ programs. %prep -%setup -q -n LibCST-%{version} +%setup -q -n libcst-%{version} tar x -C native/ -f %{SOURCE1} (cd native ; mkdir -p .cargo ; cat %{SOURCE2} >>.cargo/config.toml) %autopatch -p1