Skip to content

Commit

Permalink
Remove trailing space after install_requires
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Jul 6, 2018
1 parent cf9ee18 commit 9f55e6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/pyscaffold/templates/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ def setup_cfg(opts):
quotes=False,
sep='')

opts['requirements_str'] = ('\n' + _add_list(opts['requirements'])
if opts['requirements'] else '')
opts['requirements_str'] = (
'install_requires =\n' + _add_list(opts['requirements'])
if opts['requirements'] else ''
)

# [pyscaffold] section used for later updates
pyscaffold_config = [
Expand Down
2 changes: 1 addition & 1 deletion src/pyscaffold/templates/setup_cfg.template
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ setup_requires =
pyscaffold>=3.0a0,<3.1a0
# Add here dependencies of your project (semicolon/line-separated), e.g.
# install_requires = numpy; scipy
install_requires = ${requirements_str}
${requirements_str}
# The usage of test_requires is discouraged, see `Dependency Management` docs
# tests_require = pytest; pytest-cov

Expand Down

0 comments on commit 9f55e6f

Please sign in to comment.