Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ build/
dist/
htmlcov/
pytest_datafiles.egg-info/
poetry.lock

10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
language: python
python:
- 2.7
- 3.4
- 3.5
- 3.6
- pypy

install:
- pip install --upgrade pip
- pip install --upgrade pytest
- pip install coveralls
- pip install poetry

script:
- python setup.py develop
- coverage run --source=pytest_datafiles runtests.py
- poetry install
- poetry add coveralls
- poetry run coverage run --source=pytest_datafiles runtests.py

after_success:
- coveralls
- poetry run coveralls
27 changes: 16 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,25 @@ clean-test:
rm -f .coverage
rm -fr htmlcov/

lint:
tox -e lint
install:
@poetry install

test:
tox -e py35
lint: install
@poetry run pylint pytest_datafiles.py

test: install
@poetry run pytest

test-all:
tox
@poetry run tox

coverage:
tox -e coverage
xdg-open htmlcov/index.html
coverage: install
@poetry run pytest \
--cov-config .coveragerc \
--cov-report html \
--cov=pytest_datafiles \
tests

dist: clean
python setup.py sdist
python setup.py bdist_wheel
ls -l dist
@poetry build

39 changes: 39 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[tool.poetry]
name = "pytest-datafiles"
version = "2.0.0"
description = "py.test plugin to create a 'tmpdir' containing predefined files/directories."
authors = ["Omar Kohl <[email protected]>"]
license = "MIT"

[tool.poetry.dependencies]
python = "~2.7 || ^3.5"
pytest = "^3.6"

[tool.poetry.dev-dependencies]
autopep8 = "*"
codecov = "*"
flake8 = "*"
pylint = "*"
pytest-cov = "*"
setuptools = "*"
tox = "*"
twine = "*"
wheel = "*"

[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = True
envlist = py35,py36,py37

[testenv]
whitelist_externals = poetry
commands =
poetry install -vvv
poetry run pytest
"""

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"