Browse Source

Update requirements.txt

bad-missing-license
carmenbianca 3 weeks ago
parent
commit
9419d4bacf
Signed by: Carmen Bianca Bakker <carmenbianca@fsfe.org> GPG Key ID: 76EBA6F6B6EA2EC9
5 changed files with 30 additions and 24 deletions
  1. +19
    -19
      requirements.txt
  2. +3
    -1
      src/reuse/_util.py
  3. +1
    -3
      src/reuse/report.py
  4. +1
    -1
      tests/conftest.py
  5. +6
    -0
      tests/test_util.py

+ 19
- 19
requirements.txt View File

@@ -2,29 +2,29 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later

python-debian==0.1.34
requests==2.21.0
license-expression==0.99
boolean.py==3.6
Jinja2==2.10.1
python-debian==0.1.36
requests==2.22.0
license-expression==1.2
boolean.py==3.7
Jinja2==2.10.3
binaryornot==0.4.4

sphinx==1.7.6
sphinx_rtd_theme==0.4.1
sphinx-autodoc-typehints==1.3.0
sphinx==2.2.1
sphinx_rtd_theme==0.4.3
sphinx-autodoc-typehints==1.10.3
sphinxcontrib-apidoc==0.3.0
recommonmark==0.5.0
recommonmark==0.6.0

pylint==2.3.1
pylint==2.4.4
black==19.3b0
isort==4.3.17
isort==4.3.21

tox==3.8.6
pytest==4.4.0
pytest-cov==2.6.1
tox==3.14.1
pytest==5.2.4
pytest-cov==2.8.1

wheel==0.33.1
twine==1.13.0
bump2version==0.5.10
pre-commit==1.12.0
setuptools==41.0.1
wheel==0.33.6
twine==3.0.0
bump2version==0.5.11
pre-commit==1.20.0
setuptools==41.6.0

+ 3
- 1
src/reuse/_util.py View File

@@ -73,7 +73,9 @@ def execute_command(
stdout = kwargs.get("stdout", subprocess.PIPE)
stderr = kwargs.get("stderr", subprocess.PIPE)

return subprocess.run(command, stdout=stdout, stderr=stderr, **kwargs)
return subprocess.run(
command, stdout=stdout, stderr=stderr, check=False, **kwargs
)


def find_root() -> Optional[Path]:

+ 1
- 3
src/reuse/report.py View File

@@ -286,9 +286,7 @@ class FileReport:
"name": self.spdxfile.name,
"spdx_id": self.spdxfile.spdx_id,
"chk_sum": self.spdxfile.chk_sum,
"licenses_in_file": [
lic for lic in self.spdxfile.licenses_in_file
],
"licenses_in_file": sorted(self.spdxfile.licenses_in_file),
"copyright": self.spdxfile.copyright,
}


+ 1
- 1
tests/conftest.py View File

@@ -4,7 +4,7 @@

"""Global fixtures and configuration."""

# pylint: disable=redefined-outer-name
# pylint: disable=redefined-outer-name,subprocess-run-check

import logging
import os

+ 6
- 0
tests/test_util.py View File

@@ -171,6 +171,8 @@ def test_pathtype_read_not_readable(fake_repository):
with pytest.raises(ArgumentTypeError):
_util.PathType("r")("src/source_code.py")

os.chmod("src/source_code.py", 0o777)


def test_pathtype_read_not_exists(empty_directory):
"""Cannot read a file that does not exist."""
@@ -206,6 +208,8 @@ def test_pathtype_write_exists_but_not_writeable(fake_repository):
with pytest.raises(ArgumentTypeError):
_util.PathType("w")("src/source_code.py")

os.chmod("src/source_code.py", 0o777)


@no_root
def test_pathtype_write_not_exist_but_directory_not_writeable(fake_repository):
@@ -217,6 +221,8 @@ def test_pathtype_write_not_exist_but_directory_not_writeable(fake_repository):
with pytest.raises(ArgumentTypeError):
_util.PathType("w")("src/foo.py")

os.chmod("src", 0o777)


def test_pathtype_invalid_mode(empty_directory):
"""Only valid modes are 'r' and 'w'."""

Loading…
Cancel
Save