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

24 Commits

Author SHA1 Message Date
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
Miro Hrončok
9fec5a14a7 Test package and depndencies are (not) installed 2019-07-18 11:06:48 +02:00
Miro Hrončok
e5e6ae06c3 Do what we can without -r 2019-07-18 10:50:44 +02:00
Miro Hrončok
c9fe58c8eb Handle tox -r after --current-env 2019-07-17 18:57:52 +02:00
Miro Hrončok
0a281f94b1 Add very basic integration tests 2019-07-17 18:57:52 +02:00