Push information about the running pytest into envvars
Project description
===============
pytest-env-info
===============
.. image:: https://travis-ci.org/abadger/pytest-env-info.svg?branch=master
:target: https://travis-ci.org/abadger/pytest-env-info
:alt: See Build Status on Travis CI
Push information about the running pytest into the environment
Features
--------
* Injects information about the Python and Pytest versions that are running the unittests into the
environment. This can be used for configuring other pytest plugins for the Python version being run
on.
The following environment variables are set:
.. envvar:: PYTEST_VERSION
The version of the executing pytest
.. envvar:: PYTEST_PYVER
The version of the Python interpreter running pytest
.. envvar:: PYTEST_PYMAJVER
The major version of the Python interpreter. For instance, "2" on Python-2.7.14 and "3" for
Python-3.6.1.
Requirements
------------
* Pytest
Installation
------------
You can install "pytest-env-info" via `pip`_ from `PyPI`_::
$ pip install pytest-env-info
Contributing
------------
Contributions are very welcome. Tests can be run with `tox`_, please ensure
the coverage at least stays the same before you submit a pull request.
License
-------
Distributed under the terms of the `MIT`_ license, "pytest-env-info" is free and open source software
Issues
------
If you encounter any problems, please `file an issue`_ along with a detailed description.
.. _`MIT`: http://opensource.org/licenses/MIT
.. _`file an issue`: https://github.com/abadger/pytest-env-info/issues
.. _`pytest`: https://github.com/pytest-dev/pytest
.. _`tox`: https://tox.readthedocs.io/en/latest/
.. _`pip`: https://pypi-hypernode.com/pypi/pip/
.. _`PyPI`: https://pypi-hypernode.com/pypi
pytest-env-info
===============
.. image:: https://travis-ci.org/abadger/pytest-env-info.svg?branch=master
:target: https://travis-ci.org/abadger/pytest-env-info
:alt: See Build Status on Travis CI
Push information about the running pytest into the environment
Features
--------
* Injects information about the Python and Pytest versions that are running the unittests into the
environment. This can be used for configuring other pytest plugins for the Python version being run
on.
The following environment variables are set:
.. envvar:: PYTEST_VERSION
The version of the executing pytest
.. envvar:: PYTEST_PYVER
The version of the Python interpreter running pytest
.. envvar:: PYTEST_PYMAJVER
The major version of the Python interpreter. For instance, "2" on Python-2.7.14 and "3" for
Python-3.6.1.
Requirements
------------
* Pytest
Installation
------------
You can install "pytest-env-info" via `pip`_ from `PyPI`_::
$ pip install pytest-env-info
Contributing
------------
Contributions are very welcome. Tests can be run with `tox`_, please ensure
the coverage at least stays the same before you submit a pull request.
License
-------
Distributed under the terms of the `MIT`_ license, "pytest-env-info" is free and open source software
Issues
------
If you encounter any problems, please `file an issue`_ along with a detailed description.
.. _`MIT`: http://opensource.org/licenses/MIT
.. _`file an issue`: https://github.com/abadger/pytest-env-info/issues
.. _`pytest`: https://github.com/pytest-dev/pytest
.. _`tox`: https://tox.readthedocs.io/en/latest/
.. _`pip`: https://pypi-hypernode.com/pypi/pip/
.. _`PyPI`: https://pypi-hypernode.com/pypi
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytest-env-info-0.1.0.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for pytest_env_info-0.1.0-py27-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 799bf8c1fed209e9c5fd3e479f8fd13e570a06e8e4b859b4781b85dc9f93ea4c |
|
MD5 | 23f05c49e894fcae60b0c04016578c39 |
|
BLAKE2b-256 | a26cbc9d9e1032cec20955256db2b4c432f89afcd5d7448df9cd4aec5293e402 |