Skip to content

Commit

Permalink
fix requires
Browse files Browse the repository at this point in the history
  • Loading branch information
lostsnow committed Jun 6, 2022
1 parent 5cc1083 commit 1ef3f99
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/vul-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ jobs:
- name: Run Vul test
run: |
curl --fail --retry-delay 10 --retry 30 --retry-connrefused http://127.0.0.1:8003/api/django/demo/get_open?name=Data
cd ${{ github.workspace }}/DockerVulspace
curl --fail --retry-delay 10 --retry 30 --retry-connrefused http://127.0.0.1:8003/api/django/demo/get_open?name=Data
docker-compose logs djangoweb flaskweb
docker-compose exec -T djangoweb python -V
docker-compose exec -T djangoweb pip list
docker-compose exec -T flaskweb python -V
docker-compose exec -T flaskweb pip list
docker-compose logs djangoweb flaskweb
bash ${{ github.workspace }}/DongTai-agent-python/dongtai_agent_python/tests/vul-test.sh \
django http://127.0.0.1:8003/api/django ${{ github.run_id }}
bash ${{ github.workspace }}/DongTai-agent-python/dongtai_agent_python/tests/vul-test.sh \
Expand Down
2 changes: 1 addition & 1 deletion dongtai_agent_python/utils/shm/shm.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from dongtai_agent_python.utils.lock import lock

if sys.version_info[:3] <= (3, 7):
if sys.version_info[:3] < (3, 8):
from shared_memory.shared_memory import SharedMemory
else:
from multiprocessing.shared_memory import SharedMemory
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ install_requires =
psutil >= 5.8.0
requests >= 2.25.1
pip >= 19.2.3
shared-memory38 >= 0.1.2; python_version <= '3.7'
shared-memory38 >= 0.1.2; python_version < '3.8'
; regexploit >= 1.0.0

0 comments on commit 1ef3f99

Please sign in to comment.