semvec/pypi-packages huggingface dataset:
pytest-travis-fold 1.3.0
Folds captured output sections in Travis CI build log
License: MIT
Keywords: pytest travis build logs continuous integration

==================
pytest-travis-fold
==================

`Pytest`_ plugin that folds captured output sections in Travis CI build log.

.. image:: https://cloud.githubusercontent.com/assets/530396/10524841/52ecb102-738a-11e5-83ab-f3cf1b3316fb.png
    :alt: Travis CI build log view

In addition, pytest-travis-fold recognizes presence of the `pytest-cov`_ plugin
and folds coverage reports accordingly.

Installation and Usage
----------------------

Just install the `pytest-travis-fold`_ package as part of your build.

When using `tox`_, add the package to the ``deps`` list in your ``tox.ini``
and make sure the ``TRAVIS`` environment variable is passed::

    [testenv]
    deps =
        pytest-travis-fold
    passenv = TRAVIS

If you **don't** use tox and invoke ``py.test`` directly from ``.travis.yml``,
you may install the package as an additional ``install`` step::

    install:
      - pip install -e .
      - pip install pytest-travis-fold

    script: py.test

Output folding is enabled automatically when running inside Travis CI. It is OK
to have the plugin installed also in your dev environment: it is only activated
by checking the presence of the ``TRAVIS`` environmental variable, unless the
``--travis-fold`` command line switch is used.


The ``travis`` fixture
----------------------
The plugin by itself only makes the captured output sections appear folded.
If you wish to make the same thing with arbitrary lines, you can do it manually
by using the ``travis`` fixture.

It is possible to fold the output of a certain code block using the
``travis.folding_output()`` context manager::

	def test_something(travis):
		with travis.folding_output():
			print('Lines, lines, lines...')
			print('Lots of them!')
			...

Or you may want to use lower-level ``travis.fold_string()`` and
``travis.fold_lines()`` functions and then output the result as usual.

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-travis-fold" is free and open source software


Issues
------

If you encounter any problems, please `file an issue`_ along with a detailed description.

.. _pytest-travis-fold: https://pypi.python.org/pypi/pytest-travis-fold
.. _MIT: http://opensource.org/licenses/MIT
.. _file an issue: https://github.com/abusalimov/pytest-travis-fold/issues
.. _Pytest: https://github.com/pytest-dev/pytest
.. _pytest-cov: https://github.com/pytest-dev/pytest-cov
.. _tox: https://tox.readthedocs.org/en/latest/
.. _PyPI: https://pypi.python.org/pypi
whotrackme 2017.11
Learn about tracking technologies, market structure and data-sharing on the web
License: MIT
Keywords: tracking whotracksme whotracks.me



<img
alt="whotracks.me"
style="width: 200px"
src="https://raw.githubusercontent.com/cliqz-oss/whotracks.me/master/static/img/who-tracksme-logo.png">

Bringing Transparency to online tracking - built by Cliqz and Ghostery.

___

This repository contains:

* data on trackers and websites as shown on [whotracks.me](https://whotracks.me) (`./data`)
* database mapping tracker domains to companies (`./db`)
* code to render the [whotracks.me](https://whotracks.me) site


# Installation

Python 3.x is needed to build the site. We recommend creating a
[virtualenv](http://docs.python-guide.org/en/latest/dev/virtualenvs/) (or
`pipenv`) to install the dependencies.

## From Pypi

```sh
$ pip install whotracksme
```

## From source

```sh
$ pip install -e .
```

That's all you need to get started!

# Using the data

To get started with the data, everything you need can be found in
`whotracksme.data`:

```python
from whotracksme.data import (
    load_apps,
    load_companies,
    load_overview,
    load_sites,
    load_tracker_db,
)

print(load_apps())
```

For more examples of scripts, have a look in the [contrib](./contrib) folder!

# Building the site

Building the site requires a few extra dependencies, not installed by default to
not make the installation heavier than it needs to be. You will need to install
`whotracksme` this way:

```sh
$ pip install 'whotracksme[website]'
```

Or if you do it from source:
```sh
$ pip install -e '.[website]'
```

*Furthermore* you also need to [install sass](http://sass-lang.com/install).


Once this is done, you will have access to a `whotracksme` entry point that can
be used this way:

```sh
$ whotracksme website [serve]
```

The `serve` part is optional and can be used while making changes on the
website.

All generated artifacts can be found in the `_site/` folder.

## Tests

To run tests, you will need `pytest`, or simply install `whotacksme` with the
`test` extra:

```sh
$ pip install -e '.[test,website]'
$ pytest
```

# Contributing

We are happy to take contributions on:
* guest articles for our blog in the topics of tracking, privacy and security. Feel free to use the data in this repository if you need inspiration.
* Curating our database of tracker profiles.


# License

The content of this project itself is licensed under the [Creative Commons Attribution 4.0 license](https://creativecommons.org/licenses/by/4.0/), and the underlying
source code used to generate and display that content is licensed under the [MIT license](https://github.com/cliqz-oss/whotracks.me/blob/master/LICENSE.md).