@@ -39,9 +39,9 @@ def is_platform_mac():
39
39
"install_requires" : [
40
40
"python-dateutil >= 2.6.1" ,
41
41
"pytz >= 2017.2" ,
42
- "numpy >= {numpy_ver}" . format ( numpy_ver = min_numpy_ver ) ,
42
+ f "numpy >= { min_numpy_ver } " ,
43
43
],
44
- "setup_requires" : ["numpy >= {numpy_ver}" . format ( numpy_ver = min_numpy_ver ) ],
44
+ "setup_requires" : [f "numpy >= { min_numpy_ver } " ],
45
45
"zip_safe" : False ,
46
46
}
47
47
@@ -364,10 +364,8 @@ def run(self):
364
364
for pyxfile in pyxfiles :
365
365
sourcefile = pyxfile [:- 3 ] + extension
366
366
msg = (
367
- "{extension}-source file '{source}' not found.\n "
368
- "Run 'setup.py cython' before sdist." .format (
369
- source = sourcefile , extension = extension
370
- )
367
+ f"{ extension } -source file '{ sourcefile } ' not found.\n "
368
+ f"Run 'setup.py cython' before sdist."
371
369
)
372
370
assert os .path .isfile (sourcefile ), msg
373
371
sdist_class .run (self )
@@ -382,14 +380,12 @@ def check_cython_extensions(self, extensions):
382
380
for ext in extensions :
383
381
for src in ext .sources :
384
382
if not os .path .exists (src ):
385
- print ("{ }: -> [{}]" . format ( ext .name , ext . sources ) )
383
+ print (f" { ext . name } : -> [{ ext .sources } ]" )
386
384
raise Exception (
387
- """Cython-generated file '{src}' not found.
385
+ f """Cython-generated file '{ src } ' not found.
388
386
Cython is required to compile pandas from a development branch.
389
387
Please install Cython or download a release package of pandas.
390
- """ .format (
391
- src = src
392
- )
388
+ """
393
389
)
394
390
395
391
def build_extensions (self ):
@@ -706,7 +702,7 @@ def srcpath(name=None, suffix=".pyx", subdir="src"):
706
702
include = data .get ("include" )
707
703
708
704
obj = Extension (
709
- "pandas.{name}" . format ( name = name ) ,
705
+ f "pandas.{ name } " ,
710
706
sources = sources ,
711
707
depends = data .get ("depends" , []),
712
708
include_dirs = include ,
0 commit comments