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.
Files changed (130) hide show
  1. {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/.gitignore +1 -8
  2. pyprocessors_iptc_mapper-0.7.3/.idea/.gitignore +8 -0
  3. pyprocessors_iptc_mapper-0.7.3/.idea/inspectionProfiles/Project_Default.xml +23 -0
  4. pyprocessors_iptc_mapper-0.7.3/.idea/inspectionProfiles/profiles_settings.xml +6 -0
  5. pyprocessors_iptc_mapper-0.7.3/.idea/misc.xml +7 -0
  6. pyprocessors_iptc_mapper-0.7.3/.idea/modules.xml +8 -0
  7. pyprocessors_iptc_mapper-0.7.3/.idea/pyprocessors_iptc_mapper.iml +15 -0
  8. {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/Dockerfile +5 -5
  9. {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/Jenkinsfile +31 -89
  10. {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/PKG-INFO +38 -67
  11. {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/README.md +6 -39
  12. pyprocessors_iptc_mapper-0.7.3/docs/_build/.buildinfo +4 -0
  13. pyprocessors_iptc_mapper-0.7.3/docs/_build/.doctrees/CHANGELOG.doctree +0 -0
  14. pyprocessors_iptc_mapper-0.7.3/docs/_build/.doctrees/environment.pickle +0 -0
  15. pyprocessors_iptc_mapper-0.7.3/docs/_build/.doctrees/index.doctree +0 -0
  16. pyprocessors_iptc_mapper-0.7.3/docs/_build/CHANGELOG.html +231 -0
  17. pyprocessors_iptc_mapper-0.7.3/docs/_build/LICENSE +21 -0
  18. pyprocessors_iptc_mapper-0.7.3/docs/_build/_modules/index.html +211 -0
  19. pyprocessors_iptc_mapper-0.7.3/docs/_build/_modules/pyformatters_consolidate/consolidate.html +304 -0
  20. pyprocessors_iptc_mapper-0.7.3/docs/_build/_sources/CHANGELOG.md.txt +7 -0
  21. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/basic.css +904 -0
  22. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/badge_only.css +1 -0
  23. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/Roboto-Slab-Bold.woff +0 -0
  24. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/Roboto-Slab-Bold.woff2 +0 -0
  25. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/Roboto-Slab-Regular.woff +0 -0
  26. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/Roboto-Slab-Regular.woff2 +0 -0
  27. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/fontawesome-webfont.eot +0 -0
  28. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/fontawesome-webfont.svg +2671 -0
  29. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/fontawesome-webfont.ttf +0 -0
  30. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/fontawesome-webfont.woff +0 -0
  31. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/fontawesome-webfont.woff2 +0 -0
  32. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/lato-bold-italic.woff +0 -0
  33. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/lato-bold-italic.woff2 +0 -0
  34. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/lato-bold.woff +0 -0
  35. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/lato-bold.woff2 +0 -0
  36. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/lato-normal-italic.woff +0 -0
  37. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/lato-normal-italic.woff2 +0 -0
  38. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/lato-normal.woff +0 -0
  39. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/fonts/lato-normal.woff2 +0 -0
  40. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/css/theme.css +4 -0
  41. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/doctools.js +321 -0
  42. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/documentation_options.js +12 -0
  43. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/file.png +0 -0
  44. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Inconsolata-Bold.ttf +0 -0
  45. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Inconsolata-Regular.ttf +0 -0
  46. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Inconsolata.ttf +0 -0
  47. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-bold.eot +0 -0
  48. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-bold.ttf +0 -0
  49. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-bold.woff +0 -0
  50. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-bold.woff2 +0 -0
  51. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-bolditalic.eot +0 -0
  52. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-bolditalic.ttf +0 -0
  53. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-bolditalic.woff +0 -0
  54. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-bolditalic.woff2 +0 -0
  55. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-italic.eot +0 -0
  56. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-italic.ttf +0 -0
  57. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-italic.woff +0 -0
  58. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-italic.woff2 +0 -0
  59. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-regular.eot +0 -0
  60. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-regular.ttf +0 -0
  61. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-regular.woff +0 -0
  62. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato/lato-regular.woff2 +0 -0
  63. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato-Bold.ttf +0 -0
  64. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/Lato-Regular.ttf +0 -0
  65. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/RobotoSlab/roboto-slab-v7-bold.eot +0 -0
  66. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/RobotoSlab/roboto-slab-v7-bold.ttf +0 -0
  67. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff +0 -0
  68. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff2 +0 -0
  69. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/RobotoSlab/roboto-slab-v7-regular.eot +0 -0
  70. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/RobotoSlab/roboto-slab-v7-regular.ttf +0 -0
  71. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff +0 -0
  72. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff2 +0 -0
  73. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/RobotoSlab-Bold.ttf +0 -0
  74. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/RobotoSlab-Regular.ttf +0 -0
  75. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/fontawesome-webfont.eot +0 -0
  76. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/fontawesome-webfont.svg +2671 -0
  77. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/fontawesome-webfont.ttf +0 -0
  78. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/fontawesome-webfont.woff +0 -0
  79. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/fonts/fontawesome-webfont.woff2 +0 -0
  80. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/jquery-3.5.1.js +10872 -0
  81. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/jquery.js +2 -0
  82. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/js/badge_only.js +1 -0
  83. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/js/html5shiv-printshiv.min.js +4 -0
  84. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/js/html5shiv.min.js +4 -0
  85. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/js/modernizr.min.js +4 -0
  86. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/js/theme.js +1 -0
  87. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/jupyter-sphinx.css +123 -0
  88. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/language_data.js +297 -0
  89. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/minus.png +0 -0
  90. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/plus.png +0 -0
  91. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/pygments.css +74 -0
  92. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/searchtools.js +522 -0
  93. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/underscore-1.13.1.js +2042 -0
  94. pyprocessors_iptc_mapper-0.7.3/docs/_build/_static/underscore.js +6 -0
  95. pyprocessors_iptc_mapper-0.7.3/docs/_build/genindex.html +333 -0
  96. pyprocessors_iptc_mapper-0.7.3/docs/_build/index.html +262 -0
  97. pyprocessors_iptc_mapper-0.7.3/docs/_build/objects.inv +0 -0
  98. pyprocessors_iptc_mapper-0.7.3/docs/_build/py-modindex.html +235 -0
  99. pyprocessors_iptc_mapper-0.7.3/docs/_build/search.html +230 -0
  100. pyprocessors_iptc_mapper-0.7.3/docs/_build/searchindex.js +1 -0
  101. {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/docs/conf.py +1 -0
  102. pyprocessors_iptc_mapper-0.7.3/docs/index.rst +9 -0
  103. pyprocessors_iptc_mapper-0.7.3/pyproject.toml +88 -0
  104. pyprocessors_iptc_mapper-0.7.3/results.xml +1 -0
  105. pyprocessors_iptc_mapper-0.7.3/setup.py +54 -0
  106. {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/src/pyprocessors_iptc_mapper/__init__.py +1 -2
  107. {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/src/pyprocessors_iptc_mapper/iptc_mapper.py +25 -29
  108. pyprocessors_iptc_mapper-0.7.3/tests/.coverage +0 -0
  109. pyprocessors_iptc_mapper-0.7.3/tests/test_iptc_mapper.py +32 -0
  110. pyprocessors_iptc_mapper-0.7.3/tox.ini +49 -0
  111. pyprocessors_iptc_mapper-0.6.29/.pre-commit-config.yaml +0 -7
  112. pyprocessors_iptc_mapper-0.6.29/MIGRATION.md +0 -170
  113. pyprocessors_iptc_mapper-0.6.29/pyproject.toml +0 -76
  114. pyprocessors_iptc_mapper-0.6.29/tests/test_iptc_mapper.py +0 -67
  115. pyprocessors_iptc_mapper-0.6.29/trivy-html-template.tpl +0 -148
  116. {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/AUTHORS.md +0 -0
  117. {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/CHANGELOG.md +0 -0
  118. {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/LICENSE +0 -0
  119. {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/RELEASE.md +0 -0
  120. {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/bumpversion.py +0 -0
  121. {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/docs/.gitignore +0 -0
  122. {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/docs/CHANGELOG.md +0 -0
  123. {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/docs/LICENSE +0 -0
  124. /pyprocessors_iptc_mapper-0.6.29/docs/index.rst → /pyprocessors_iptc_mapper-0.7.3/docs/_build/_sources/index.rst.txt +0 -0
  125. {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/docs/_static/.gitkeep +0 -0
  126. {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/docs/_templates/.gitkeep +0 -0
  127. {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/mypy.ini +0 -0
  128. {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/src/pyprocessors_iptc_mapper/IPTC-MediaTopic-NewsCodes.xlsx +0 -0
  129. {pyprocessors_iptc_mapper-0.6.29 → pyprocessors_iptc_mapper-0.7.3}/tests/__init__.py +0 -0
  130. {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,8 @@
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
4
+ # Editor-based HTTP Client requests
5
+ /httpRequests/
6
+ # Datasource local storage ignored files
7
+ /dataSources/
8
+ /dataSources.local.xml
@@ -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,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <settings>
3
+ <option name="USE_PROJECT_PROFILE" value="false" />
4
+ <version value="1.0" />
5
+ </settings>
6
+ </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.12-slim-bookworm
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
- # Add pyproject.toml + README.md for uv sync
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 = '0'
23
- MINOR_VERSION = '6'
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 'built-in'
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 uv publishing
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 'built-in'
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 dependencies') {
114
+ stage('Install flit & flake8') {
108
115
  steps {
109
- sh 'rm -f uv.lock'
110
- sh 'pip install uv'
111
- sh 'uv sync --no-cache --extra test'
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 'uv run ruff check .'
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
- UV_PUBLISH_USERNAME = getUserName '.env'
128
- UV_PUBLISH_PASSWORD = getUserPass '.env'
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
- // build and publish on PyPI
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 uv build && uv publish ; fi
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 UV_PUBLISH_USERNAME from given file (reads FLIT_USERNAME key)
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 UV_PUBLISH_PASSWORD from given file (reads FLIT_PASSWORD key)
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.6.29
3
+ Version: 0.7.3
4
4
  Summary: Sherpa IPTC category mapper
5
- Author-email: Olivier Terrier <olivier.terrier@kairntech.com>
6
- License: MIT
7
- License-File: AUTHORS.md
8
- License-File: LICENSE
9
- Classifier: Development Status :: 4 - Beta
10
- Classifier: Intended Audience :: Developers
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
- Requires-Python: >=3.12
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: openpyxl>=3.1.0
24
- Requires-Dist: pandas>=2.0.0
25
- Requires-Dist: pymultirole-plugins<0.7.0,>=0.6.0
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 `uv` (for managing the package and running tests):
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 uv
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
- uv run ruff check .
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
- uv run --extra docs sphinx-build docs docs/_build
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 `uv` (for managing the package and running tests):
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 uv
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
- uv run pytest
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
- uv run --extra docs sphinx-build docs docs/_build
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.
@@ -0,0 +1,4 @@
1
+ # Sphinx build info version 1
2
+ # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3
+ config: 5ee982cf8181b166f6fc1b2dbb9c53c4
4
+ tags: 645f666f9bcd5a90fca523b33c5a78b7