Skip to content

Commit 026c28c

Browse files
authored
update to latest version: v1.4.3 (#37)
1 parent e90fd59 commit 026c28c

14 files changed

Lines changed: 1098 additions & 1069 deletions

File tree

.github/workflows/publish-to-pypi.yml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -19,40 +19,40 @@ jobs:
1919
build-n-publish:
2020
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
2121
runs-on: ubuntu-latest
22-
22+
2323
steps:
24-
- uses: actions/checkout@v3
25-
- name: Set up Python
26-
uses: actions/setup-python@v4
27-
with:
28-
python-version: "3.11"
29-
30-
- name: Install pypa/build
31-
run: |
32-
python -m pip install --upgrade pip
33-
python -m pip install --upgrade setuptools
34-
python -m pip install build pipenv tox --user
35-
36-
- name: Build a binary wheel and a source tarball
37-
run: |
38-
pipenv --python 3.11
39-
make build
40-
41-
- name: tox
42-
run: >-
43-
tox
44-
45-
- name: Publish distribution 📦 to Test PyPI
46-
uses: pypa/gh-action-pypi-publish@release/v1
47-
with:
48-
skip-existing: true
49-
verbose: true
50-
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
51-
repository-url: https://test.pypi.org/legacy/
52-
- name: Publish distribution 📦 to PyPI
53-
if: startsWith(github.ref, 'refs/tags')
54-
uses: pypa/gh-action-pypi-publish@release/v1
55-
with:
56-
skip-existing: true
57-
verbose: true
58-
password: ${{ secrets.PYPI_API_TOKEN }}
24+
- uses: actions/checkout@v3
25+
- name: Set up Python
26+
uses: actions/setup-python@v4
27+
with:
28+
python-version: "3.11"
29+
30+
- name: Install pypa/build
31+
run: |
32+
python -m pip install --upgrade pip
33+
python -m pip install --upgrade setuptools
34+
python -m pip install build uv tox --user
35+
36+
- name: Build a binary wheel and a source tarball
37+
run: |
38+
uv python pin 3.11
39+
make build
40+
41+
- name: tox
42+
run: >-
43+
tox
44+
45+
- name: Publish distribution 📦 to Test PyPI
46+
uses: pypa/gh-action-pypi-publish@release/v1
47+
with:
48+
skip-existing: true
49+
verbose: true
50+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
51+
repository-url: https://test.pypi.org/legacy/
52+
- name: Publish distribution 📦 to PyPI
53+
if: startsWith(github.ref, 'refs/tags')
54+
uses: pypa/gh-action-pypi-publish@release/v1
55+
with:
56+
skip-existing: true
57+
verbose: true
58+
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/unit-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
with:
1818
python-version: "3.9"
1919

20-
# Install pipenv
21-
- name: Install pipenv
22-
run: pip install pipenv
20+
# Install uv
21+
- name: Install uv
22+
run: pip install uv
2323

2424
# Pack and publish Python SDK
2525
- name: Exec py client unit test

CHANGELOG.md

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,65 @@
11
# CHANGELOG
22

3+
## 1.4.3 - 2026-01-19
4+
5+
- Support new regions eu-west-2 and ca-central-1
6+
37
## 1.4.2 - 2025-05-13
48

5-
* Update the minimum supported version to Python 3.9
6-
* Update the maximum supported version to Python 3.13
9+
- Update the minimum supported version to Python 3.9
10+
- Update the maximum supported version to Python 3.13
711

812
## 1.4.1 - 2025-03-03
913

10-
* Support new region me-central-1
14+
- Support new region me-central-1
1115

1216
## 1.4.0 - 2024-08-21
1317

14-
* Update README.md
15-
* Support digest calculation bypass
18+
- Update README.md
19+
- Support digest calculation bypass
1620

1721
## 1.3.0 - 2024-08-20
1822

19-
* Update README.md
20-
* Support CA cert import
23+
- Update README.md
24+
- Support CA cert import
2125

2226
## 1.2.0 - 2024-07-05
2327

24-
* Support verbose scan result
28+
- Support verbose scan result
2529

2630
## 1.1.1 - 2024-04-10
2731

28-
* Update README.md
29-
* Extend the scan default timeout to 300 seconds
32+
- Update README.md
33+
- Extend the scan default timeout to 300 seconds
3034

3135
## 1.1.0 - 2024-04-03
3236

33-
* Update protos
34-
* Enable PML (Predictive Machine Learning) detection and smart feedback
35-
* Enable bulk mode
36-
* Enable India region
37-
* Support for scanning large files (over 2GB)
37+
- Update protos
38+
- Enable PML (Predictive Machine Learning) detection and smart feedback
39+
- Enable bulk mode
40+
- Enable India region
41+
- Support for scanning large files (over 2GB)
3842

3943
## 1.0.5 - 2023-12-28
4044

41-
* fix linting issues
45+
- fix linting issues
4246

4347
## 1.0.4 - 2023-05-18
4448

45-
* set default timeout_in_seconds to 180 seconds
49+
- set default timeout_in_seconds to 180 seconds
4650

4751
## 1.0.3 - 2023-05-10
4852

49-
* Change LICENSE
53+
- Change LICENSE
5054

5155
## 1.0.2 - 2023-05-10
5256

53-
* Change README.md
57+
- Change README.md
5458

5559
## 1.0.1 - 2023-05-04
5660

57-
* Add scan_buffer() function
61+
- Add scan_buffer() function
5862

5963
## 1.0.0 - 2023-05-01
6064

61-
* Initial release
65+
- Initial release

Makefile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,26 @@ PIPY_URL ?= https://upload.pypi.org/legacy/
22
TOKEN ?=
33
VERSION := $(shell cat VERSION | tr -d '\n')
44

5-
proto:
6-
pipenv sync --dev
7-
pipenv run python -m grpc_tools.protoc -Iamaas/grpc/protos=./protos \
5+
version:
6+
sed "s/_VERSION_/'"$(VERSION)"'/g" pyproject.toml > pyproject.tmp && mv pyproject.tmp pyproject.toml
7+
echo "Version set to $(VERSION)"
8+
9+
proto: version
10+
uv sync --dev
11+
uv run python -m grpc_tools.protoc -Iamaas/grpc/protos=./protos \
812
--python_out=. \
913
--pyi_out=. \
1014
--grpc_python_out=. \
1115
./protos/scan.proto
1216

1317
build: proto
14-
pipenv run pipenv-setup sync
15-
pipenv run python setup.py sdist bdist_wheel
18+
uv run python -m build --sdist --wheel
1619

1720
test: proto
18-
pipenv run pytest tests
21+
uv run pytest tests
1922

2023
upload:
21-
pipenv run twine upload --repository-url $(PIPY_URL) -u __token__ -p $(TOKEN) ./dist/*.whl --skip-existing
24+
uv run twine upload --repository-url $(PIPY_URL) -u __token__ -p $(TOKEN) ./dist/*.whl --skip-existing
2225

2326
clean:
2427
@rm -rf dist build *.egg-info amaas/grpc/protos/

Pipfile

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)