[Pkg-privacy-commits] [Git][pkg-privacy-team/mat2][upstream] New upstream version 0.13.3

Georg Faerber (@georg) georg at debian.org
Sun Feb 26 11:50:59 GMT 2023



Georg Faerber pushed to branch upstream at Privacy Maintainers / mat2


Commits:
b6127652 by Georg Faerber at 2023-02-26T10:14:55+00:00
New upstream version 0.13.3
- - - - -


9 changed files:

- .gitlab-ci.yml
- CHANGELOG.md
- doc/mat2.1
- libmat2/bubblewrap.py
- libmat2/exiftool.py
- libmat2/video.py
- mat2
- + pyproject.toml
- setup.py


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -1,6 +1,3 @@
-include:
-  - template: Security/SAST.gitlab-ci.yml
-
 variables:
   CONTAINER_REGISTRY: $CI_REGISTRY/georg/mat2-ci-images
 
@@ -12,28 +9,16 @@ stages:
   before_script:  # This is needed to not run the testsuite as root
     - useradd --home-dir ${CI_PROJECT_DIR} mat2
     - chown -R mat2 .
-
-linting:bandit:
-  image: $CONTAINER_REGISTRY:linting 
-  stage: linting
-  script:  # TODO: remove B405 and B314
-    - bandit ./mat2 --format txt --skip B101
-    - bandit -r ./libmat2 --format txt --skip B101,B404,B603,B405,B314,B108,B311
-
-linting:codespell:
-  image: $CONTAINER_REGISTRY:linting
-  stage: linting
-  script:
-    # Run codespell to check for spelling errors; ignore errors about binary
-    # files, use a config with ignored words and exclude the git directory,
-    # which might contain false positives
-    - codespell -q 2 -I utils/ci/codespell/ignored_words.txt -S .git
   
-linting:pylint:
-  image: $CONTAINER_REGISTRY:linting
+linting:ruff:
   stage: linting
   script:
-    - pylint --disable=no-else-return,no-else-raise,no-else-continue,unnecessary-comprehension,raise-missing-from,unsubscriptable-object,use-dict-literal,unspecified-encoding,consider-using-f-string,use-list-literal,too-many-statements --extension-pkg-whitelist=cairo,gi ./libmat2 ./mat2
+    - apt update
+    - apt install -qqy --no-install-recommends python3-venv
+    - python3 -m venv venv
+    - source venv/bin/activate
+    - pip3 install ruff
+    - ruff check .
 
 linting:mypy:
   image: $CONTAINER_REGISTRY:linting


=====================================
CHANGELOG.md
=====================================
@@ -1,3 +1,7 @@
+# 0.13.3 - 2023-02-23
+
+- Fix a decorator argument
+
 # 0.13.2 - 2023-01-28
 
 - Fix a crash on some python versions


=====================================
doc/mat2.1
=====================================
@@ -1,4 +1,4 @@
-.TH mat2 "1" "January 2023" "mat2 0.13.2" "User Commands"
+.TH mat2 "1" "February 2023" "mat2 0.13.3" "User Commands"
 
 .SH NAME
 mat2 \- the metadata anonymisation toolkit 2


=====================================
libmat2/bubblewrap.py
=====================================
@@ -22,7 +22,7 @@ CalledProcessError = subprocess.CalledProcessError
 # pylint: disable=subprocess-run-check
 
 
- at functools.lru_cache
+ at functools.lru_cache(maxsize=None)
 def _get_bwrap_path() -> str:
     which_path = shutil.which('bwrap')
     if which_path:


=====================================
libmat2/exiftool.py
=====================================
@@ -67,7 +67,7 @@ class ExiftoolParser(abstract.AbstractParser):
             return False
         return True
 
- at functools.lru_cache
+ at functools.lru_cache(maxsize=None)
 def _get_exiftool_path() -> str:  # pragma: no cover
     which_path = shutil.which('exiftool')
     if which_path:


=====================================
libmat2/video.py
=====================================
@@ -135,7 +135,7 @@ class MP4Parser(AbstractFFmpegParser):
     }
 
 
- at functools.lru_cache()
+ at functools.lru_cache(maxsize=None)
 def _get_ffmpeg_path() -> str:  # pragma: no cover
     which_path = shutil.which('ffmpeg')
     if which_path:


=====================================
mat2
=====================================
@@ -17,7 +17,7 @@ except ValueError as ex:
     print(ex)
     sys.exit(1)
 
-__version__ = '0.13.2'
+__version__ = '0.13.3'
 
 logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.WARNING)
 


=====================================
pyproject.toml
=====================================
@@ -0,0 +1,9 @@
+[project]
+name = "mat"
+readme = "README.md"
+requires-python = ">=3.9"
+
+[tool.ruff]
+target-version = "py39"
+# E501 Line too long
+ignore = ["E501", "F401", "E402", "E722"]


=====================================
setup.py
=====================================
@@ -5,7 +5,7 @@ with open("README.md", encoding='utf-8') as fh:
 
 setuptools.setup(
     name="mat2",
-    version='0.13.2',
+    version='0.13.3',
     author="Julien (jvoisin) Voisin",
     author_email="julien.voisin+mat2 at dustri.org",
     description="A handy tool to trash your metadata",



View it on GitLab: https://salsa.debian.org/pkg-privacy-team/mat2/-/commit/b6127652d255539981f835cf8b849fa3813164dd

-- 
View it on GitLab: https://salsa.debian.org/pkg-privacy-team/mat2/-/commit/b6127652d255539981f835cf8b849fa3813164dd
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-privacy-commits/attachments/20230226/67efa4b3/attachment-0001.htm>


More information about the Pkg-privacy-commits mailing list