Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
6e7ff5e
Use default version in ez_setup which is greater than 0.7.0
vstoykov Mar 21, 2016
ec1f842
test using tox
Mar 21, 2016
5996dfb
Bootstrap uv project
sevein Sep 5, 2024
fa30dae
Remove Travis CI integration
sevein Sep 5, 2024
4230cb8
Describe project license (GPL-2.0)
sevein Sep 5, 2024
8e589b6
Remove unneeded files
sevein Sep 5, 2024
2756c9f
Update project layout
sevein Sep 5, 2024
a2c196c
Use importlib.metadata to obtain the version number
sevein Sep 5, 2024
44e703d
Implement tests using pytest functions
sevein Sep 5, 2024
fe67786
Fix optional member access
sevein Sep 5, 2024
c2b497c
Format code with ruff
sevein Sep 5, 2024
3d0526c
Add test workflow
sevein Sep 5, 2024
d5460bd
Update .gitignore
sevein Sep 5, 2024
4459b50
Add release workflow
sevein Sep 5, 2024
54aafb5
Bump version to 0.2.0
sevein Sep 5, 2024
67f54ee
Move EICAR to tests
sevein Sep 9, 2024
cdeead8
Move clamd client to its own module
sevein Sep 9, 2024
bf97d57
Add type hints
sevein Sep 9, 2024
2e961e5
Enable additional linters
sevein Sep 9, 2024
a3c78a9
Add test script
sevein Sep 9, 2024
8d3efb4
Clarify the purpose of the fork
sevein Sep 9, 2024
a29340e
Use dynamic version with hatch-vcs
sevein Sep 9, 2024
d93bf6c
Update license attribute
sevein Sep 9, 2024
537b746
Use astra-sh/setup-uv@v2
sevein Sep 9, 2024
3910715
Add scanner interface
sevein Sep 10, 2024
d69d68b
Add coverage report
sevein Sep 11, 2024
e61c6e5
Use codecov badge for main branch
sevein Sep 11, 2024
6863729
Pass --no-summary to clamscan
sevein Sep 13, 2024
39c42d2
Adjust coverage config
sevein Sep 16, 2024
b7630e6
Handle CalledProcessError attrs when None
sevein Sep 16, 2024
bc1b652
Implement streaming in scanner
sevein Sep 16, 2024
abb7003
Add test.sh --latest flag
sevein Sep 16, 2024
50e3d59
Generate html covreport in default location
sevein Sep 16, 2024
fec5ee2
Document scanner methods
sevein Sep 16, 2024
2781649
Use slow marker in pytest
sevein Sep 16, 2024
7a3e3b5
Update cache to index by program name
sevein Sep 16, 2024
f48f7cb
Test instream over TCP
sevein Sep 16, 2024
442fd19
Add test to confirm exception handling
sevein Sep 16, 2024
bc4eb97
Add test to confirm invalid address exception
sevein Sep 16, 2024
9dbd5e3
Fix syntax issue
sevein Sep 16, 2024
801a4ee
Add passed prop to ScanResult
sevein Sep 16, 2024
a9edcbe
Test passed prop
sevein Sep 16, 2024
ef4eed7
Update coverage link
sevein Sep 16, 2024
eba48c6
Fix tests in CI
sevein Sep 16, 2024
98f52a9
Update README
sevein Sep 17, 2024
b16a079
Add unit tests
sevein Sep 17, 2024
1f09f2b
Enable pyupgrade rules
sevein Sep 17, 2024
2020cd2
Include tip to install uv from test.sh
sevein Sep 17, 2024
ef6581f
Test passed prop with OSError
sevein Sep 17, 2024
610941d
Fix use of source attr in coverage config
sevein Sep 18, 2024
f49d280
Upload test results to Codecov
sevein Sep 18, 2024
9ea770c
Include prereleases in test script
sevein Sep 18, 2024
6c90687
Don't overwrite .venv in test runner
sevein Sep 18, 2024
aabcf12
Test clamscan output parse functions
sevein Sep 18, 2024
f25f295
Test scenario with missing file report entry
sevein Sep 18, 2024
eaa324a
Update test job name
sevein Sep 25, 2024
ce49027
Always reuse project env
sevein Sep 25, 2024
6c58b58
fix/network_socket_timeout
tdethier Jan 24, 2025
1297f43
Update dependencies
sevein May 14, 2025
200bda0
Update uv action
sevein May 14, 2025
a805a14
Update EICAR name
sevein May 14, 2025
d6ba7a1
Add project.urls to pyproject.toml
RichieB2B May 15, 2025
541d925
Download main and daily dbs in CI
sevein May 15, 2025
dd59841
use sendall vs send which does not guarentee all bytes will be sent
nwray-credibly Mar 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: "Release"
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: "ubuntu-22.04"
steps:
- name: Check out repository
uses: "actions/checkout@v4"
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
version: latest
- name: Build package
run: uv build
- name: "Save distribution directory"
uses: "actions/upload-artifact@v4"
with:
name: dist
path: dist
upload:
needs: "build"
runs-on: "ubuntu-22.04"
environment: "release"
permissions:
id-token: "write"
steps:
- name: "Restore distribution directory"
uses: "actions/download-artifact@v4"
with:
name: dist
path: dist
- name: "Upload distribution packages to PyPI"
uses: "pypa/gh-action-pypi-publish@release/v1"
44 changes: 44 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
name: "Test"
on:
pull_request:
push:
branches:
- "main"
env:
CLAMD_UNIX_SOCKET: "/tmp/clamd.socket"
CLAMD_TCP_PORT: "3310"
jobs:
test:
name: "Test"
runs-on: "ubuntu-22.04"
steps:
- name: "Check out repository"
uses: "actions/checkout@v4"
- name: Start ClamAV daemon clamd
uses: toblux/start-clamd-github-action@bae519cc165de29b89cbb9c4528f61c34b1c848b # v0.2.1
with:
unix_socket: ${{ env.CLAMD_UNIX_SOCKET }}
tcp_port: ${{ env.CLAMD_TCP_PORT }}
stream_max_length: 1M
db_main: true
db_daily: true
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
version: latest
- name: Run tests
run: ./test.sh
- name: "Upload coverage report"
if: github.repository == 'artefactual-labs/clamav-client'
uses: "codecov/codecov-action@v4"
with:
files: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
files: ./junit.xml
token: ${{ secrets.CODECOV_TOKEN }}
41 changes: 7 additions & 34 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,36 +1,9 @@
.venv/
__pycache__/
*.py[cod]

# C extensions
*.so

# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
lib
lib64
__pycache__

# Installer logs
pip-log.txt

# Unit test / coverage reports
*.egg-info/
dist/
.coverage
.tox
nosetests.xml

# Translations
*.mo

# Mr Developer
.mr.developer.cfg
.project
.pydevproject
coverage.xml
htmlcov/
junit.xml
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

40 changes: 0 additions & 40 deletions CHANGES.rst

This file was deleted.

Loading