diff --git a/Makefile b/Makefile index c63e83b..4f8de31 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ all: lint test build build: changelog + cut -d= -f1 requirements.txt > tests/resources/requirements-latest.txt PYTHONPATH=. python3 -m build changelog: diff --git a/requirements.txt b/requirements.txt index cb67941..032880d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,9 @@ -attrs==21.4.0 +attrs==22.1.0 bandit==1.7.4 build==0.8.0 colorama==0.4.5 coverage==6.4.2 -flake8==4.0.1 +flake8==5.0.4 flake8-docstrings==1.6.0 flake8-quotes==3.3.1 future==0.18.2 @@ -15,24 +15,23 @@ iniconfig==1.1.1 Mako==1.2.1 mando==0.6.4 MarkupSafe==2.1.1 -mccabe==0.6.1 +mccabe==0.7.0 packaging==21.3 parse==1.19.0 parse-type==0.6.0 pathspec==0.9.0 pbr==5.9.0 -pep517==0.12.0 +pep517==0.13.0 pluggy==1.0.0 py==1.11.0 -pycodestyle==2.8.0 +pycodestyle==2.9.1 pydocstyle==6.1.1 -pyflakes==2.4.0 +pyflakes==2.5.0 pyparsing==3.0.9 pystache==0.6.0 pytest==7.1.2 pytest-bdd==6.0.1 pytest-cov==3.0.0 -pytest-flake8==1.1.1 pytest-testinfra==6.8.0 PyYAML==6.0 radon==5.1.0 @@ -42,5 +41,5 @@ smmap==5.0.0 snowballstemmer==2.2.0 stevedore==4.0.0 tomli==2.0.1 -urllib3==1.26.10 +urllib3==1.26.11 yamllint==1.27.1 diff --git a/setup.cfg b/setup.cfg index 2cb9718..2a4e854 100644 --- a/setup.cfg +++ b/setup.cfg @@ -13,7 +13,7 @@ per-file-ignores = tests/*:D104,D401,D403 [tool:pytest] -addopts = --cov --durations 3 --flake8 --verbose +addopts = --cov --durations 3 --verbose bdd_features_base_dir = tests/features/ markers = system_tests: Marks tests as system tests. diff --git a/tests/features/example.feature b/tests/features/example.feature index b98bdb2..caf4339 100644 --- a/tests/features/example.feature +++ b/tests/features/example.feature @@ -85,7 +85,7 @@ Feature: Example of Testinfra BDD When the pip package is testinfra-bdd # Can check if the package is absent or present. Then the pip package is present - And the pip package version is 1.0.6 + And the pip package version is 2.0.0 # Check that installed packages have compatible dependencies. And the pip check is OK diff --git a/tests/resources/requirements-latest.txt b/tests/resources/requirements-latest.txt index f95ddde..8f71b13 100644 --- a/tests/resources/requirements-latest.txt +++ b/tests/resources/requirements-latest.txt @@ -1,5 +1,3 @@ -# This file should contain all the packages in the requirements.txt file in -# the root directory of this project except with no version specification. attrs bandit build @@ -34,7 +32,6 @@ pystache pytest pytest-bdd pytest-cov -pytest-flake8 pytest-testinfra PyYAML radon diff --git a/tests/resources/sut/Dockerfile b/tests/resources/sut/Dockerfile index a11d5dc..9c2abbc 100644 --- a/tests/resources/sut/Dockerfile +++ b/tests/resources/sut/Dockerfile @@ -13,7 +13,7 @@ RUN apt-get clean \ && rm -rf /var/lib/apt/lists/* \ && chmod 544 /etc/ntp.conf \ && chown ntp:ntp /etc/ntp.conf \ - && pip install --no-cache-dir semver==2.12.0 testinfra-bdd==1.0.6 + && pip install --no-cache-dir semver==2.12.0 testinfra-bdd==2.0.0 COPY issue21.txt /tmp