pyannotators-patterns 0.6.1__tar.gz → 0.6.5__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.
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/Jenkinsfile +27 -18
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/PKG-INFO +1 -1
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/src/pyannotators_patterns/__init__.py +1 -1
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/.bumpversion.cfg +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/.github/workflows/main.yml +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/.gitignore +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/.pre-commit-config.yaml +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/.readthedocs.yml +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/AUTHORS.md +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/CHANGELOG.md +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/Dockerfile +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/LICENSE +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/MIGRATION.md +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/README.md +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/RELEASE.md +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/bumpversion.py +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/docs/.gitignore +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/docs/CHANGELOG.md +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/docs/LICENSE +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/docs/_static/.gitkeep +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/docs/_templates/.gitkeep +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/docs/conf.py +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/docs/index.rst +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/mypy.ini +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/pyproject.toml +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/src/pyannotators_patterns/named_pattern_recognizer.py +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/src/pyannotators_patterns/patterns.py +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/tests/assertions.py +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/tests/data/coords-document.json +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/tests/data/coords.json +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/tests/data/mgrs-document.json +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/tests/data/mgrs.json +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/tests/data/tel-document.json +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/tests/data/tel.json +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/tests/test_annotator.py +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/tests/test_coords.py +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/tests/test_credit_cards.py +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/tests/test_emails.py +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/tests/test_mgrs.py +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/tests/test_tel.py +0 -0
- {pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/tests/test_zip.py +0 -0
|
@@ -1,4 +1,17 @@
|
|
|
1
|
+
#!groovy
|
|
2
|
+
// to test groovy snippets online:
|
|
3
|
+
// https://www.jdoodle.com/execute-groovy-online
|
|
4
|
+
|
|
1
5
|
pipeline {
|
|
6
|
+
|
|
7
|
+
agent none
|
|
8
|
+
|
|
9
|
+
triggers {
|
|
10
|
+
upstream(upstreamProjects: 'pymultirole_plugins/' + BRANCH_NAME.replaceAll('/', '%2F'),\
|
|
11
|
+
threshold: hudson.model.Result.SUCCESS)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// variables declared in environment block can not be changed in any steps/stages
|
|
2
15
|
environment {
|
|
3
16
|
PATH_HOME = '/home/jenkins'
|
|
4
17
|
TEST_REPORT_DIR = '/root/test-reports'
|
|
@@ -10,13 +23,6 @@ pipeline {
|
|
|
10
23
|
MINOR_VERSION = '6'
|
|
11
24
|
}
|
|
12
25
|
|
|
13
|
-
agent none
|
|
14
|
-
|
|
15
|
-
triggers {
|
|
16
|
-
upstream(upstreamProjects: 'pymultirole_plugins/' + BRANCH_NAME.replaceAll('/', '%2F'),\
|
|
17
|
-
threshold: hudson.model.Result.SUCCESS)
|
|
18
|
-
}
|
|
19
|
-
|
|
20
26
|
stages {
|
|
21
27
|
stage('Catch build termination') {
|
|
22
28
|
agent {
|
|
@@ -66,7 +72,9 @@ pipeline {
|
|
|
66
72
|
// push updates of file __init__.py
|
|
67
73
|
withCredentials([gitUsernamePassword(credentialsId: 'bitbucket-user', gitToolName: 'git-tool')]) {
|
|
68
74
|
sh 'git pull'
|
|
69
|
-
sh "
|
|
75
|
+
sh "echo '\"\"\"Annotator based on Presidio pattern recognizer\"\"\"' > src/pyannotators_patterns/__init__.py"
|
|
76
|
+
sh "echo '' >> src/pyannotators_patterns/__init__.py"
|
|
77
|
+
sh "echo '__version__ = \"${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_ID}\"' >> src/pyannotators_patterns/__init__.py"
|
|
70
78
|
sh 'git commit src/pyannotators_patterns/__init__.py -m "[Jenkins CI] Commit on version files" || echo "No changes to commit"'
|
|
71
79
|
sh 'git push'
|
|
72
80
|
}
|
|
@@ -98,6 +106,7 @@ pipeline {
|
|
|
98
106
|
stages {
|
|
99
107
|
stage('Install dependencies') {
|
|
100
108
|
steps {
|
|
109
|
+
sh 'pip install uv'
|
|
101
110
|
sh 'uv sync --extra test'
|
|
102
111
|
}
|
|
103
112
|
}
|
|
@@ -114,8 +123,8 @@ pipeline {
|
|
|
114
123
|
|
|
115
124
|
stage('Publish on PyPI') {
|
|
116
125
|
environment {
|
|
117
|
-
UV_PUBLISH_USERNAME = getUserName
|
|
118
|
-
UV_PUBLISH_PASSWORD = getUserPass
|
|
126
|
+
UV_PUBLISH_USERNAME = getUserName '.env'
|
|
127
|
+
UV_PUBLISH_PASSWORD = getUserPass '.env'
|
|
119
128
|
}
|
|
120
129
|
steps {
|
|
121
130
|
// remove any previous folder dist
|
|
@@ -169,7 +178,7 @@ pipeline {
|
|
|
169
178
|
}
|
|
170
179
|
if (sendEmailNotif("${PATH_HOME}/${JOB_NAME}", "${BUILD_NUMBER}")) {
|
|
171
180
|
println 'sending Success Build notification'
|
|
172
|
-
CUSTOM_SUBJECT = '[CI - Jenkinzz SUCCESS] ' + CUSTOM_SUBJECT
|
|
181
|
+
def CUSTOM_SUBJECT = '[CI - Jenkinzz SUCCESS] ' + CUSTOM_SUBJECT
|
|
173
182
|
emailext(
|
|
174
183
|
mimeType: 'text/html',
|
|
175
184
|
subject: CUSTOM_SUBJECT,
|
|
@@ -204,7 +213,7 @@ pipeline {
|
|
|
204
213
|
println 'Exception occurred: ' + e.toString()
|
|
205
214
|
}
|
|
206
215
|
println 'sending Failure Build notification'
|
|
207
|
-
CUSTOM_SUBJECT = '[CI - Jenkinzz FAILURE] ' + CUSTOM_SUBJECT
|
|
216
|
+
def CUSTOM_SUBJECT = '[CI - Jenkinzz FAILURE] ' + CUSTOM_SUBJECT
|
|
208
217
|
emailext(
|
|
209
218
|
mimeType: 'text/html',
|
|
210
219
|
subject: CUSTOM_SUBJECT,
|
|
@@ -228,7 +237,7 @@ pipeline {
|
|
|
228
237
|
|
|
229
238
|
// return UV_PUBLISH_USERNAME from given file (reads FLIT_USERNAME key)
|
|
230
239
|
def getUserName(path) {
|
|
231
|
-
USERNAME = sh(
|
|
240
|
+
def USERNAME = sh(
|
|
232
241
|
script: "grep FLIT_USERNAME ${path}|cut -d '=' -f2",
|
|
233
242
|
returnStdout: true
|
|
234
243
|
).trim()
|
|
@@ -237,7 +246,7 @@ def getUserName(path) {
|
|
|
237
246
|
|
|
238
247
|
// return UV_PUBLISH_PASSWORD from given file (reads FLIT_PASSWORD key)
|
|
239
248
|
def getUserPass(path) {
|
|
240
|
-
USERPASS = sh(
|
|
249
|
+
def USERPASS = sh(
|
|
241
250
|
script: "grep FLIT_PASSWORD ${path}|cut -d '=' -f2",
|
|
242
251
|
returnStdout: true
|
|
243
252
|
).trim()
|
|
@@ -257,11 +266,11 @@ def switchEmailNotif(toggle, build) {
|
|
|
257
266
|
|
|
258
267
|
// return true if emailNotif file present
|
|
259
268
|
boolean sendEmailNotif(path, build) {
|
|
260
|
-
emailNotif = sh(
|
|
269
|
+
def emailNotif = sh(
|
|
261
270
|
script: "find ${path} -name '.emailNotif'|wc -l",
|
|
262
271
|
returnStdout: true
|
|
263
272
|
).trim()
|
|
264
|
-
emailContent = ''
|
|
273
|
+
def emailContent = ''
|
|
265
274
|
if (emailNotif == '1') {
|
|
266
275
|
emailContent = sh(
|
|
267
276
|
script: "cat ${path}/.emailNotif",
|
|
@@ -272,7 +281,7 @@ boolean sendEmailNotif(path, build) {
|
|
|
272
281
|
}
|
|
273
282
|
|
|
274
283
|
def analyseBuildCause() {
|
|
275
|
-
upstreamProjects = ['
|
|
284
|
+
String[] upstreamProjects = ['pymultirole_plugins']
|
|
276
285
|
boolean upstreamRunning = false
|
|
277
286
|
String jobName
|
|
278
287
|
// iterate over upstreamProjects
|
|
@@ -396,6 +405,6 @@ def analyseBuildCause() {
|
|
|
396
405
|
println 'Skipping build because last commit has been done by CI'
|
|
397
406
|
env.SKIP_JOB = '1'
|
|
398
407
|
switchEmailNotif(false, 0)
|
|
399
|
-
|
|
408
|
+
currentBuild.result = 'NOT_BUILT'
|
|
400
409
|
}
|
|
401
410
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyannotators-patterns
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.5
|
|
4
4
|
Summary: Annotator based on Presidio pattern recognizer
|
|
5
5
|
Project-URL: Homepage, https://github.com/oterrier/pyannotators_patterns/
|
|
6
6
|
Author-email: Olivier Terrier <olivier.terrier@kairntech.com>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyannotators_patterns-0.6.1 → pyannotators_patterns-0.6.5}/src/pyannotators_patterns/patterns.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|