pyprocessors-iptc_mapper 0.6.29__tar.gz → 0.7.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/.gitignore +1 -8
- pyprocessors_iptc_mapper-0.7.3/.idea/.gitignore +8 -0
- pyprocessors_iptc_mapper-0.7.3/.idea/inspectionProfiles/Project_Default.xml +23 -0
- pyprocessors_iptc_mapper-0.7.3/.idea/inspectionProfiles/profiles_settings.xml +6 -0
- pyprocessors_iptc_mapper-0.7.3/.idea/misc.xml +7 -0
- pyprocessors_iptc_mapper-0.7.3/.idea/modules.xml +8 -0
- pyprocessors_iptc_mapper-0.7.3/.idea/pyprocessors_iptc_mapper.iml +15 -0
- {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/Dockerfile +5 -5
- {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/Jenkinsfile +31 -89
- {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/PKG-INFO +38 -67
- {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/README.md +6 -39
- pyprocessors_iptc_mapper-0.7.3/docs/_build/.buildinfo +4 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/.doctrees/CHANGELOG.doctree +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/.doctrees/environment.pickle +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/.doctrees/index.doctree +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/CHANGELOG.html +231 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/LICENSE +21 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_modules/index.html +211 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_modules/pyformatters_consolidate/consolidate.html +304 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_sources/CHANGELOG.md.txt +7 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/basic.css +904 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/badge_only.css +1 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/Roboto-Slab-Bold.woff +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/Roboto-Slab-Bold.woff2 +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/Roboto-Slab-Regular.woff +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/Roboto-Slab-Regular.woff2 +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/fontawesome-webfont.eot +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/fontawesome-webfont.svg +2671 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/fontawesome-webfont.ttf +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/fontawesome-webfont.woff +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/fontawesome-webfont.woff2 +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/lato-bold-italic.woff +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/lato-bold-italic.woff2 +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/lato-bold.woff +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/lato-bold.woff2 +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/lato-normal-italic.woff +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/lato-normal-italic.woff2 +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/lato-normal.woff +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/lato-normal.woff2 +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/theme.css +4 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/doctools.js +321 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/documentation_options.js +12 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/file.png +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Inconsolata-Bold.ttf +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Inconsolata-Regular.ttf +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Inconsolata.ttf +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-bold.eot +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-bold.ttf +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-bold.woff +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-bold.woff2 +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-bolditalic.eot +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-bolditalic.ttf +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-bolditalic.woff +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-bolditalic.woff2 +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-italic.eot +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-italic.ttf +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-italic.woff +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-italic.woff2 +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-regular.eot +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-regular.ttf +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-regular.woff +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-regular.woff2 +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato-Bold.ttf +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato-Regular.ttf +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/RobotoSlab/roboto-slab-v7-bold.eot +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/RobotoSlab/roboto-slab-v7-bold.ttf +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff2 +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/RobotoSlab/roboto-slab-v7-regular.eot +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/RobotoSlab/roboto-slab-v7-regular.ttf +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff2 +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/RobotoSlab-Bold.ttf +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/RobotoSlab-Regular.ttf +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/fontawesome-webfont.eot +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/fontawesome-webfont.svg +2671 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/fontawesome-webfont.ttf +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/fontawesome-webfont.woff +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/fontawesome-webfont.woff2 +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/jquery-3.5.1.js +10872 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/jquery.js +2 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/js/badge_only.js +1 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/js/html5shiv-printshiv.min.js +4 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/js/html5shiv.min.js +4 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/js/modernizr.min.js +4 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/js/theme.js +1 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/jupyter-sphinx.css +123 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/language_data.js +297 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/minus.png +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/plus.png +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/pygments.css +74 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/searchtools.js +522 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/underscore-1.13.1.js +2042 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/underscore.js +6 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/genindex.html +333 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/index.html +262 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/objects.inv +0 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/py-modindex.html +235 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/search.html +230 -0
- pyprocessors_iptc_mapper-0.7.3/docs/_build/searchindex.js +1 -0
- {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/docs/conf.py +1 -0
- pyprocessors_iptc_mapper-0.7.3/docs/index.rst +9 -0
- pyprocessors_iptc_mapper-0.7.3/pyproject.toml +88 -0
- pyprocessors_iptc_mapper-0.7.3/results.xml +1 -0
- pyprocessors_iptc_mapper-0.7.3/setup.py +54 -0
- {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/src/pyprocessors_iptc_mapper/__init__.py +1 -2
- {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/src/pyprocessors_iptc_mapper/iptc_mapper.py +25 -29
- pyprocessors_iptc_mapper-0.7.3/tests/.coverage +0 -0
- pyprocessors_iptc_mapper-0.7.3/tests/test_iptc_mapper.py +32 -0
- pyprocessors_iptc_mapper-0.7.3/tox.ini +49 -0
- pyprocessors_iptc_mapper-0.6.29/.pre-commit-config.yaml +0 -7
- pyprocessors_iptc_mapper-0.6.29/MIGRATION.md +0 -170
- pyprocessors_iptc_mapper-0.6.29/pyproject.toml +0 -76
- pyprocessors_iptc_mapper-0.6.29/tests/test_iptc_mapper.py +0 -67
- pyprocessors_iptc_mapper-0.6.29/trivy-html-template.tpl +0 -148
- {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/AUTHORS.md +0 -0
- {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/CHANGELOG.md +0 -0
- {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/LICENSE +0 -0
- {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/RELEASE.md +0 -0
- {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/bumpversion.py +0 -0
- {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/docs/.gitignore +0 -0
- {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/docs/CHANGELOG.md +0 -0
- {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/docs/LICENSE +0 -0
- /pyprocessors_iptc_mapper-0.6.29/docs/index.rst → /pyprocessors_iptc_mapper-0.7.3/docs/_build/_sources/index.rst.txt +0 -0
- {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/docs/_static/.gitkeep +0 -0
- {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/docs/_templates/.gitkeep +0 -0
- {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/mypy.ini +0 -0
- {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/src/pyprocessors_iptc_mapper/IPTC-MediaTopic-NewsCodes.xlsx +0 -0
- {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/tests/__init__.py +0 -0
- {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/tests/data/x_cago_iptc_de-document-test.json +0 -0
|
@@ -26,6 +26,7 @@ share/python-wheels/
|
|
|
26
26
|
.installed.cfg
|
|
27
27
|
*.egg
|
|
28
28
|
MANIFEST
|
|
29
|
+
.idea/
|
|
29
30
|
|
|
30
31
|
# PyInstaller
|
|
31
32
|
# Usually these files are written by a python script from a template
|
|
@@ -46,7 +47,6 @@ htmlcov/
|
|
|
46
47
|
.cache
|
|
47
48
|
nosetests.xml
|
|
48
49
|
coverage.xml
|
|
49
|
-
results.xml
|
|
50
50
|
*.cover
|
|
51
51
|
*.py,cover
|
|
52
52
|
.hypothesis/
|
|
@@ -126,12 +126,5 @@ dmypy.json
|
|
|
126
126
|
.pyre/
|
|
127
127
|
|
|
128
128
|
# Specific
|
|
129
|
-
.idea/
|
|
130
129
|
.groovylintrc.json
|
|
131
130
|
.emailNotif
|
|
132
|
-
uv.lock
|
|
133
|
-
|
|
134
|
-
# SBOMs
|
|
135
|
-
**/sbom*.json
|
|
136
|
-
**/trivy*.html
|
|
137
|
-
**/audit*.json
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<component name="InspectionProjectProfileManager">
|
|
2
|
+
<profile version="1.0">
|
|
3
|
+
<option name="myName" value="Project Default" />
|
|
4
|
+
<inspection_tool class="PyPep8NamingInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
|
5
|
+
<option name="ignoredErrors">
|
|
6
|
+
<list>
|
|
7
|
+
<option value="N806" />
|
|
8
|
+
<option value="N802" />
|
|
9
|
+
<option value="N803" />
|
|
10
|
+
<option value="N801" />
|
|
11
|
+
</list>
|
|
12
|
+
</option>
|
|
13
|
+
</inspection_tool>
|
|
14
|
+
<inspection_tool class="PyUnresolvedReferencesInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
|
15
|
+
<option name="ignoredIdentifiers">
|
|
16
|
+
<list>
|
|
17
|
+
<option value="pyformatters_mazars_table.mazars_table.CleanAndDeduplicate" />
|
|
18
|
+
<option value="pyformatters_mazars_table.mazars_table.*" />
|
|
19
|
+
</list>
|
|
20
|
+
</option>
|
|
21
|
+
</inspection_tool>
|
|
22
|
+
</profile>
|
|
23
|
+
</component>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="Black">
|
|
4
|
+
<option name="sdkName" value="Python 3.11 (whisperx)" />
|
|
5
|
+
</component>
|
|
6
|
+
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8 virtualenv at /media/olivier/ssd1T/.pyenv/versions/pymultirole (2)" project-jdk-type="Python SDK" />
|
|
7
|
+
</project>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/pyprocessors_iptc_mapper.iml" filepath="$PROJECT_DIR$/.idea/pyprocessors_iptc_mapper.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="PYTHON_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$">
|
|
5
|
+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
|
6
|
+
<sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" />
|
|
7
|
+
</content>
|
|
8
|
+
<orderEntry type="jdk" jdkName="Python 3.8 virtualenv at /media/olivier/ssd1T/.pyenv/versions/pymultirole (2)" jdkType="Python SDK" />
|
|
9
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
10
|
+
</component>
|
|
11
|
+
<component name="PyDocumentationSettings">
|
|
12
|
+
<option name="format" value="PLAIN" />
|
|
13
|
+
<option name="myDocStringFormat" value="Plain" />
|
|
14
|
+
</component>
|
|
15
|
+
</module>
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
FROM python:3.
|
|
2
|
-
|
|
3
|
-
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
|
4
|
-
|
|
1
|
+
FROM python:3.8-slim-bookworm
|
|
5
2
|
# Install prerequisites
|
|
6
3
|
RUN apt-get update -y && \
|
|
7
4
|
apt-get install -y \
|
|
@@ -15,6 +12,9 @@ RUN apt-get update -y && \
|
|
|
15
12
|
apt-get update -y && \
|
|
16
13
|
apt-get clean all -y
|
|
17
14
|
|
|
18
|
-
#
|
|
15
|
+
# Enable Installing packages as root
|
|
16
|
+
ENV FLIT_ROOT_INSTALL=1
|
|
17
|
+
|
|
18
|
+
# Add pyproject.toml + README.md for flit install
|
|
19
19
|
ADD pyproject.toml pyproject.toml
|
|
20
20
|
ADD README.md README.md
|
|
@@ -6,6 +6,14 @@ pipeline {
|
|
|
6
6
|
|
|
7
7
|
agent none
|
|
8
8
|
|
|
9
|
+
options {
|
|
10
|
+
throttleJobProperty(
|
|
11
|
+
categories: ['pyprocessors'],
|
|
12
|
+
throttleEnabled: true,
|
|
13
|
+
throttleOption: 'category'
|
|
14
|
+
)
|
|
15
|
+
}
|
|
16
|
+
|
|
9
17
|
triggers {
|
|
10
18
|
upstream(upstreamProjects: 'pymultirole_plugins/' + BRANCH_NAME.replaceAll('/', '%2F'),\
|
|
11
19
|
threshold: hudson.model.Result.SUCCESS)
|
|
@@ -19,15 +27,15 @@ pipeline {
|
|
|
19
27
|
PYTHONDONTWRITEBYTECODE = '1'
|
|
20
28
|
JENKINS_UIDGID = '1004:1004'
|
|
21
29
|
|
|
22
|
-
MAJOR_VERSION =
|
|
23
|
-
MINOR_VERSION =
|
|
30
|
+
MAJOR_VERSION = "${MAJOR_VERSION_PY38}"
|
|
31
|
+
MINOR_VERSION = "${MINOR_VERSION_PY38_HOTFIX}"
|
|
24
32
|
}
|
|
25
33
|
|
|
26
34
|
stages {
|
|
27
35
|
stage('Catch build termination') {
|
|
28
36
|
agent {
|
|
29
37
|
node {
|
|
30
|
-
label '
|
|
38
|
+
label 'pre-build'
|
|
31
39
|
customWorkspace "${PATH_HOME}/${JOB_NAME}"
|
|
32
40
|
}
|
|
33
41
|
}
|
|
@@ -58,7 +66,7 @@ pipeline {
|
|
|
58
66
|
stage('Add credentials') {
|
|
59
67
|
steps {
|
|
60
68
|
script {
|
|
61
|
-
// Add password file for
|
|
69
|
+
// Add password file for flit publishing
|
|
62
70
|
sh "cp ${PATH_HOME}/.passwd-pypi .env"
|
|
63
71
|
}
|
|
64
72
|
}
|
|
@@ -73,7 +81,6 @@ pipeline {
|
|
|
73
81
|
withCredentials([gitUsernamePassword(credentialsId: 'bitbucket-user', gitToolName: 'git-tool')]) {
|
|
74
82
|
sh 'git pull'
|
|
75
83
|
sh "echo '\"\"\"Sherpa IPTC category mapper\"\"\"' > src/pyprocessors_iptc_mapper/__init__.py"
|
|
76
|
-
sh "echo '' >> src/pyprocessors_iptc_mapper/__init__.py"
|
|
77
84
|
sh "echo '__version__ = \"${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_ID}\"' >> src/pyprocessors_iptc_mapper/__init__.py"
|
|
78
85
|
sh 'git commit src/pyprocessors_iptc_mapper/__init__.py -m "[Jenkins CI] Commit on version files" || echo "No changes to commit"'
|
|
79
86
|
sh 'git push'
|
|
@@ -96,7 +103,7 @@ pipeline {
|
|
|
96
103
|
// - docker: /root/test-reports
|
|
97
104
|
// - host : /tmp/_${JOB_NAME}/test-reports
|
|
98
105
|
dockerfile {
|
|
99
|
-
label '
|
|
106
|
+
label 'docker-build'
|
|
100
107
|
customWorkspace "${PATH_HOME}/${JOB_NAME}"
|
|
101
108
|
filename 'Dockerfile'
|
|
102
109
|
args "-u root --privileged -v /tmp/_${JOB_NAME}/test-reports:${TEST_REPORT_DIR}"
|
|
@@ -104,11 +111,13 @@ pipeline {
|
|
|
104
111
|
}
|
|
105
112
|
|
|
106
113
|
stages {
|
|
107
|
-
stage('Install
|
|
114
|
+
stage('Install flit & flake8') {
|
|
108
115
|
steps {
|
|
109
|
-
|
|
110
|
-
sh '
|
|
111
|
-
sh '
|
|
116
|
+
// remove any previous tox env
|
|
117
|
+
sh 'rm -rf .tox'
|
|
118
|
+
sh 'python -m pip install pip==22.0.3'
|
|
119
|
+
sh 'pip install --no-cache-dir flit==3.2.0 flake8==3.9.2 flakehell tox'
|
|
120
|
+
sh 'flit install'
|
|
112
121
|
}
|
|
113
122
|
}
|
|
114
123
|
|
|
@@ -116,20 +125,20 @@ pipeline {
|
|
|
116
125
|
steps {
|
|
117
126
|
// remove any previous results.xml file
|
|
118
127
|
sh "rm -f ${TEST_REPORT_DIR}/results.xml"
|
|
119
|
-
sh '
|
|
120
|
-
sh 'uv run ruff format --check .'
|
|
121
|
-
sh "uv run pytest --junit-xml=${TEST_REPORT_DIR}/results.xml"
|
|
128
|
+
sh 'tox'
|
|
122
129
|
}
|
|
123
130
|
}
|
|
124
131
|
|
|
125
132
|
stage('Publish on PyPI') {
|
|
126
133
|
environment {
|
|
127
|
-
|
|
128
|
-
|
|
134
|
+
FLIT_USERNAME = getUserName '.env'
|
|
135
|
+
FLIT_PASSWORD = getUserPass '.env'
|
|
129
136
|
}
|
|
130
137
|
steps {
|
|
131
138
|
// remove any previous folder dist
|
|
132
139
|
sh 'rm -rf dist'
|
|
140
|
+
// create (as root) folder dist
|
|
141
|
+
sh 'mkdir dist'
|
|
133
142
|
// pull recent updates of file __init__.py
|
|
134
143
|
withCredentials([gitUsernamePassword(credentialsId: 'bitbucket-user', gitToolName: 'git-tool')]) {
|
|
135
144
|
sh 'git config --global pull.rebase false'
|
|
@@ -142,85 +151,18 @@ pipeline {
|
|
|
142
151
|
sh "chown ${JENKINS_UIDGID} src/pyprocessors_iptc_mapper/__init__.py"
|
|
143
152
|
// get git status
|
|
144
153
|
sh 'git status'
|
|
145
|
-
//
|
|
154
|
+
// publish on PyPI
|
|
146
155
|
sh '''
|
|
147
156
|
export COMMIT_VERSION=$( cat src/pyprocessors_iptc_mapper/__init__.py|grep version|cut -d '"' -f2|tr -s '[:blank:]' )
|
|
148
157
|
export BUILD_VERSION="${MAJOR_VERSION}"."${MINOR_VERSION}"."${BUILD_ID}"
|
|
149
|
-
if [ "${COMMIT_VERSION}" = "${BUILD_VERSION}" ] ; then
|
|
158
|
+
if [ "${COMMIT_VERSION}" = "${BUILD_VERSION}" ] ; then flit publish ; fi
|
|
150
159
|
'''
|
|
151
160
|
// remove current folder dist
|
|
152
161
|
sh 'rm -rf dist'
|
|
153
162
|
// remove current folder .hypothesis
|
|
154
163
|
sh 'rm -rf .hypothesis'
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
stage('Prepare SBOM') {
|
|
161
|
-
when {
|
|
162
|
-
beforeAgent true
|
|
163
|
-
environment name: 'SKIP_JOB', value: '0'
|
|
164
|
-
}
|
|
165
|
-
options {
|
|
166
|
-
timeout(time: 120, unit: 'SECONDS')
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
agent {
|
|
170
|
-
docker {
|
|
171
|
-
image 'alpine:3.19'
|
|
172
|
-
label 'built-in'
|
|
173
|
-
customWorkspace "${PATH_HOME}/${JOB_NAME}"
|
|
174
|
-
args "-u 0"
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
stages {
|
|
179
|
-
stage('Generate SBOM') {
|
|
180
|
-
steps {
|
|
181
|
-
sh '''
|
|
182
|
-
apk add --no-cache curl
|
|
183
|
-
|
|
184
|
-
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b . v${SYFT_VERSION}
|
|
185
|
-
|
|
186
|
-
./syft . \
|
|
187
|
-
--exclude '**/syft' \
|
|
188
|
-
--exclude '**/.pytest_cache' \
|
|
189
|
-
--exclude '**/.ruff_cache' \
|
|
190
|
-
--exclude '**/sbom.cdx.json' \
|
|
191
|
-
--exclude '**/sbom.spdx.json' \
|
|
192
|
-
--source-name "${JOB_NAME}" \
|
|
193
|
-
--source-version "${BUILD_NUMBER}" \
|
|
194
|
-
-o cyclonedx-json=sbom.cdx.json \
|
|
195
|
-
-o spdx-json=sbom.spdx.json
|
|
196
|
-
|
|
197
|
-
rm -f ./syft
|
|
198
|
-
'''
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
stage('Analyse SBOM') {
|
|
203
|
-
steps {
|
|
204
|
-
sh '''
|
|
205
|
-
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b . v${TRIVY_VERSION}
|
|
206
|
-
curl -L https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/html.tpl -o trivy-html-template.tpl
|
|
207
|
-
|
|
208
|
-
./trivy sbom --download-db-only
|
|
209
|
-
|
|
210
|
-
./trivy sbom sbom.cdx.json \
|
|
211
|
-
--skip-db-update \
|
|
212
|
-
--format template \
|
|
213
|
-
--template "@trivy-html-template.tpl" \
|
|
214
|
-
-o trivy-report.html
|
|
215
|
-
|
|
216
|
-
rm -f ./trivy
|
|
217
|
-
'''
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
stage('Archive SBOM & analysis') {
|
|
222
|
-
steps {
|
|
223
|
-
archiveArtifacts artifacts: 'sbom*.json, trivy*.html', fingerprint: true
|
|
164
|
+
// remove current folder .tox
|
|
165
|
+
sh 'rm -rf .tox'
|
|
224
166
|
}
|
|
225
167
|
}
|
|
226
168
|
}
|
|
@@ -305,7 +247,7 @@ pipeline {
|
|
|
305
247
|
}
|
|
306
248
|
}
|
|
307
249
|
|
|
308
|
-
// return
|
|
250
|
+
// return FLIT_USERNAME from given file
|
|
309
251
|
def getUserName(path) {
|
|
310
252
|
def USERNAME = sh(
|
|
311
253
|
script: "grep FLIT_USERNAME ${path}|cut -d '=' -f2",
|
|
@@ -314,7 +256,7 @@ def getUserName(path) {
|
|
|
314
256
|
return USERNAME
|
|
315
257
|
}
|
|
316
258
|
|
|
317
|
-
// return
|
|
259
|
+
// return FLIT_PASSWORD from given file
|
|
318
260
|
def getUserPass(path) {
|
|
319
261
|
def USERPASS = sh(
|
|
320
262
|
script: "grep FLIT_PASSWORD ${path}|cut -d '=' -f2",
|
|
@@ -475,6 +417,6 @@ def analyseBuildCause() {
|
|
|
475
417
|
println 'Skipping build because last commit has been done by CI'
|
|
476
418
|
env.SKIP_JOB = '1'
|
|
477
419
|
switchEmailNotif(false, 0)
|
|
478
|
-
currentBuild.result = 'NOT_BUILT'
|
|
420
|
+
//currentBuild.result = 'NOT_BUILT'
|
|
479
421
|
}
|
|
480
422
|
}
|
|
@@ -1,45 +1,48 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyprocessors-iptc_mapper
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.3
|
|
4
4
|
Summary: Sherpa IPTC category mapper
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
Home-page: https://github.com/oterrier/pyprocessors_iptc_mapper/
|
|
6
|
+
Keywords:
|
|
7
|
+
Author: Olivier Terrier
|
|
8
|
+
Author-email: olivier.terrier@kairntech.com
|
|
9
|
+
Requires-Python: >=3.8
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
11
|
Classifier: Intended Audience :: Information Technology
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
12
13
|
Classifier: Intended Audience :: System Administrators
|
|
13
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
14
14
|
Classifier: Operating System :: OS Independent
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
-
Classifier: Topic :: Software Development
|
|
17
|
-
Classifier: Topic :: Software Development :: Libraries
|
|
18
15
|
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
19
16
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
|
-
|
|
17
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
18
|
+
Classifier: Topic :: Software Development
|
|
19
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
20
|
+
Classifier: Development Status :: 4 - Beta
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Requires-Dist: pymultirole-plugins>=0.7.0,<0.8.0
|
|
21
24
|
Requires-Dist: collections-extended
|
|
25
|
+
Requires-Dist: pandas>=1.2.3,<=1.3.5
|
|
26
|
+
Requires-Dist: openpyxl==3.0.7
|
|
22
27
|
Requires-Dist: log-with-context
|
|
23
|
-
Requires-Dist:
|
|
24
|
-
Requires-Dist:
|
|
25
|
-
Requires-Dist:
|
|
28
|
+
Requires-Dist: flit ; extra == "dev"
|
|
29
|
+
Requires-Dist: pre-commit ; extra == "dev"
|
|
30
|
+
Requires-Dist: bump2version ; extra == "dev"
|
|
31
|
+
Requires-Dist: sphinx ; extra == "docs"
|
|
32
|
+
Requires-Dist: sphinx-rtd-theme ; extra == "docs"
|
|
33
|
+
Requires-Dist: m2r2 ; extra == "docs"
|
|
34
|
+
Requires-Dist: sphinxcontrib.apidoc ; extra == "docs"
|
|
35
|
+
Requires-Dist: jupyter_sphinx ; extra == "docs"
|
|
36
|
+
Requires-Dist: pytest ; extra == "test"
|
|
37
|
+
Requires-Dist: pytest-cov ; extra == "test"
|
|
38
|
+
Requires-Dist: pytest-flake8 ; extra == "test"
|
|
39
|
+
Requires-Dist: pytest-black ; extra == "test"
|
|
40
|
+
Requires-Dist: flake8==3.9.2 ; extra == "test"
|
|
41
|
+
Requires-Dist: tox ; extra == "test"
|
|
42
|
+
Requires-Dist: dirty-equals ; extra == "test"
|
|
26
43
|
Provides-Extra: dev
|
|
27
|
-
Requires-Dist: pre-commit; extra == 'dev'
|
|
28
44
|
Provides-Extra: docs
|
|
29
|
-
Requires-Dist: lxml-html-clean; extra == 'docs'
|
|
30
|
-
Requires-Dist: m2r2; extra == 'docs'
|
|
31
|
-
Requires-Dist: sphinx; extra == 'docs'
|
|
32
|
-
Requires-Dist: sphinx-rtd-theme; extra == 'docs'
|
|
33
|
-
Requires-Dist: sphinxcontrib-apidoc; extra == 'docs'
|
|
34
|
-
Provides-Extra: sbom
|
|
35
|
-
Requires-Dist: cyclonedx-bom; extra == 'sbom'
|
|
36
|
-
Requires-Dist: pip-audit; extra == 'sbom'
|
|
37
45
|
Provides-Extra: test
|
|
38
|
-
Requires-Dist: dirty-equals; extra == 'test'
|
|
39
|
-
Requires-Dist: pytest; extra == 'test'
|
|
40
|
-
Requires-Dist: pytest-cov; extra == 'test'
|
|
41
|
-
Requires-Dist: ruff; extra == 'test'
|
|
42
|
-
Description-Content-Type: text/markdown
|
|
43
46
|
|
|
44
47
|
# pyprocessors_iptc_mapper
|
|
45
48
|
|
|
@@ -60,10 +63,10 @@ You can simply `pip install pyprocessors_iptc_mapper`.
|
|
|
60
63
|
|
|
61
64
|
### Pre-requesites
|
|
62
65
|
|
|
63
|
-
You will need to install `
|
|
66
|
+
You will need to install `flit` (for building the package) and `tox` (for orchestrating testing and documentation building):
|
|
64
67
|
|
|
65
68
|
```
|
|
66
|
-
pip install
|
|
69
|
+
python3 -m pip install flit tox
|
|
67
70
|
```
|
|
68
71
|
|
|
69
72
|
Clone the repository:
|
|
@@ -74,17 +77,10 @@ git clone https://github.com/oterrier/pyprocessors_iptc_mapper
|
|
|
74
77
|
|
|
75
78
|
### Running the test suite
|
|
76
79
|
|
|
77
|
-
You can run the full test suite with:
|
|
78
|
-
|
|
79
|
-
```
|
|
80
|
-
uv run pytest
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
### Linting
|
|
80
|
+
You can run the full test suite against all supported versions of Python (3.8) with:
|
|
84
81
|
|
|
85
82
|
```
|
|
86
|
-
|
|
87
|
-
uv run ruff format --check .
|
|
83
|
+
tox
|
|
88
84
|
```
|
|
89
85
|
|
|
90
86
|
### Building the documentation
|
|
@@ -92,33 +88,8 @@ uv run ruff format --check .
|
|
|
92
88
|
You can build the HTML documentation with:
|
|
93
89
|
|
|
94
90
|
```
|
|
95
|
-
|
|
91
|
+
tox -e docs
|
|
96
92
|
```
|
|
97
93
|
|
|
98
|
-
The built documentation is available at `docs/_build/index.html
|
|
99
|
-
|
|
100
|
-
## SBOM & vulnerability check
|
|
101
|
-
|
|
102
|
-
Install the SBOM dependencies:
|
|
94
|
+
The built documentation is available at `docs/_build/index.html.
|
|
103
95
|
|
|
104
|
-
```
|
|
105
|
-
uv sync --extra sbom
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
Generate a CycloneDX SBOM from the current environment:
|
|
109
|
-
|
|
110
|
-
```
|
|
111
|
-
uv run cyclonedx-py environment -o sbom.cdx.json --output-format json
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
Audit dependencies for known vulnerabilities:
|
|
115
|
-
|
|
116
|
-
```
|
|
117
|
-
uv run pip-audit --format json --output audit-report.json
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
To fail on any known vulnerability (useful in CI):
|
|
121
|
-
|
|
122
|
-
```
|
|
123
|
-
uv run pip-audit --strict
|
|
124
|
-
```
|
|
@@ -17,10 +17,10 @@ You can simply `pip install pyprocessors_iptc_mapper`.
|
|
|
17
17
|
|
|
18
18
|
### Pre-requesites
|
|
19
19
|
|
|
20
|
-
You will need to install `
|
|
20
|
+
You will need to install `flit` (for building the package) and `tox` (for orchestrating testing and documentation building):
|
|
21
21
|
|
|
22
22
|
```
|
|
23
|
-
pip install
|
|
23
|
+
python3 -m pip install flit tox
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
Clone the repository:
|
|
@@ -31,17 +31,10 @@ git clone https://github.com/oterrier/pyprocessors_iptc_mapper
|
|
|
31
31
|
|
|
32
32
|
### Running the test suite
|
|
33
33
|
|
|
34
|
-
You can run the full test suite with:
|
|
34
|
+
You can run the full test suite against all supported versions of Python (3.8) with:
|
|
35
35
|
|
|
36
36
|
```
|
|
37
|
-
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### Linting
|
|
41
|
-
|
|
42
|
-
```
|
|
43
|
-
uv run ruff check .
|
|
44
|
-
uv run ruff format --check .
|
|
37
|
+
tox
|
|
45
38
|
```
|
|
46
39
|
|
|
47
40
|
### Building the documentation
|
|
@@ -49,33 +42,7 @@ uv run ruff format --check .
|
|
|
49
42
|
You can build the HTML documentation with:
|
|
50
43
|
|
|
51
44
|
```
|
|
52
|
-
|
|
45
|
+
tox -e docs
|
|
53
46
|
```
|
|
54
47
|
|
|
55
|
-
The built documentation is available at `docs/_build/index.html
|
|
56
|
-
|
|
57
|
-
## SBOM & vulnerability check
|
|
58
|
-
|
|
59
|
-
Install the SBOM dependencies:
|
|
60
|
-
|
|
61
|
-
```
|
|
62
|
-
uv sync --extra sbom
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
Generate a CycloneDX SBOM from the current environment:
|
|
66
|
-
|
|
67
|
-
```
|
|
68
|
-
uv run cyclonedx-py environment -o sbom.cdx.json --output-format json
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
Audit dependencies for known vulnerabilities:
|
|
72
|
-
|
|
73
|
-
```
|
|
74
|
-
uv run pip-audit --format json --output audit-report.json
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
To fail on any known vulnerability (useful in CI):
|
|
78
|
-
|
|
79
|
-
```
|
|
80
|
-
uv run pip-audit --strict
|
|
81
|
-
```
|
|
48
|
+
The built documentation is available at `docs/_build/index.html.
|
|
Binary file
|
|
Binary file
|
|
Binary file
|