Skip to content

Commit 5469779

Browse files
committed
Setup.py should use f-strings
1 parent 4e47ac9 commit 5469779

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

setup.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
'sleep/suspend/hibernate',
1717
long_description=here.joinpath('README.md').read_text(),
1818
long_description_content_type="text/markdown",
19-
url='https://github.com/bulletmark/{}'.format(name),
19+
url=f'https://github.com/bulletmark/{name}',
2020
author='Mark Blakeney',
2121
author_email='mark.blakeney@bullet-systems.net',
2222
keywords='bash',
@@ -28,12 +28,10 @@
2828
'Programming Language :: Python :: 3',
2929
],
3030
data_files=[
31-
('share/{}'.format(name), ['README.md', '{}.conf'.format(name),
32-
'{}.service'.format(name)]),
33-
('share/{}/plugins/'.format(name),
34-
[str(p) for p in Path('plugins').iterdir()]),
31+
(f'share/{name}', ['README.md', f'{name}.conf', f'{name}.service']),
32+
(f'share/{name}/plugins/', [str(p) for p in Path('plugins').iterdir()]),
3533
],
3634
entry_points={
37-
'console_scripts': ['{}={}:main'.format(name, module)],
35+
'console_scripts': [f'{name}={module}:main'],
3836
},
3937
)

0 commit comments

Comments
 (0)