[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1053413: marked as done (ITP: tox-current-env -- tox plugin to run tests in)



Your message dated Sun, 29 Oct 2023 19:00:13 +0000
with message-id <E1qxB1B-005VSN-S2@fasolo.debian.org>
and subject line Bug#1053413: fixed in tox-current-env 0.0.11-1
has caused the Debian Bug report #1053413,
regarding ITP: tox-current-env -- tox plugin to run tests in
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1053413: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053413
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: wnpp
Severity: wishlist
X-Debbugs-Cc: debian-python@lists.debian.org

* Package name    : tox-current-env
  Version         : 0.0.11
  Upstream Contact: Miro Hrončok <miro@hroncok.cz>
* URL             : https://github.com/fedora-python/tox-current-env
* License         : MIT
  Programming Lang: Python
  Description     : tox plugin to run tests in current Python environment

The tox-current-env plugin adds these options:

tox --current-env
    Runs the tox testenv's commands in the current Python environment
    (that is, the environment where tox is invoked from and installed
    in). Unlike regular tox invocation, this installs no dependencies
    declared in deps. An attempt to run this with a Python version
    that doesn't match will fail (if tox is invoked from an Python 3.7
    environment, any non 3.7 testenv will fail).
    
tox --print-deps-to=FILE
    Instead of running any commands, simply prints the declared
    dependencies in deps to the specified FILE. This is useful for
    preparing the current environment for tox --current-env. Use - for
    FILE to print to standard output.
    
tox --print-extras-to=FILE
    Instead of running any commands, simply prints the names of the
    declared extras in extras to the specified FILE. This is useful
    for preparing the current environment for tox --current-env. Use -
    for FILE to print to standard output.
    
It is possible to use the two printing options together, as long as
the FILE is different.

Invoking tox without any of the above options should behave as regular
tox invocation without this plugin. Any deviation from this behavior
is considered a bug.

The plugin disables tox's way of providing a testing environment, but
assumes that you supply one in some other way. Always run tox with
this plugin in a fresh isolated environment, such as Python
virtualenv, Linux container or chroot. See other caveats below.

Obviously, tox was created to run tests in isolated Python virtual
environments. The --current-env flag totally defeats the purpose of
tox. Why would anybody do that, you might ask?

Well, it turns out that tox became too popular and gained another purpose.

The Python ecosystem now has formal specifications for many pieces of
package metadata like versions or dependencies. However, there is no
standardization yet for declaring test dependencies or running
tests. The most popular de-facto standard for that today is tox, and
we expect a future standard to evolve from tox.ini. This plugin lets
us use tox's dependency lists and testing commands for environments
other than Python venvs.

We hope this plugin will enable community best practices around tox
configuration to grow to better accomodate non-virtualenv environments
in general – for example, Linux distros, Conda, or containers.

Specifically, this plugin was created for Fedora's needs. When we
package Python software as RPM packages, we try to run the project's
test suite during package build. However, we need to test if the
software works integrated into Fedora, not with packages downloaded
from PyPI into a fresh environment. By running the tests in current
environment, we can achieve that.

----

In my case, I want to avoid constantly downloading unverified code
from the internet, or, even worse, *compile* code (e.g. for
python3-ldap, in my case) which involves a whole other pile of stuff
to install.

Other Tox plugins are currently maintained by the Python team (and
Peter Pentchev), so it would probably be the same for this one.

--- End Message ---
--- Begin Message ---
Source: tox-current-env
Source-Version: 0.0.11-1
Done: Bo YU <tsu.yubo@gmail.com>

We believe that the bug you reported is fixed in the latest version of
tox-current-env, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1053413@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bo YU <tsu.yubo@gmail.com> (supplier of updated tox-current-env package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 24 Oct 2023 15:19:50 +0000
Source: tox-current-env
Binary: tox-current-env
Architecture: source all
Version: 0.0.11-1
Distribution: unstable
Urgency: low
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Bo YU <tsu.yubo@gmail.com>
Description:
 tox-current-env - tox plugin to run tests in current Python environment
Closes: 1053413
Changes:
 tox-current-env (0.0.11-1) unstable; urgency=low
 .
   * Initial release. (Closes: #1053413)
Checksums-Sha1:
 31958304b9a08aeb74915dff857b95c1473d8fc0 2281 tox-current-env_0.0.11-1.dsc
 f774fdc55797ad8412e0aeea3911a6be9e67748d 17091 tox-current-env_0.0.11.orig.tar.gz
 84cb88368030c16ee1a16a23928952ccb3b26f07 3048 tox-current-env_0.0.11-1.debian.tar.xz
 95e176d8d22ca506b0304f13ae1fad2fb59177ea 16496 tox-current-env_0.0.11-1_all.deb
 2e6f0a830862bf57eeb419fedb7ea94f674ad61f 7572 tox-current-env_0.0.11-1_amd64.buildinfo
Checksums-Sha256:
 ad54ab82033e739dbbb981ac275f7c5c59a0c1037f885da254538fecf8a445b3 2281 tox-current-env_0.0.11-1.dsc
 b07d39c0b1f70777ff81107081dc23c9286e7abbb5fa64ad47383f0a6d6e398f 17091 tox-current-env_0.0.11.orig.tar.gz
 512374af03db249849fd6c130c5a38931fa8394cf399ee682826482cdcda3ca2 3048 tox-current-env_0.0.11-1.debian.tar.xz
 7e35f5662438b120863aca7165247ef034f0a9641d6766b2d90abea4c3c3834f 16496 tox-current-env_0.0.11-1_all.deb
 1162fa91109cf0bd3aa9e61f466559abd0d0fb753acb83182a613dd29109f9dc 7572 tox-current-env_0.0.11-1_amd64.buildinfo
Files:
 feda163a47fba6aeca5ccec6808288bc 2281 python optional tox-current-env_0.0.11-1.dsc
 24f2ec58b058360cedf8349884e67679 17091 python optional tox-current-env_0.0.11.orig.tar.gz
 a15b937841793a6808d5d3d6bc6ed9e1 3048 python optional tox-current-env_0.0.11-1.debian.tar.xz
 e59b41f55285816b43670124628cd81d 16496 python optional tox-current-env_0.0.11-1_all.deb
 11c4d5f6d44d14bd4ae5ff3061e7d1d3 7572 python optional tox-current-env_0.0.11-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEd8lhnEnWos3N8v+qQoMEoXSNzHoFAmU35MMACgkQQoMEoXSN
zHo7TA/+JxRJR4+P60aNyMvT0ru79nlF5uwD9Ntu+c7cojie7okfD0OeuolyfUgT
gP5HeM/Nrrs1EekLexw9TVPwV4ApX+NKIzzvYO50hPNLKP/dWENpsMceXACnp369
71NsruTfIB6xSDv7dFA4lOUDdxa9NAwXdT8Wf3WQCQ1Mem6WYcN/L1EbYNsbF8p6
2IssgySk5aTTKmqP/rURWphayZNqhQyC6PjwdvFqIHjNDnmW9lPSWOCh5B3Glzeh
94fxqJvsBLyGqZkgwrwJtpCtaG3NQU1AzeUllpUxLhmEpeR2L8NE7cqWb72N1/tk
l229cie4OuRvic0OkxcMOwwYsO43NO1dbU6iTZCNPLW9tBfjUcgR2oTiEXVrpl8y
E03Rm9vLIK46uZDs4CU4XjHuHbXGBGNbrAfHr+fhAIeqA74s9Xd913kq7mRMuwkc
Y++hvmmEEaTvYd50iq8qbWLqjeg/n5CQqopZdPFRNg43Ij7BcCIoSHbXZ5AWIBTM
OugBbcA8ue8Qz9eAUeJC3z4hDSw7WSgjK50zc/qAyay/T+2YqfNtItnjpb5sNdA/
PNPqd+7lcSUrQHC28LsFrUxQzGpNbLC5Zy3SuztjFdskpELCNR9TP/nSdNz2wuYY
djjpa2OC9luxrCrB7y4lQAXQBDy2J/bkdVKYtBYrAuxo62V0e/U=
=Xlcl
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: