Skip to content

Commit

Permalink
Merge pull request #231 from plone/tox_package_name
Browse files Browse the repository at this point in the history
Tox: Allow explicitly setting the package_name
  • Loading branch information
mauritsvanrees authored May 16, 2024
2 parents f17fd3a + ae379f1 commit 721299c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/config-package.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,11 +356,12 @@ def tox(self):
'test_environment_variables',
'extra_lines',
'use_pytest_plone',
'package_name'
)
)
use_mxdev = options.get("use_mxdev", False)
options.update(self._test_cfg())
options['package_name'] = self.path.name
options["package_name"] = options.get("package_name") or self.path.name
options["news_folder_exists"] = (self.path / 'news').exists()

options['prime_robotframework'] = self._detect_robotframework()
Expand Down
7 changes: 7 additions & 0 deletions config/default/tox.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,13 @@ set_env =
# Set constrain_package_deps .meta.toml:
# [tox]
# constrain_package_deps = "false"
#
# Explicitly set the package name .meta.toml:
# (For cases where the repository name is not the same of
# the package name)
# [tox]
# package_name = "pytest_plone"
#
##
deps =
{% if use_pytest_plone %} pytest-plone
Expand Down

0 comments on commit 721299c

Please sign in to comment.