1
0
mirror of https://github.com/fedora-python/tox-current-env.git synced 2024-12-23 16:46:14 +01:00
Commit Graph

84 Commits

Author SHA1 Message Date
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
Miro Hrončok
10f1d91d8f CI: Update to actions/checkout@v3 to avoid a deprecation warning
Version 2 uses the node12 runtime.

https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/
2022-12-08 20:13:17 +01:00
Miro Hrončok
2f1005471a Update the branch for tox3 git 2022-12-07 23:00:08 +01:00
Miro Hrončok
4f97be7952 Define and use a [tests] extra 2022-12-07 22:32:57 +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
Miro Hrončok
0ea6d59938 Release 0.0.8 2022-03-02 22:04:24 +01: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
Miro Hrončok
931f41066b Fix tox315 toxenv 2022-02-18 19:43:29 +01:00
Lumir Balhar
fa84635096 New Python versions in tests 2022-02-10 13:17:23 +01:00
Miro Hrončok
0d9beab1db Pin tox < 4, release as 0.0.7 2022-02-06 22:54:51 +01:00
Miro Hrončok
7b2047dda1 Don't recommend using Python virtual environmetns to isolate
This plugin is designed to escape virtual environments.
Even when tox and tox-current-env are installed in a virtual environment,
the tests are executed in the non-virtualenv Python.

Possibly related to https://github.com/fedora-python/tox-current-env/issues/43
2021-11-29 13:16:16 +01:00
Miro Hrončok
60d4e23d20 Release 0.0.6 2021-03-29 13:51:24 +02:00
Petr Viktorin
2cbcf96a70 Make tox_dependencies() a generator 2021-03-16 14:44:59 +01:00
Miro Hrončok
beda06ad5e Document tox provisioning
Fixes https://github.com/fedora-python/tox-current-env/issues/39
2021-03-16 14:44:29 +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
60bde0041c Release 0.0.5 2020-11-25 12:06:36 +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
Miro Hrončok
9004590d6f DRY a function to detect "our" options 2020-11-25 10:39:26 +01:00
Miro Hrončok
4282332967 Properly test for our options in tox_runenvreport()
The tests were failing with "no module named pip" on Pythons without globally
available pip.
2020-11-25 10:39:26 +01:00
Miro Hrončok
d0b0c443ac Release 0.0.4 2020-11-04 17:19:04 +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
ed9ff81816 Hotfix: Don't install any deps when --print-extras-to is used 2020-11-04 17:03:45 +01:00
Miro Hrončok
5577fb3704 When using the plugin's options, disable the usedevelop option
When enabled in tox.ini, tox-current-env attempted to run `setup.py develop`
in the current env.
2020-11-04 17:03:39 +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
b35f8832a9 Include test fixtures in sdist 2020-11-04 02:21:51 +01:00
Miro Hrončok
ab458fae39 Release 0.0.3 2020-09-30 15:34:40 +02:00
Miro Hrončok
4212694dc6 Avoid clogging the arparse files, flush regularly 2020-09-30 15:13:18 +02: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
974f3334e3 Remove unneeded dest 2020-09-15 16:18:32 +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
Filipe Laíns
aca2fb563b
hooks: implement custom tox_runenvreport without a pip dependency
This gets rid of the pip dependency, undesirable in some cases.

Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-09-01 19:34:07 +01:00
Miro Hrončok
e3e6de27ba Run the CI job weekly to check compatibility with recent tox/virtualenv 2020-08-13 16:05:49 +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
2b89732d65
Switch CI to the fedora-python Tox GitHub action
https://github.com/fedora-python/tox-current-env/pull/28
2020-08-12 16:28:20 +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
Fredrik Averpil
bfbc61a4b7
Avoid requiring admin rights on Windows
This fixes an error on Windows (I'm on with Python 3.7) where the symlink cannot be created without admin rights.

https://github.com/fedora-python/tox-current-env/pull/24
2020-08-10 11:58:17 +02:00
Miro Hrončok
dc47ce3ddf Remove duplicate code and only delete venv if needed
There is no associated issue. I was juts reading the code and noticed those
two related things.
2020-01-13 08:58:03 +01:00
Miro Hrončok
688a41cceb Travis CI: Test also on Fedora 31 2019-10-23 13:24:51 +02:00
Miro Hrončok
b1b144e6be Tests: Run tests in parallel with pytest-xdist 2019-10-23 13:24:51 +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