Skip to content

Commit

Permalink
Fixed issue reported by Flake8. Ensuring tests run on PY 3.9.
Browse files Browse the repository at this point in the history
  • Loading branch information
madpah committed Aug 31, 2021
1 parent 6ac5dc2 commit cce130f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cyclonedx/parser/requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self, requirements_content: str):
@todo
Note that the below line will get the first (lowest) version specified in the Requirement and
ignore the operator (it might not be ==). This is passed to the Component.
For example if a requirement was listed as: "PickyThing>1.6,<=1.9,!=1.8.6", we'll be interpretting this
as if it were written "PickyThing==1.6"
"""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
package_data={
'cyclonedx': ['schema/*.json', 'schema/*.xsd', 'schema/ext/*.json', 'schema/ext/*.xsd']
},
data_files=['README.md', 'requirements.txt', 'VERSION'],
data_files=[('', ['README.md', 'requirements.txt', 'requirements-test.txt', 'VERSION'])],
include_package_data=True,
install_requires=open(os.path.join(script_path, 'requirements.txt')).read()
)
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ minversion=3.9.0
envlist = flake8,py39

[testenv]
;changedir = tests
deps = -r{toxinidir}/requirements-test.txt
deps =
-r{toxinidir}/requirements-test.txt
commands = python -m unittest discover -s tests

[testenv:flake8]
basepython = python3
skip_install = true
deps =
flake8
-r{toxinidir}/requirements-test.txt
commands = flake8 cyclonedx/ tests/ setup.py

[flake8]
Expand Down

0 comments on commit cce130f

Please sign in to comment.