File tree 2 files changed +4
-26
lines changed
2 files changed +4
-26
lines changed Original file line number Diff line number Diff line change 1
1
[build-system ]
2
2
requires = [
3
3
" setuptools>=61.2" ,
4
- " setuptools_scm>=6.2 " ,
4
+ " setuptools_scm>=8.0.0 " ,
5
5
" wheel" ,
6
6
" jinja2>=2.10.3" ,
7
7
" numpy>=2.0.0rc1" ,
@@ -47,6 +47,9 @@ include-package-data = false
47
47
exclude = [" erfa._dev" ]
48
48
namespaces = false
49
49
50
+ [tool .setuptools_scm ]
51
+ version_file = " erfa/_version.py"
52
+
50
53
[tool .pytest .ini_options ]
51
54
minversion = " 4.6"
52
55
testpaths = [" erfa" , " docs" , " README.rst" ]
Original file line number Diff line number Diff line change 4
4
import os
5
5
import re
6
6
import sys
7
- import functools
8
7
import setuptools
9
8
import subprocess
10
9
from warnings import warn
@@ -179,31 +178,7 @@ def get_extensions():
179
178
return [erfa_ext ]
180
179
181
180
182
- try :
183
- with open ('erfa/_dev/scm_version.py' ) as fd :
184
- source = fd .read ()
185
- except FileNotFoundError :
186
- guess_next_dev = None
187
- else :
188
- import types
189
- scm_version = types .ModuleType ('scm_version' )
190
- scm_version .__file__ = 'erfa/_dev/scm_version.py'
191
- code = compile (source , scm_version .__file__ , 'exec' )
192
- try :
193
- exec (code , scm_version .__dict__ )
194
- except ImportError :
195
- guess_next_dev = None
196
- else :
197
- guess_next_dev = functools .partial (scm_version ._guess_next_dev ,
198
- liberfadir = LIBERFADIR )
199
-
200
- use_scm_version = {
201
- 'write_to' : os .path .join ('erfa' , '_version.py' ),
202
- 'version_scheme' : guess_next_dev ,
203
- }
204
-
205
181
setuptools .setup (
206
- use_scm_version = use_scm_version ,
207
182
ext_modules = get_extensions (),
208
183
cmdclass = {"bdist_wheel" : bdist_wheel_abi3 },
209
184
)
You can’t perform that action at this time.
0 commit comments