pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-tox py-tox: updated to 3.4.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1019b6519161
branches:  trunk
changeset: 324060:1019b6519161
user:      adam <adam%pkgsrc.org@localhost>
date:      Sun Oct 07 08:32:22 2018 +0000

description:
py-tox: updated to 3.4.0

3.4.0:

Bugfixes
- add --exists-action w to default pip flags to handle better VCS dependencies
- instead of assuming the Python version from the base python name ask the interpreter to reveal the version for the ignore_basepython_conflict flag
- PEP-517 packaging fails with sdist already exists, fixed via ensuring the dist folder is empty before invoking the backend and pypa/setuptools

Features
- add commands_pre and commands_post that run before and after running
  the commands (setup runs always, commands only if setup suceeds, teardown always - all
  run until the first failing command)
- pyproject.toml config support initially by just inline the tox.ini under tool.tox.legacy_tox_ini key; config source priority order is pyproject.toml, tox.ini and then setup.cfg
- use the os environment variable TOX_SKIP_ENV to filter out tox environment names from the run list (set by envlist)
- always set PIP_USER=0 (do not install into the user site package, but inside the virtual environment created) and PIP_NO_DEPS=0 (installing without dependencies can cause broken package 
installations) inside tox
- tox will inject some environment variables that to indicate a command is running within tox: TOX_WORK_DIR env var is set to the tox work directory,
  TOX_ENV_NAME is set to the current running tox environment name, TOX_ENV_DIR is set to the current tox environments working dir
- While running tox invokes various commands (such as building the package, pip installing dependencies and so on), these were printed in case they failed as Python arrays. Changed the representation 
to a shell command, allowing the users to quickly replicate/debug the failure on their own
- skip missing interpreters value from the config file can now be overridden via the --skip-missing-interpreters cli flag
- keep additional environments config order when listing them
- allow injecting config value inside the ini file dependent of the fact that we're connected to an interactive shell or not
- do not build sdist if skip install is specified for the envs to be run
- when verbosity level increases above two start passing through verbosity flags to pip
- when discovering the interpreter to use check if the tox host Python matches and use that if so
- -vv will print out why a virtual environment is re-created whenever this operation is triggered

Documentation
- clarify that python and pip refer to the virtual environments executable
- add Sphinx and mkdocs example of generating documentation via tox
- specify that setup.cfg tox configuration needs to be inside the tox:tox namespace


3.3.0:

Bugfixes
- fix TOX_LIMITED_SHEBANG when running under python3

Features
- PEP-517 <https://www.python.org/dev/peps/pep-0517/>_ source distribution support (create a
  .package virtual environment to perform build operations inside)
- flit <https://flit.readthedocs.io>_ support via implementing PEP-517
- packaging now is exposed as a hook via tox_package(session, venv)

Miscellaneous
- Updated the VSTS build YAML to use the latest jobs and pools syntax

diffstat:

 devel/py-tox/ALTERNATIVES |   4 ++--
 devel/py-tox/Makefile     |  20 ++++++++++++--------
 devel/py-tox/PLIST        |  15 ++++++++++++---
 devel/py-tox/distinfo     |  10 +++++-----
 4 files changed, 31 insertions(+), 18 deletions(-)

diffs (100 lines):

diff -r e1253d172890 -r 1019b6519161 devel/py-tox/ALTERNATIVES
--- a/devel/py-tox/ALTERNATIVES Sun Oct 07 08:21:18 2018 +0000
+++ b/devel/py-tox/ALTERNATIVES Sun Oct 07 08:32:22 2018 +0000
@@ -1,2 +1,2 @@
-bin/tox @PREFIX@/bin/tox@PYVERSSUFFIX@
-bin/tox-quickstart @PREFIX@/bin/tox-quickstart@PYVERSSUFFIX@
+bin/tox @PREFIX@/bin/tox-@PYVERSSUFFIX@
+bin/tox-quickstart @PREFIX@/bin/tox-quickstart-@PYVERSSUFFIX@
diff -r e1253d172890 -r 1019b6519161 devel/py-tox/Makefile
--- a/devel/py-tox/Makefile     Sun Oct 07 08:21:18 2018 +0000
+++ b/devel/py-tox/Makefile     Sun Oct 07 08:32:22 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.9 2018/08/17 07:16:35 adam Exp $
+# $NetBSD: Makefile,v 1.10 2018/10/07 08:32:22 adam Exp $
 
-DISTNAME=      tox-3.2.1
+DISTNAME=      tox-3.4.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=t/tox/}
@@ -12,19 +12,23 @@
 
 DEPENDS+=      ${PYPKGPREFIX}-py>=1.4.17:../../devel/py-py
 DEPENDS+=      ${PYPKGPREFIX}-pluggy>=0.3.0<1.0:../../devel/py-pluggy
+DEPENDS+=      ${PYPKGPREFIX}-setuptools>=30.0.0:../../devel/py-setuptools
+DEPENDS+=      ${PYPKGPREFIX}-six>=1.0.0:../../lang/py-six
+DEPENDS+=      ${PYPKGPREFIX}-toml>=0.9.4:../../textproc/py-toml
 DEPENDS+=      ${PYPKGPREFIX}-virtualenv>=1.11.2:../../devel/py-virtualenv
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
 TEST_DEPENDS+= ${PYPKGPREFIX}-test>=3.0.0:../../devel/py-test
-TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
-TEST_DEPENDS+= ${PYPKGPREFIX}-test-mock-[0-9]*:../../devel/py-test-mock
-TEST_DEPENDS+= ${PYPKGPREFIX}-test-timeout-[0-9]*:../../devel/py-test-timeout
-TEST_DEPENDS+= ${PYPKGPREFIX}-test-xdist-[0-9]*:../../devel/py-test-xdist
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov>=2.5.1:../../devel/py-test-cov
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-mock>=1.10.0:../../devel/py-test-mock
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-randomly>=1.2.3:../../devel/py-test-randomly
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-timeout>=1.3.0:../../devel/py-test-timeout
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-xdist>=1.22.2:../../devel/py-test-xdist
 
 USE_LANGUAGES= # none
 
 post-install:
-       cd ${DESTDIR}${PREFIX}/bin && ${MV} tox tox${PYVERSSUFFIX} && \
-               ${MV} tox-quickstart tox-quickstart${PYVERSSUFFIX} || ${TRUE}
+       cd ${DESTDIR}${PREFIX}/bin && ${MV} tox tox-${PYVERSSUFFIX} && \
+               ${MV} tox-quickstart tox-quickstart-${PYVERSSUFFIX} || ${TRUE}
 
 do-test:
        cd ${WRKSRC} && pytest-${PYVERSSUFFIX}
diff -r e1253d172890 -r 1019b6519161 devel/py-tox/PLIST
--- a/devel/py-tox/PLIST        Sun Oct 07 08:21:18 2018 +0000
+++ b/devel/py-tox/PLIST        Sun Oct 07 08:32:22 2018 +0000
@@ -1,6 +1,6 @@
-@comment $NetBSD: PLIST,v 1.3 2018/08/17 07:16:35 adam Exp $
-bin/tox${PYVERSSUFFIX}
-bin/tox-quickstart${PYVERSSUFFIX}
+@comment $NetBSD: PLIST,v 1.4 2018/10/07 08:32:22 adam Exp $
+bin/tox-${PYVERSSUFFIX}
+bin/tox-quickstart-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -34,12 +34,21 @@
 ${PYSITELIB}/tox/interpreters.py
 ${PYSITELIB}/tox/interpreters.pyc
 ${PYSITELIB}/tox/interpreters.pyo
+${PYSITELIB}/tox/package.py
+${PYSITELIB}/tox/package.pyc
+${PYSITELIB}/tox/package.pyo
 ${PYSITELIB}/tox/result.py
 ${PYSITELIB}/tox/result.pyc
 ${PYSITELIB}/tox/result.pyo
 ${PYSITELIB}/tox/session.py
 ${PYSITELIB}/tox/session.pyc
 ${PYSITELIB}/tox/session.pyo
+${PYSITELIB}/tox/util.py
+${PYSITELIB}/tox/util.pyc
+${PYSITELIB}/tox/util.pyo
 ${PYSITELIB}/tox/venv.py
 ${PYSITELIB}/tox/venv.pyc
 ${PYSITELIB}/tox/venv.pyo
+${PYSITELIB}/tox/version.py
+${PYSITELIB}/tox/version.pyc
+${PYSITELIB}/tox/version.pyo
diff -r e1253d172890 -r 1019b6519161 devel/py-tox/distinfo
--- a/devel/py-tox/distinfo     Sun Oct 07 08:21:18 2018 +0000
+++ b/devel/py-tox/distinfo     Sun Oct 07 08:32:22 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.7 2018/08/17 07:16:35 adam Exp $
+$NetBSD: distinfo,v 1.8 2018/10/07 08:32:22 adam Exp $
 
-SHA1 (tox-3.2.1.tar.gz) = dae6c703fbd4860bc1906785d38096d55c219bd3
-RMD160 (tox-3.2.1.tar.gz) = e1f1b9ad6c8b39da6f45022a3e826f8689633314
-SHA512 (tox-3.2.1.tar.gz) = 79f5a1c8f6e818fbb8444754e3767d880fc1fdfe63b46c518d37440fe2b2f3ce572865aff83d9492c24486fded49893cc31bd9b11254bac4db507260304bc76f
-Size (tox-3.2.1.tar.gz) = 268827 bytes
+SHA1 (tox-3.4.0.tar.gz) = fcf479bb13bd7ccea86d20a74769fe3b9cbc78f6
+RMD160 (tox-3.4.0.tar.gz) = 73a4ce53b68774a5d484f815a3085ceae3048643
+SHA512 (tox-3.4.0.tar.gz) = c14364dffac50bece66f15545325d7912459e49979b37b48ff399610517a43a10a4c005f4ca5ec9481fb4140803a18be64f94838610e07d1e7a4b3e5df2a7d87
+Size (tox-3.4.0.tar.gz) = 287178 bytes



Home | Main Index | Thread Index | Old Index