1
0
mirror of https://github.com/fedora-python/tox-current-env.git synced 2024-12-25 09:36:13 +01:00
Commit Graph

54 Commits

Author SHA1 Message Date
Miro Hrončok
e1ce72ca96 Add --print-dependency-groups-to
Fixes https://github.com/fedora-python/tox-current-env/issues/81
2024-10-29 17:29:44 +01:00
Miro Hrončok
0cf27856f8 Only use old virtualenv with old tox
Fixes https://github.com/fedora-python/tox-current-env/issues/74
2024-10-22 17:48:42 +02:00
Miro Hrončok
4402808adc Tests: Reduce the amount of testenvs, make the tests work 2024-10-22 16:42:39 +02:00
Miro Hrončok
0db9b4b3d4 Fix tests: Python 3.12+ toxenvs don't have setuptools in them 2024-10-22 15:51:34 +02:00
Lumír 'Frenzy' Balhar
daf3872164
Support report of installed packages in CI (#64)
* Support report of installed packages in CI

Fixes: https://github.com/fedora-python/tox-current-env/issues/63

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
2023-01-07 11:40:07 +01:00
Miro Hrončok
bf900a5c7c Clear PYTHONPATH when executing tox in tests
Partial fix for https://github.com/fedora-python/tox-current-env/issues/52
2022-12-20 11:47:23 +01:00
Miro Hrončok
843dee6288 Fix tests for tox 4.0.15 2022-12-20 11:37:10 +01:00
Miro Hrončok
679fbc996e Always set passenv/pass_env to * 2022-12-14 13:51:28 +01:00
Miro Hrončok
c3497d2b2a
Don't assume the tests allways run via tox 2022-12-14 11:47:07 +01:00
Miro Hrončok
028ee0cfb4 Avoid race conditions when running tests with xdist 2022-12-13 16:56:33 +01:00
Miro Hrončok
f71dd2a238 Skip tox 3/4 tests with tox 4/3 via pytest, not tox 2022-12-13 16:48:17 +01:00
Lumir Balhar
ad6bcf5c19 Fix for commands_pre and commands_post for tox 4 2022-12-13 16:48:00 +01:00
Lumir Balhar
a72e7ba713 Fix TOX_MIN_VERSION again 2022-12-13 16:48:00 +01:00
Lumir Balhar
f5beafc38c Fix tests 2022-12-13 16:48:00 +01:00
Lumir Balhar
5d5286d4f0 Drop tox < 3.24, add Python 3.11, fix tox 4 compatibility 2022-12-13 16:47:55 +01:00
Lumir Balhar
b0923ba7ea Improved tests and testing with tox 4 2022-12-13 16:39:12 +01:00
Lumir Balhar
b9030ccc0f Copy of the tests for Tox 4 2022-12-13 16:39:04 +01:00
Miro Hrončok
34bd41f2bd
Do not run commands_pre or commands_post with --print-deps-to/--print-extras-to
Fixes https://github.com/fedora-python/tox-current-env/issues/58
2022-12-12 12:13:32 +01:00
Jürgen Gmach
d2f9344898
tox never gets capitalized
tox documentation is a good source for how to write it:

https://tox.wiki/en/latest/
https://tox.wiki/en/rewrite/

See also https://twitter.com/jugmac00/status/1524452912684011521

Merges https://github.com/fedora-python/tox-current-env/pull/50
2022-05-12 09:54:55 +02:00
Sorin Sbarnea
6e7459afce Avoid exception with tox.ini containing allowlist_externals
Fixes: https://github.com/fedora-python/tox-current-env/issues/45

Co-Authored-By: Miro Hrončok <miro@hroncok.cz>
2022-02-22 10:44:01 +01:00
Lumir Balhar
fa84635096 New Python versions in tests 2022-02-10 13:17:23 +01:00
Miro Hrončok
e7456d9645 Print tox requires with --print-deps-to
Partially fixes https://github.com/fedora-python/tox-current-env/issues/39
2021-02-16 10:57:21 +01:00
Miro Hrončok
a66b6f73d3 Print tox minversion with --print-deps-to
Partially fixes https://github.com/fedora-python/tox-current-env/issues/39
2021-02-15 22:43:44 +01:00
Miro Hrončok
4348640a83 Drop the limited support of tox 3.13 and 3.14 (due to Fedora 31 EOL) 2020-11-25 10:39:26 +01:00
Petr Viktorin
f663c1b4d5 Tests: Manipulate INI config with ConfigParser 2020-11-04 17:04:26 +01:00
Miro Hrončok
10da929f4b Test that the tested package is never/always installed to the test environment
Where "never" means:

 - with and without usedevelop
 - with all options of this plugin

Where "always" means:

 - with and without usedevelop
 - without options of this plugin
2020-11-04 17:04:11 +01:00
Miro Hrončok
338d03ac22 In tests, get sys.exec_prefix from the resolved executable
The previous version (resolving the exec_prefix) no longer works for me.

Also, apparently my current environment is different in tests
(it is the "absolutely current" now),
so I've adapted test_noquiet_installed_packages.

Not very sure about what has changed, but this has been always fragile.
2020-11-04 17:03:28 +01:00
Miro Hrončok
6dd32b21ce Add the --print-extras-to(-file) option 2020-09-30 15:13:18 +02:00
Miro Hrončok
6feb98352a When tox fails in tests, show stdout/stderr 2020-09-29 18:28:49 +02:00
Petr Viktorin
6b48528fb6 Use --print-deps-to=- in test_noquiet_installed_packages 2020-09-15 16:28:59 +02:00
Petr Viktorin
9f3d66aa20 Parametrize a --print-deps-to[-file] test 2020-09-15 16:21:23 +02:00
Petr Viktorin
4e137f1285 Remove unused fixture 2020-09-15 16:19:55 +02:00
Petr Viktorin
ea7b19f181 Use --print-deps-to in tests
IMO it's unnecessary to parametrize & test both forms.
2020-09-15 16:19:17 +02:00
Petr Viktorin
93e7f0b16a Deprecate --print-deps-only in favor of --print-deps-to-file=- 2020-09-15 14:25:53 +02:00
Miro Hrončok
ca5bba08a5 Add test and docstring to tox_runenvreport hook 2020-09-11 14:47:55 +02:00
Miro Hrončok
65cb96383b Drop support for tox < 3.13 (< 3.15 with Python 3.8+)
We have tox 3.13 in Fedora 31 running on Python 3.7
We have tox 3.15 in Fedora 32 running on Python 3.8
2020-08-13 12:05:10 +02:00
Miro Hrončok
12b0f83762 Test with Python 3.9 as well 2020-08-13 12:05:10 +02:00
Petr Viktorin
2e513fe88f tests: Use sys.exec_prefix, not sys.executable, to determine the Python run
Virtualenv 20.0 follows symlinks when populating sys.executable,
so we can't use it. (AFAIUI it's done to better handle cases where the
system executable is changed after a virtualenv is created.)
See: https://github.com/pypa/virtualenv/pull/1522

sys.exec_prefix still points to inside the virtualenv, so use that
in the tests to determine what's being run.
2020-08-11 17:07:58 +02:00
Miro Hrončok
868482fd79 Tests: Don't get fooled by test.egg-info directory in PWD 2019-10-23 13:24:51 +02:00
Miro Hrončok
783c2ea1ec Tests: For each test function, create an isolated project directory
This allows concurrent test execution.

Fixes https://github.com/fedora-python/tox-current-env/issues/11
2019-10-23 13:24:51 +02:00
Miro Hrončok
cf04976cea Only use tox_cleanup hook when it is possible 2019-09-27 21:58:30 +02:00
Miro Hrončok
a645fe2175 Clean fake venvs after --current-env
This makes it easier to run regular tox after tox --current-env,
however not the other way around.

The documented caveat remains the same: Don't mix those without -r.

Partially fixes https://github.com/fedora-python/tox-current-env/issues/14
2019-09-27 21:58:30 +02:00
Miro Hrončok
0863536aff Make --print-deps-only and --print-deps-to-file mutually exclusive 2019-08-12 16:17:41 +02:00
Miro Hrončok
71d21b8266 Add --print-deps-to-file option for easier parsable dependencies
Fixes https://github.com/fedora-python/tox-current-env/issues/13
2019-08-01 12:39:12 +02:00
Miro Hrončok
1982ce9aaf Check if we are not altering current environment 2019-07-29 14:30:15 +02:00
Miro Hrončok
e4fb2d79e0 Test more X after Y situations 2019-07-29 14:20:44 +02:00
Miro Hrončok
45bac2d3ee Create current environemnt link when --print-deps-only has no env
Fixes https://github.com/fedora-python/tox-current-env/issues/9
2019-07-29 14:14:41 +02:00
Miro Hrončok
d7ba8891d4 Don't fail tests if some interpreters are missing 2019-07-23 14:49:13 +02:00
Miro Hrončok
a1bd7d9cab Don't blow up on missing interpreter
Fixes https://github.com/fedora-python/tox-current-env/issues/5
2019-07-23 14:37:06 +02:00
Miro Hrončok
ab18ab9088 Make --print-deps-only quite inert 2019-07-18 11:55:54 +02:00