acstore
Advanced tools
| extends: default | ||
| rules: | ||
| line-length: disable | ||
| indentation: | ||
| spaces: consistent | ||
| indent-sequences: false | ||
| check-multi-line-strings: true |
@@ -10,7 +10,7 @@ # Run tests on Fedora and Ubuntu Docker images using GIFT CORP and GIFT PPA on commit | ||
| matrix: | ||
| version: ['37'] | ||
| version: ['38'] | ||
| container: | ||
| image: registry.fedoraproject.org/fedora:${{ matrix.version }} | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up container | ||
@@ -49,3 +49,3 @@ run: | | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up container | ||
@@ -52,0 +52,0 @@ env: |
@@ -22,3 +22,3 @@ # Run docs tox tests on Ubuntu Docker images using GIFT PPA | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up container | ||
@@ -25,0 +25,0 @@ env: |
@@ -20,3 +20,3 @@ # Run tox tests on Ubuntu Docker images using GIFT PPA | ||
| - python-version: '3.8' | ||
| toxenv: 'py38,coverage,codecov' | ||
| toxenv: 'py38' | ||
| - python-version: '3.9' | ||
@@ -28,2 +28,74 @@ toxenv: 'py39' | ||
| toxenv: 'py311' | ||
| container: | ||
| image: ubuntu:22.04 | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up container | ||
| env: | ||
| DEBIAN_FRONTEND: noninteractive | ||
| run: | | ||
| apt-get update -q | ||
| apt-get install -y libterm-readline-gnu-perl locales software-properties-common | ||
| locale-gen en_US.UTF-8 | ||
| ln -f -s /usr/share/zoneinfo/UTC /etc/localtime | ||
| - name: Install dependencies | ||
| env: | ||
| DEBIAN_FRONTEND: noninteractive | ||
| run: | | ||
| add-apt-repository -y universe | ||
| add-apt-repository -y ppa:deadsnakes/ppa | ||
| add-apt-repository -y ppa:gift/dev | ||
| apt-get update -q | ||
| apt-get install -y build-essential git libffi-dev python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-distutils python3-pip python3-setuptools python3-yaml | ||
| - name: Install tox | ||
| run: | | ||
| python3 -m pip install tox | ||
| - name: Run tests | ||
| env: | ||
| LANG: en_US.UTF-8 | ||
| run: | | ||
| tox -e${{ matrix.toxenv }} | ||
| coverage: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| include: | ||
| - python-version: '3.8' | ||
| toxenv: 'py38,coverage' | ||
| container: | ||
| image: ubuntu:22.04 | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up container | ||
| env: | ||
| DEBIAN_FRONTEND: noninteractive | ||
| run: | | ||
| apt-get update -q | ||
| apt-get install -y libterm-readline-gnu-perl locales software-properties-common | ||
| locale-gen en_US.UTF-8 | ||
| ln -f -s /usr/share/zoneinfo/UTC /etc/localtime | ||
| - name: Install dependencies | ||
| env: | ||
| DEBIAN_FRONTEND: noninteractive | ||
| run: | | ||
| add-apt-repository -y universe | ||
| add-apt-repository -y ppa:deadsnakes/ppa | ||
| add-apt-repository -y ppa:gift/dev | ||
| apt-get update -q | ||
| apt-get install -y build-essential git libffi-dev python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv python3-distutils python3-pip python3-setuptools python3-yaml | ||
| - name: Install tox | ||
| run: | | ||
| python3 -m pip install tox | ||
| - name: Run tests with coverage | ||
| env: | ||
| LANG: en_US.UTF-8 | ||
| run: | | ||
| tox -e${{ matrix.toxenv }} | ||
| - name: Upload coverage report to Codecov | ||
| uses: codecov/codecov-action@v3 | ||
| lint: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| include: | ||
| - python-version: '3.11' | ||
@@ -34,3 +106,3 @@ toxenv: 'lint' | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/checkout@v3 | ||
| - name: Set up container | ||
@@ -56,3 +128,3 @@ env: | ||
| python3 -m pip install tox | ||
| - name: Run tests | ||
| - name: Run linter | ||
| env: | ||
@@ -59,0 +131,0 @@ LANG: en_US.UTF-8 |
| Metadata-Version: 2.1 | ||
| Name: acstore | ||
| Version: 20230325 | ||
| Version: 20230519 | ||
| Summary: Attribute Container Storage (ACStore). | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/log2timeline/acstore |
| .pylintrc | ||
| .style.yapf | ||
| .yamllint.yaml | ||
| ACKNOWLEDGEMENTS | ||
@@ -4,0 +5,0 @@ AUTHORS |
@@ -8,2 +8,2 @@ # -*- coding: utf-8 -*- | ||
| __version__ = '20230325' | ||
| __version__ = '20230519' |
@@ -52,3 +52,3 @@ # -*- coding: utf-8 -*- | ||
| This is the the base class for those object that exists primarily as | ||
| This is the base class for those object that exists primarily as | ||
| a container of attributes with basic accessors and mutators. | ||
@@ -60,3 +60,3 @@ | ||
| Attributes are public class members of an serializable type. Protected and | ||
| Attributes are public class members of a serializable type. Protected and | ||
| private class members are not to be serialized, with the exception of those | ||
@@ -163,3 +163,3 @@ defined in _SERIALIZABLE_PROTECTED_ATTRIBUTES. | ||
| Returns: | ||
| AttributeContainerIdentifier: an unique identifier for the container. | ||
| AttributeContainerIdentifier: a unique identifier for the container. | ||
| """ | ||
@@ -166,0 +166,0 @@ return self._identifier |
@@ -84,3 +84,3 @@ # -*- coding: utf-8 -*- | ||
| def RegisterAttributeContainer(cls, attribute_container_class): | ||
| """Registers a attribute container class. | ||
| """Registers an attribute container class. | ||
@@ -87,0 +87,0 @@ The attribute container classes are identified based on their lower case |
@@ -18,3 +18,3 @@ # -*- coding: utf-8 -*- | ||
| def DeregisterDataType(cls, data_type): | ||
| """Deregisters an data type. | ||
| """Deregisters a data type. | ||
@@ -21,0 +21,0 @@ Args: |
@@ -248,3 +248,3 @@ # -*- coding: utf-8 -*- | ||
| column_names (list[str]): names of the columns. | ||
| values (list[str]): values for each of the colums. | ||
| values (list[str]): values for each of the columns. | ||
| """ | ||
@@ -353,3 +353,3 @@ write_cache = self._write_cache.get(container_type, [column_names]) | ||
| def _CreatetAttributeContainerFromRow( | ||
| def _CreateAttributeContainerFromRow( | ||
| self, container_type, column_names, row, first_column_index): | ||
@@ -501,3 +501,3 @@ """Creates an attribute container of a row in the database. | ||
| while row: | ||
| container = self._CreatetAttributeContainerFromRow( | ||
| container = self._CreateAttributeContainerFromRow( | ||
| container_type, column_names, row, 1) | ||
@@ -929,3 +929,3 @@ | ||
| container = self._CreatetAttributeContainerFromRow( | ||
| container = self._CreateAttributeContainerFromRow( | ||
| container_type, column_names, row, 0) | ||
@@ -932,0 +932,0 @@ |
+8
-8
| environment: | ||
| matrix: | ||
| - DESCRIPTION: "Windows with 32-bit Python 3.10" | ||
| - DESCRIPTION: "Windows with 32-bit Python 3.11" | ||
| MACHINE_TYPE: "x86" | ||
| APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 | ||
| PYTHON: "C:\\Python310" | ||
| PYTHON_VERSION: "3.10" | ||
| APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022 | ||
| PYTHON: "C:\\Python311" | ||
| PYTHON_VERSION: "3.11" | ||
| L2TBINARIES_TRACK: "dev" | ||
| - DESCRIPTION: "Windows with 64-bit Python 3.10" | ||
| - DESCRIPTION: "Windows with 64-bit Python 3.11" | ||
| MACHINE_TYPE: "amd64" | ||
| APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 | ||
| PYTHON: "C:\\Python310-x64" | ||
| PYTHON_VERSION: "3.10" | ||
| APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022 | ||
| PYTHON: "C:\\Python311-x64" | ||
| PYTHON_VERSION: "3.11" | ||
| L2TBINARIES_TRACK: "dev" | ||
@@ -15,0 +15,0 @@ - DESCRIPTION: "Mac OS with Python 3.11" |
| # Script to set up tests on AppVeyor Windows. | ||
| $Dependencies = "PyYAML" | ||
| $Dependencies = ${Dependencies} -split " " | ||
| $Output = Invoke-Expression -Command "git clone https://github.com/log2timeline/l2tdevtools.git ..\l2tdevtools 2>&1" | ||
| Write-Host (${Output} | Out-String) | ||
| If ($env:APPVEYOR_REPO_BRANCH -eq "main") | ||
| If ($Dependencies.Length -gt 0) | ||
| { | ||
| $Track = "stable" | ||
| } | ||
| Else | ||
| { | ||
| $Track = $env:APPVEYOR_REPO_BRANCH | ||
| } | ||
| New-Item -ItemType "directory" -Name "dependencies" | ||
| $Dependencies = ${Dependencies} -split " " | ||
| $env:PYTHONPATH = "..\l2tdevtools" | ||
| $Output = Invoke-Expression -Command "git clone https://github.com/log2timeline/l2tdevtools.git ..\l2tdevtools 2>&1" | %{ "$_" } | ||
| Write-Host (${Output} | Out-String) | ||
| $Output = Invoke-Expression -Command "& '${env:PYTHON}\python.exe' ..\l2tdevtools\tools\update.py --download-directory dependencies --machine-type ${env:MACHINE_TYPE} --msi-targetdir ${env:PYTHON} --track ${env:L2TBINARIES_TRACK} ${Dependencies} 2>&1" | ||
| Write-Host (${Output} | Out-String) | ||
| If ($env:APPVEYOR_REPO_BRANCH -eq "main") | ||
| { | ||
| $Track = "stable" | ||
| } | ||
| Else | ||
| { | ||
| $Track = $env:APPVEYOR_REPO_BRANCH | ||
| } | ||
| New-Item -ItemType "directory" -Name "dependencies" | ||
| $env:PYTHONPATH = "..\l2tdevtools" | ||
| $Output = Invoke-Expression -Command "& '${env:PYTHON}\python.exe' ..\l2tdevtools\tools\update.py --download-directory dependencies --machine-type ${env:MACHINE_TYPE} --msi-targetdir ${env:PYTHON} --track ${env:L2TBINARIES_TRACK} ${Dependencies} 2>&1" | %{ "$_" } | ||
| Write-Host (${Output} | Out-String) | ||
| } | ||
+1
-1
@@ -106,3 +106,3 @@ # -*- coding: utf-8 -*- | ||
| app (sphinx.application.Sphinx): Sphinx application. Required by the | ||
| the Sphinx event callback API. | ||
| Sphinx event callback API. | ||
| """ | ||
@@ -109,0 +109,0 @@ current_directory = os.path.abspath(os.path.dirname(__file__)) |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: acstore | ||
| Version: 20230325 | ||
| Version: 20230519 | ||
| Summary: Attribute Container Storage (ACStore). | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/log2timeline/acstore |
@@ -59,4 +59,4 @@ #!/usr/bin/env python3 | ||
| attribute_container._SERIALIZABLE_PROTECTED_ATTRIBUTES = [ | ||
| '_protected_attribute'] | ||
| setattr(attribute_container, '_SERIALIZABLE_PROTECTED_ATTRIBUTES', [ | ||
| '_protected_attribute']) | ||
@@ -85,4 +85,4 @@ expected_attribute_names = [ | ||
| attribute_container._SERIALIZABLE_PROTECTED_ATTRIBUTES = [ | ||
| '_protected_attribute'] | ||
| setattr(attribute_container, '_SERIALIZABLE_PROTECTED_ATTRIBUTES', [ | ||
| '_protected_attribute']) | ||
@@ -115,4 +115,4 @@ expected_attributes = [ | ||
| attribute_container._SERIALIZABLE_PROTECTED_ATTRIBUTES = [ | ||
| '_protected_attribute'] | ||
| setattr(attribute_container, '_SERIALIZABLE_PROTECTED_ATTRIBUTES', [ | ||
| '_protected_attribute']) | ||
@@ -140,4 +140,4 @@ attribute_values_hash2 = attribute_container.GetAttributeValuesHash() | ||
| attribute_container._SERIALIZABLE_PROTECTED_ATTRIBUTES = [ | ||
| '_protected_attribute'] | ||
| setattr(attribute_container, '_SERIALIZABLE_PROTECTED_ATTRIBUTES', [ | ||
| '_protected_attribute']) | ||
@@ -144,0 +144,0 @@ attribute_values_string2 = attribute_container.GetAttributeValuesString() |
@@ -38,4 +38,4 @@ #!/usr/bin/env python3 | ||
| test_profiler._FILENAME_PREFIX = 'test' | ||
| test_profiler._FILE_HEADER = 'test' | ||
| setattr(test_profiler, '_FILENAME_PREFIX', 'test') | ||
| setattr(test_profiler, '_FILE_HEADER', 'test') | ||
@@ -42,0 +42,0 @@ test_profiler.Start() |
@@ -176,3 +176,3 @@ #!/usr/bin/env python3 | ||
| # TODO: add tests for _CreatetAttributeContainerFromRow | ||
| # TODO: add tests for _CreateAttributeContainerFromRow | ||
| # TODO: add tests for _Flush | ||
@@ -179,0 +179,0 @@ # TODO: add tests for _FlushWriteCache |
+5
-18
@@ -21,20 +21,4 @@ [tox] | ||
| coverage: coverage run --source=acstore --omit="*_test*,*__init__*,*test_lib*" run_tests.py | ||
| coverage: coverage xml | ||
| [testenv:codecov] | ||
| skip_install = True | ||
| passenv = | ||
| CFLAGS | ||
| CPPFLAGS | ||
| GITHUB_ACTION | ||
| GITHUB_HEAD_REF | ||
| GITHUB_REF | ||
| GITHUB_REPOSITORY | ||
| GITHUB_RUN_ID | ||
| GITHUB_SHA | ||
| LDFLAGS | ||
| deps = | ||
| codecov < 2.1.10 | ||
| commands = | ||
| codecov | ||
| [testenv:docs] | ||
@@ -60,5 +44,7 @@ usedevelop = True | ||
| -rtest_requirements.txt | ||
| pylint >= 2.14.0, < 2.15.0 | ||
| pylint >= 2.17.0, < 2.18.0 | ||
| yamllint >= 1.26.0 | ||
| commands = | ||
| pylint --version | ||
| yamllint -v | ||
| # Ignore setup.py for now due to: | ||
@@ -68,1 +54,2 @@ # setup.py:15:0: E0001: Cannot import 'distutils.command.bdist_msi' due to | ||
| pylint --rcfile=.pylintrc acstore tests | ||
| yamllint -c .yamllint.yaml test_data |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
203474
1.82%75
1.35%