Skip to content

Commit ec3429e

Browse files
authored
Update Licenses (#876)
* Change licenses * Set 3.0.0 as upper bound on pytorch version * Remove macos from ci builds * Update changelog in prep for release * Add security to CI * Replace binom_test with binomtest * Fix Scikit-learn CalibratedClassifierCV signature and binomtest return value * Update contributing.md * Remove references to open source in README.md
1 parent 7dcac8a commit ec3429e

File tree

18 files changed

+5383
-4831
lines changed

18 files changed

+5383
-4831
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,9 @@ jobs:
3535
matrix:
3636
os: [ ubuntu-latest ]
3737
python-version: [ '3.8', '3.9', '3.10', '3.11']
38-
include: # Run macos and windows tests on only one python version
38+
include: # Run windows tests on only one python version
3939
- os: windows-latest
4040
python-version: '3.10' # torch 1.x not available on Windows or MacOS for Python 3.11
41-
- os: macos-latest
42-
python-version: '3.10'
4341

4442
steps:
4543
- name: Checkout code
@@ -68,9 +66,6 @@ jobs:
6866

6967
- name: Test with pytest
7068
run: |
71-
if [ "$RUNNER_OS" == "macOS" ]; then # Avoid numba/OpenMP segfault in CVMDrift (https://github.com/SeldonIO/alibi-detect/issues/648)
72-
export NUMBA_THREADING_LAYER="workqueue"
73-
fi
7469
pytest --randomly-seed=0 alibi_detect
7570
# Note: The pytest-randomly seed is fixed at 0 for now. Once the legacy np.random.seed(0)'s
7671
# are removed from tests, this can be removed, allowing all tests to use random seeds.

.github/workflows/security.yaml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Security Scan
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- release/*
8+
schedule:
9+
- cron: "0 0 * * 1"
10+
workflow_dispatch:
11+
12+
jobs:
13+
scan-code:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Python 3.10
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: '3.10'
21+
- name: Install dependencies
22+
run: |
23+
pip install .[all]
24+
- name: Create requirements.txt
25+
run: |
26+
# Snyk has issues working with complex setup.py files (e.g.
27+
# https://github.com/snyk/cli/issues/1367).
28+
# To account for this, we set up the environment and then dump it
29+
# into a `requirements.txt` - this env includes both production and
30+
# development dependencies.
31+
# TODO: Once we move into Poetry, this can be replaced for the lock
32+
# file.
33+
pip freeze > requirements.txt
34+
- name: Security Scan
35+
uses: snyk/actions/python-3.10@master
36+
with:
37+
args: --fail-on=upgradable
38+
--severity-threshold=high
39+
--all-projects
40+
--exclude=tests,testing,docs
41+
--sarif-file-output=snyk-code.sarif
42+
env:
43+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
44+
45+
static-code-analysis:
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v3
49+
- name: Static Code Analysis Scan
50+
uses: snyk/actions/python-3.10@master
51+
with:
52+
command: code test
53+
args: --fail-on=upgradable
54+
--severity-threshold=high
55+
--all-projects
56+
--exclude=tests,docs
57+
--sarif-file-output=snyk-sat.sarif
58+
env:
59+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

.github/workflows/test_all_notebooks.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@ jobs:
2121
matrix:
2222
os: [ ubuntu-latest ]
2323
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
24-
include: # Run macos and windows tests on only one python version
24+
include: # Run windows tests on only one python version
2525
- os: windows-latest
26-
python-version: '3.10' # torch 1.x not available on Windows or MacOS for Python 3.11
27-
- os: macos-latest
28-
python-version: '3.10'
26+
python-version: '3.10' # torch 1.x not available on Windows for Python 3.11
2927

3028
steps:
3129
- name: Checkout code

.github/workflows/test_changed_notebooks.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@ jobs:
2828
matrix:
2929
os: [ ubuntu-latest ]
3030
python-version: [ '3.8', '3.9', '3.10', '3.11' ]
31-
include: # Run macos and windows tests on only one python version
31+
include: # Run windows tests on only one python version
3232
- os: windows-latest
33-
python-version: '3.10' # torch 1.x not available on Windows or MacOS for Python 3.11
34-
- os: macos-latest
35-
python-version: '3.10'
33+
python-version: '3.10' # torch 1.x not available on Windows for Python 3.11
3634

3735
steps:
3836
- name: Checkout code

.snyk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
2+
version: v1.25.0

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
# Change Log
22

3+
## [v0.11.5](https://github.com/SeldonIO/alibi-detect/tree/v0.11.5) (2024-22-01)
4+
[Full Changelog](https://github.com/SeldonIO/alibi-detect/compare/v0.11.4...v0.11.5)
5+
6+
This is a patch release fixing several bugs, updating dependencies and a change of license.
7+
8+
### Added
9+
- Allow pickle when loading numpy array file ([#836](https://github.com/SeldonIO/alibi-detect/pull/836))
10+
- Add abbreviations in the getting_started page ([#863](https://github.com/SeldonIO/alibi-detect/pull/863))
11+
12+
### Fixed
13+
- Remove scale_identity_multiplier to support tensorflow-probability 0.20 ([#828](https://github.com/SeldonIO/alibi-detect/pull/828))
14+
- Docs/dont load sklearn detectors in notebooks ([#842](https://github.com/SeldonIO/alibi-detect/pull/842))
15+
- Add notebooks tests for 3.11 ([#840](https://github.com/SeldonIO/alibi-detect/pull/840)) & ([#841](https://github.com/SeldonIO/alibi-detect/pull/841))
16+
- Split tox ci job into seperate jobs ([#843](https://github.com/SeldonIO/alibi-detect/pull/843))
17+
- Fix E721 linting errors ([#846](https://github.com/SeldonIO/alibi-detect/pull/846))
18+
- Change legacy tf optimizers types to forwardrefs ([#858](https://github.com/SeldonIO/alibi-detect/pull/858))
19+
- Remove deprecated multichannel keyword from skimage.filters.gaussian ([#857](https://github.com/SeldonIO/alibi-detect/pull/857))
20+
- Update Alibi_Detect_Logo_rgb image with white stroked letters ([#862](https://github.com/SeldonIO/alibi-detect/pull/862))
21+
- Update typechecking for mypy 1.7.0 ([#866](https://github.com/SeldonIO/alibi-detect/pull/866))
22+
23+
### Changed
24+
- Alibi-Detect License change from Apache to Business Source License 1.1 ([#876](https://github.com/SeldonIO/alibi-detect/pull/876))
25+
26+
### Development
27+
- Set 3.0.0 as upper bound on pytorch version (link tbd)
28+
- Update myst-parser requirement upper bound from 2.0 to 3.0 ([#815](https://github.com/SeldonIO/alibi-detect/pull/815))
29+
- Update pillow requirement upper bound from 10.0.0 to 11.0.0 ([#822](https://github.com/SeldonIO/alibi-detect/pull/822))
30+
- Update xgboost requirement upper bound from 2.0.0 to 3.0.0 ([#850](https://github.com/SeldonIO/alibi-detect/pull/850))
31+
- Bump tensorflow and tfp ([#860](https://github.com/SeldonIO/alibi-detect/pull/860))
32+
- Bump sphinx-design from 0.4.1 to 0.5.0 ([#845](https://github.com/SeldonIO/alibi-detect/pull/845))
33+
- Update scikit-image requirement ([#855](https://github.com/SeldonIO/alibi-detect/pull/855))
34+
- Update sphinxcontrib-apidoc requirement ([#848](https://github.com/SeldonIO/alibi-detect/pull/848))
35+
- Update numba requirement ([#851](https://github.com/SeldonIO/alibi-detect/pull/851))
36+
- Remove macos from ci ([#876](https://github.com/SeldonIO/alibi-detect/pull/876))
37+
- Add security scans to CI ([#876](https://github.com/SeldonIO/alibi-detect/pull/876))
38+
39+
340
## [v0.11.4](https://github.com/SeldonIO/alibi-detect/tree/v0.11.4) (2023-07-07)
441
[Full Changelog](https://github.com/SeldonIO/alibi-detect/compare/v0.11.3...v0.11.4)
542

CONTRIBUTING.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
We welcome PRs from the community. This document outlines the standard
44
practices and development tools we use.
55

6-
When you contribute code, you affirm that the contribution is your original work and that you license the work to the project under the project's open source license. Whether or not you state this explicitly, by submitting any copyrighted material via pull request, email, or other means you agree to license the material under the project's open source license and warrant that you have the legal authority to do so.
6+
When you contribute code, you affirm that the contribution is your original work and that you license the work to the project under the project's license. Whether or not you state this explicitly, by submitting any copyrighted material via pull request, email, or other means you agree to license the material under the project's license and warrant that you have the legal authority to do so.
77

88
## Getting started
99
The easiest way to get started is to install all the development dependencies
@@ -180,8 +180,6 @@ the CI Guthub Action runner.
180180

181181
- If the registered public SSH key is not your default private SSH key, you will need to specify the path manually, like so: ssh -i <path-to-key> <tmate-connection-string>.
182182
- Once you have finished debugging, you can continue the workflow (i.e. let the full build CI run) by running `touch continue` whilst in the root directory (`~/work/alibi-detect/alibi-detect`). This will close the tmate session.
183-
- This new capability is currently temperamental on the `MacOS` build due to [this issue](https://github.com/mxschmitt/action-tmate/issues/69). If the MacOS build fails all the builds are failed. If this happens, it is
184-
recommended to retrigger only the workflow build of interest e.g. `ubuntu-latest, 3.10`, and then follow the instructions above from step 3.
185183

186184
## Optional Dependencies
187185

0 commit comments

Comments
 (0)