Skip to content

Commit

Permalink
Merge pull request #3 from SigmaHQ/main
Browse files Browse the repository at this point in the history
keep up
  • Loading branch information
wagga40 authored Mar 16, 2024
2 parents 452b161 + 4d7ed9c commit f7b0f8d
Show file tree
Hide file tree
Showing 8 changed files with 1,040 additions and 715 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
python-version: 3.8
- name: Verify versioning
run: |
echo "$(poetry version -s)"
echo "${GITHUB_REF#refs/tags/v}"
[ "$(poetry version -s)" == "${GITHUB_REF#refs/tags/v}" ]
- name: Install dependencies
run: poetry install
Expand All @@ -36,4 +38,4 @@ jobs:
repository-url: https://test.pypi.org/legacy/
- name: Publish to PyPI
if: ${{ github.event_name == 'release' }}
uses: pypa/gh-action-pypi-publish@release/v1
uses: pypa/gh-action-pypi-publish@release/v1
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repos:
- repo: https://github.com/psf/black
rev: 24.1.1
hooks:
- id: black
1,150 changes: 629 additions & 521 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion print-coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
elif coverage >= 85.0:
print("COVERAGE_COLOR=orange")
else:
print("COVERAGE_COLOR=red")
print("COVERAGE_COLOR=red")
27 changes: 14 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
[tool.poetry]
name = "pySigma-backend-sqlite"
version = "0.1.0"
version = "0.1.2"
description = "pySigma sqlite backend"
readme = "README.md"
authors = ["wagga"]
license = "LGPL-3.0-only"
repository = "https://github.com/wagga40/pySigma-backend-sqlite"
repository = "https://github.com/SigmaHQ/pySigma-backend-sqlite"
packages = [
{ include = "sigma" }
]

[tool.poetry.dependencies]
python = "^3.8"
pysigma = "^0.10.5"
pysigma = "^0.11"

[tool.poetry.group.dev.dependencies]
pytest = "^7.4.0"
pytest-cov = "^4.1.0"
coverage = "^7.3.0"
black = "^24.1"
pytest = "^8.0"
pytest-cov = "^4.1"
coverage = "^7.4"


[tool.pdm]
Expand All @@ -27,7 +28,7 @@ dev = []
[tool.pdm.build]
includes = ["sigma"]
[build-system]
requires = ["poetry-core>=1.0.0"]
requires = ["poetry-core>=1.8.1"]
build-backend = "poetry.core.masonry.api"

[project]
Expand All @@ -37,16 +38,16 @@ authors = [
license = {text = "LGPL-3.0-only"}
requires-python = ">=3.8,<4.0"
dependencies = [
"pysigma>=0.10.2",
"pysigma>=0.11",
]
name = "pySigma-backend-sqlite"
version = "0.1.0"
version = "0.1.2"
description = "pySigma sqlite backend"

[project.urls]
repository = "https://github.com/wagga40/pySigma-backend-sqlite"
repository = "https://github.com/SigmaHQ/pySigma-backend-sqlite"

[project.group.dev.dependencies]
pytest = "^7.4.0"
pytest-cov = "^4.1.0"
coverage = "^7.3.0"
pytest = "^8.0"
pytest-cov = "^4.1"
coverage = "^7.4"
4 changes: 2 additions & 2 deletions sigma/backends/sqlite/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .sqlite import sqliteBackend

backends = { # Mapping between backend identifiers and classes. This is used by the pySigma plugin system to recognize backends and expose them with the identifier.
backends = { # Mapping between backend identifiers and classes. This is used by the pySigma plugin system to recognize backends and expose them with the identifier.
"sqlite": sqliteBackend,
}
}
312 changes: 207 additions & 105 deletions sigma/backends/sqlite/sqlite.py

Large diffs are not rendered by default.

Loading

0 comments on commit f7b0f8d

Please sign in to comment.