diff --git a/.gitignore b/.gitignore index 666b4b1..bf94274 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ /asttokens-2.1.0.tar.gz /asttokens-2.2.1.tar.gz /asttokens-3.12.tar.gz +/asttokens-2.4.0.tar.gz diff --git a/python-asttokens.spec b/python-asttokens.spec index b0616e0..bb8e211 100644 --- a/python-asttokens.spec +++ b/python-asttokens.spec @@ -1,13 +1,11 @@ Name: python-asttokens -Version: 2.2.1^20230701a802446 +Version: 2.4.0 Release: %autorelease Summary: Module to annotate Python abstract syntax trees with source code positions License: ASL 2.0 URL: https://pypi.python.org/pypi/asttokens -# This is directly from the 3.12 branch -# See https://github.com/gristlabs/asttokens/pull/110 -Source0: https://github.com/gristlabs/asttokens/archive/3.12/asttokens-3.12.tar.gz +Source: https://github.com/gristlabs/asttokens/archive/v%{version}/asttokens-%{version}.tar.gz BuildArch: noarch BuildRequires: git-core @@ -36,8 +34,8 @@ Requires: %{py3_dist six} %description -n python3-asttokens %_description %prep -%autosetup -S git -n asttokens-3.12 -git tag 2.2.1 +%autosetup -S git -p1 -n asttokens-%{version} +git tag %{version} %build %py3_build diff --git a/sources b/sources index 707c0e2..9d8deac 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (asttokens-3.12.tar.gz) = 8a010994d74d20fcc96a0c22d2bec237f521e0573330014fe80f01eaa601f176aaa499c30ae0465090f680fb415a2976e5874eb9928deeeaa497912f2323c4d6 +SHA512 (asttokens-2.4.0.tar.gz) = 183321c6eef3493e49289834425d4ec59dec5fdc496d27e4d89ab5ca2a830306367e0464dba25856da612e018f8d6cefedf7c2349488884031f02a91acc73cd4