diff options
author | Philipp Albrecht <palbrecht@mailbox.org> | 2023-07-23 18:04:31 +0200 |
---|---|---|
committer | Philipp Albrecht <palbrecht@mailbox.org> | 2023-08-09 12:46:58 +0200 |
commit | 1976f1acdd99a1f904b77d6a90e49bcd74bc587f (patch) | |
tree | a98b22867db4a4079af1345f4d8763be8150be19 /tox.ini | |
parent | 89b91105022be0216d8fb323b20fd15e1391af28 (diff) | |
download | qutebrowser-1976f1acdd99a1f904b77d6a90e49bcd74bc587f.tar.gz qutebrowser-1976f1acdd99a1f904b77d6a90e49bcd74bc587f.zip |
Add package job to tox.ini
This is still *very* basic, but it serves its purpose of failing for warnings during
package build.
I verified that `tox -e package` is failing by introducing some warnings with this change:
```diff
diff --git a/setup.py b/setup.py
index feb949595..6810eaf1e 100755
--- a/setup.py
+++ b/setup.py
@@ -51,8 +51,7 @@ def _get_constant(name):
try:
common.write_git_file()
setuptools.setup(
- packages=setuptools.find_namespace_packages(include=['qutebrowser',
- 'qutebrowser.*']),
+ packages=setuptools.find_namespace_packages(include=['qutebrowser']),
include_package_data=True,
entry_points={'gui_scripts':
['qutebrowser = qutebrowser.qutebrowser:main']},
```
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -280,3 +280,13 @@ deps = commands = !qt5: {envpython} {toxinidir}/scripts/dev/build_release.py {posargs} qt5: {envpython} {toxinidir}/scripts/dev/build_release.py --qt5 {posargs} + +[testenv:package] +basepython = {env:PYTHON:python3} +setenv = + PYTHONWARNINGS=error + VIRTUALENV_PIP=23.2 +deps = + -r{toxinidir}/requirements.txt + -r{toxinidir}/misc/requirements/requirements-dev.txt +commands = {envpython} -m build |