Skip to content

Commit

Permalink
Fixed check_reqs and added psutil as dep; Addressed safety issues (#1060
Browse files Browse the repository at this point in the history
)

Signed-off-by: Andreas Maier <maiera@de.ibm.com>
  • Loading branch information
andy-maier authored Aug 16, 2024
1 parent c8fcd5b commit 1e977fd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,16 @@ safety_develop_policy_file := .safety-policy-develop.yml
# Packages whose dependencies are checked using pip-missing-reqs
# ansible_test is checked only on officially supported Python versions
ifeq ($(python_m_n_version),3.8)
check_reqs_packages := ansible pip_check_reqs pytest coverage coveralls flake8 sphinx ansible_doc_extractor pylint
check_reqs_packages := ansible pip_check_reqs pytest coverage coveralls flake8 sphinx ansible_doc_extractor pylint safety bandit
else ifeq ($(python_m_n_version),3.9)
check_reqs_packages := ansible pip_check_reqs pytest coverage coveralls flake8 sphinx ansible_doc_extractor ansible_test pylint
check_reqs_packages := ansible pip_check_reqs pytest coverage coveralls flake8 sphinx ansible_doc_extractor pylint safety bandit ansible_test
else ifeq ($(python_m_n_version),3.10)
check_reqs_packages := ansible pip_check_reqs pytest coverage coveralls flake8 sphinx ansible_doc_extractor ansible_test ansiblelint pylint
check_reqs_packages := ansible pip_check_reqs pytest coverage coveralls flake8 sphinx ansible_doc_extractor pylint safety bandit ansible_test ansiblelint
else ifeq ($(python_m_n_version),3.11)
check_reqs_packages := ansible pip_check_reqs pytest coverage coveralls flake8 sphinx ansible_doc_extractor ansible_test ansiblelint pylint
check_reqs_packages := ansible pip_check_reqs pytest coverage coveralls flake8 sphinx ansible_doc_extractor pylint safety bandit ansible_test ansiblelint
else
# sphinx is excluded because pip-missing-reqs 2.5 reports missing sphinx-versions package (rightfully)
check_reqs_packages := ansible pip_check_reqs pytest coverage coveralls flake8 ansible_doc_extractor ansible_test ansiblelint pylint
check_reqs_packages := ansible pip_check_reqs pytest coverage coveralls flake8 ansible_doc_extractor pylint safety bandit ansible_test ansiblelint
endif

# Directories for documentation
Expand Down
2 changes: 1 addition & 1 deletion docs/source/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Availability: `AutomationHub`_, `Galaxy`_, `GitHub`_

**Bug fixes:**

* Fixed safety issues up to 20024-07-28.
* Fixed safety issues up to 20024-08-16.

* Sanity test: Fixed the sanity test on AutomationHub which failed because the
"compile" and "import" tests were run for all target node Python versions,
Expand Down
6 changes: 4 additions & 2 deletions minimum-constraints-develop.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ pydantic==1.10.13; python_version <= '3.12'
typer==0.12.0; python_version <= '3.12'
typer-cli==0.12.0; python_version <= '3.12'
typer-slim==0.12.0; python_version <= '3.12'
psutil==6.0.0

# Bandit checker
bandit==1.7.8
Expand Down Expand Up @@ -123,7 +124,7 @@ pip-check-reqs==2.5.3; python_version >= '3.12'
alabaster==0.7.9
attrs==19.2.0
bleach==3.3.0
certifi==2023.07.22
certifi==2024.07.04
chardet==3.0.3
configparser==4.0.2
contextlib2==0.6.0
Expand All @@ -142,9 +143,10 @@ py==1.11.0 # Still required by pytest 6.2.5
requests-toolbelt==0.8.0
smmap==3.0.1
snowballstemmer==2.0.0
stevedore==5.2.0
toml==0.10.0
tomli==2.0.1
typing-extensions==4.7.1
wcwidth==0.1.7
webencodings==0.5.1
zipp==0.5.2
zipp==3.19.1
1 change: 1 addition & 0 deletions requirements-develop.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ pydantic>=1.10.13; python_version <= '3.12'
typer>=0.12.0; python_version <= '3.12'
typer-cli>=0.12.0; python_version <= '3.12'
typer-slim>=0.12.0; python_version <= '3.12'
psutil>=6.0.0

# Bandit checker
bandit>=1.7.8
Expand Down

0 comments on commit 1e977fd

Please sign in to comment.