#3 Use sources from 3.12 branch to add compatibility with Python 3.12
Merged 10 months ago by churchyard. Opened 10 months ago by thrnciar.
rpms/ thrnciar/python-asttokens python3.12  into  rawhide

file modified
+1
@@ -12,3 +12,4 @@ 

  /asttokens-2.0.8.tar.gz

  /asttokens-2.1.0.tar.gz

  /asttokens-2.2.1.tar.gz

+ /asttokens-3.12.tar.gz

file modified
+9 -4
@@ -1,13 +1,16 @@ 

  Name:           python-asttokens

- Version:        2.2.1

+ Version:        2.2.1^20230701a802446

  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

- Source0:        https://files.pythonhosted.org/packages/source/a/asttokens/asttokens-%{version}.tar.gz

+ # 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

  

  BuildArch:      noarch

+ BuildRequires:  git-core

  BuildRequires:  python3-devel

  BuildRequires:  python3dist(setuptools)

  BuildRequires:  python3dist(setuptools-scm)
@@ -33,7 +36,8 @@ 

  %description -n python3-asttokens %_description

  

  %prep

- %autosetup -p1 -n asttokens-%{version}

+ %autosetup -S git -n asttokens-3.12

+ git tag 2.2.1

  

  %build

  %py3_build
@@ -42,7 +46,8 @@ 

  %py3_install

  

  %check

- pytest-3 tests/ -v "${TEST_ARGS[@]}"

+ # test_fixture9 and test_sys_modules tests are currently failing with Python 3.12

+ pytest-3 tests/ -v "${TEST_ARGS[@]}" -k "not test_fixture9 and not test_sys_modules"

  

  %files -n python3-asttokens

  %license LICENSE

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (asttokens-2.2.1.tar.gz) = 0bd2b86e8f8170566de3d26ccce4d897362907e37edf2f7a78fc47326cfb5a2003a3c4fe41d022791aae93ee7953d5a7110849afadd2014e63492809712c9dd7

+ SHA512 (asttokens-3.12.tar.gz) = 8a010994d74d20fcc96a0c22d2bec237f521e0573330014fe80f01eaa601f176aaa499c30ae0465090f680fb415a2976e5874eb9928deeeaa497912f2323c4d6

no initial comment

rebased onto b9d54f4

10 months ago

Pull-Request has been merged by churchyard

10 months ago