Commit 857052a0 by Sébastien Eustace

Update docs and README

parent 5acb920d
...@@ -153,7 +153,7 @@ There are some things we can notice here: ...@@ -153,7 +153,7 @@ There are some things we can notice here:
`poetry` will also detect if you are inside a virtualenv and install the packages accordingly. `poetry` will also detect if you are inside a virtualenv and install the packages accordingly.
So, `poetry` can be installed globally and used everywhere. So, `poetry` can be installed globally and used everywhere.
`poetry` also comes with a full fledged dependency resolution library, inspired by [Molinillo](https://github.com/CocoaPods/Molinillo). `poetry` also comes with a full fledged dependency resolution library.
## Why? ## Why?
......
...@@ -35,18 +35,26 @@ The `^` operator works very well with libraries following [semantic versioning]( ...@@ -35,18 +35,26 @@ The `^` operator works very well with libraries following [semantic versioning](
## Is tox supported? ## Is tox supported?
For now, you can use Poetry with [tox](https://tox.readthedocs.io/en/latest/) by using something similar to what is done in the [Pendulum](https://github.com/sdispater/pendulum/blob/master/tox.ini) package. Yes. By using the [isolated builds](https://tox.readthedocs.io/en/latest/config.html#conf-isolated_build) `tox` provides,
you can use it in combination with the PEP 517 compliant build system provided by Poetry.
Minimal viable `tox.ini` configuration file looks like this: So, in your `pyproject.toml` file add this section if does not already exists:
```toml
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
```
And use a `tox.ini` configuration file similar to this:
```INI ```INI
[tox] [tox]
skipsdist = True isolated_build = true
envlist = py27, py36 envlist = py27, py36
[testenv] [testenv]
whitelist_externals = poetry whitelist_externals = poetry
skip_install = true
commands = commands =
poetry install -v poetry install -v
poetry run pytest tests/ poetry run pytest tests/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment