diff --git a/.circleci/config.yml b/.circleci/config.yml index 997eed1b..135a8505 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -47,6 +47,10 @@ jobs: - image: cimg/python:3.12 steps: - checkout + - run: + name: install dependencies + command: > + pip3 install --user -r ci-requirements.txt - run: name: install dependencies command: > diff --git a/.drone.yml b/.drone.yml index 7c476739..b2ad1f22 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,30 +10,35 @@ steps: - name: client-test-38 image: python:3.8 commands: + - pip3 install -r ci-requirements.txt --user - pip3 install -r requirements.txt --user - pip3 install -r test-requirements.txt --user - python3 -m pytest --no-header -vv --disable-warnings --cov=pycti --drone - name: client-test-39 image: python:3.9 commands: + - pip3 install -r ci-requirements.txt --user - pip3 install -r requirements.txt --user - pip3 install -r test-requirements.txt --user - python3 -m pytest --no-header -vv --disable-warnings --cov=pycti --drone - name: client-test-310 image: python:3.10 commands: + - pip3 install -r ci-requirements.txt --user - pip3 install -r requirements.txt --user - pip3 install -r test-requirements.txt --user - python3 -m pytest --no-header -vv --disable-warnings --cov=pycti --drone - name: client-test-311 image: python:3.11 commands: + - pip3 install -r ci-requirements.txt --user - pip3 install -r requirements.txt --user - pip3 install -r test-requirements.txt --user - python3 -m pytest --no-header -vv --disable-warnings --cov=pycti --drone - name: client-test-312 image: python:3.12 commands: + - pip3 install -r ci-requirements.txt --user - pip3 install -r requirements.txt --user - pip3 install -r test-requirements.txt --user - python3 -m pytest --no-header -vv --disable-warnings --cov=pycti --drone diff --git a/ci-requirements.txt b/ci-requirements.txt new file mode 100644 index 00000000..dfbeefb1 --- /dev/null +++ b/ci-requirements.txt @@ -0,0 +1 @@ +setuptools~=78.1.0; python_version >= '3.10' \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 3758794c..69a0bfc0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,7 @@ python_json_logger~=2.0.4 PyYAML~=6.0 pydantic>=2.8.2,<2.11 requests>=2.32.0,<=2.32.3 -setuptools~=71.1.0 +setuptools>=71.1.0,<79.0.0 cachetools~=5.5.0 prometheus-client~=0.21.1 opentelemetry-api>=1.22.0,<=1.30.0 diff --git a/setup.cfg b/setup.cfg index df1a6d00..62a50c2b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -43,7 +43,7 @@ install_requires = python_json_logger~=2.0.4 PyYAML~=6.0 requests>=2.32.0,<=2.32.3 - setuptools~=71.1.0 + setuptools>=71.1.0,<79.0.0 cachetools~=5.5.0 prometheus-client~=0.21.1 opentelemetry-api>=1.22.0,<=1.30.0