Skip to content

Commit 2e4279b

Browse files
committed
Avoid f-strings for now
This commit removes the use of f strings from tomlgen module. The package metadata didn't set a minimum python version and fstrings don't work with python 3.5. To enable having the last release of setuptools-rust prior to setting the python_requires work with python 3.5 we need to have a release which will work for 3.5. With this change setuptools-rust should work fine with Python 3.5. So we can release this and then set the minimum supported python version to 3.6 and reintroduce the use of fstrings. Fixes #85
1 parent 75fa9ab commit 2e4279b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setuptools_rust/tomlgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def iter_dependencies(self, ext=None):
188188
for section in sections:
189189
if self.cfg.has_section(section):
190190
for dep, options in self.cfg.items(section):
191-
yield dep, toml.loads(f"{dep} = {options}")[dep]
191+
yield dep, toml.loads("%s = %s" % (dep, options))[dep]
192192

193193

194194
def _slugify(name):

0 commit comments

Comments
 (0)