ebi-eva-common-pyutils 0.6.12__py3-none-any.whl → 0.6.14__py3-none-any.whl
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.
- {ebi_eva_common_pyutils-0.6.12.dist-info → ebi_eva_common_pyutils-0.6.14.dist-info}/METADATA +13 -7
- {ebi_eva_common_pyutils-0.6.12.dist-info → ebi_eva_common_pyutils-0.6.14.dist-info}/RECORD +7 -7
- {ebi_eva_common_pyutils-0.6.12.dist-info → ebi_eva_common_pyutils-0.6.14.dist-info}/WHEEL +1 -1
- ebi_eva_internal_pyutils/spring_properties.py +4 -7
- {ebi_eva_common_pyutils-0.6.12.data → ebi_eva_common_pyutils-0.6.14.data}/scripts/archive_directory.py +0 -0
- {ebi_eva_common_pyutils-0.6.12.dist-info → ebi_eva_common_pyutils-0.6.14.dist-info}/LICENSE +0 -0
- {ebi_eva_common_pyutils-0.6.12.dist-info → ebi_eva_common_pyutils-0.6.14.dist-info}/top_level.txt +0 -0
{ebi_eva_common_pyutils-0.6.12.dist-info → ebi_eva_common_pyutils-0.6.14.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
2
|
-
Name:
|
|
3
|
-
Version: 0.6.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: ebi_eva_common_pyutils
|
|
3
|
+
Version: 0.6.14
|
|
4
4
|
Summary: EBI EVA - Common Python Utilities
|
|
5
5
|
Home-page: https://github.com/EBIVariation/eva-common-pyutils
|
|
6
6
|
License: Apache
|
|
@@ -17,7 +17,13 @@ Requires-Dist: pyyaml
|
|
|
17
17
|
Requires-Dist: cached-property
|
|
18
18
|
Requires-Dist: retry
|
|
19
19
|
Provides-Extra: eva-internal
|
|
20
|
-
Requires-Dist: psycopg2-binary
|
|
21
|
-
Requires-Dist: pymongo
|
|
22
|
-
Requires-Dist: networkx
|
|
23
|
-
|
|
20
|
+
Requires-Dist: psycopg2-binary; extra == "eva-internal"
|
|
21
|
+
Requires-Dist: pymongo; extra == "eva-internal"
|
|
22
|
+
Requires-Dist: networkx<=2.5; extra == "eva-internal"
|
|
23
|
+
Dynamic: classifier
|
|
24
|
+
Dynamic: home-page
|
|
25
|
+
Dynamic: keywords
|
|
26
|
+
Dynamic: license
|
|
27
|
+
Dynamic: provides-extra
|
|
28
|
+
Dynamic: requires-dist
|
|
29
|
+
Dynamic: summary
|
|
@@ -20,20 +20,20 @@ ebi_eva_common_pyutils/taxonomy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm
|
|
|
20
20
|
ebi_eva_common_pyutils/taxonomy/taxonomy.py,sha256=p3XV4g3y0hEjyeZ4PwgN7Q3Et9G515ctQkSIo1kdDbU,2259
|
|
21
21
|
ebi_eva_common_pyutils/variation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
22
|
ebi_eva_common_pyutils/variation/contig_utils.py,sha256=kMNEW_P2yPnd8Xx1tep19hy5ee7ojxz6ZOO1grTQsRQ,5230
|
|
23
|
-
ebi_eva_common_pyutils-0.6.
|
|
23
|
+
ebi_eva_common_pyutils-0.6.14.data/scripts/archive_directory.py,sha256=0lWJ0ju_AB2ni7lMnJXPFx6U2OdTGbe-WoQs-4BfKOM,4976
|
|
24
24
|
ebi_eva_internal_pyutils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
25
|
ebi_eva_internal_pyutils/archive_directory.py,sha256=IxVEfh_gaCiT652k0Q_-58fonRusy1yzXu7BCO8yVLo,4989
|
|
26
26
|
ebi_eva_internal_pyutils/config_utils.py,sha256=EGRC5rsmU_ug7OY9-t1UW1XZXRsauSyZB9xPcBux8ts,7909
|
|
27
27
|
ebi_eva_internal_pyutils/metadata_utils.py,sha256=t9PcXZdbfjDBP04GJenC4bxm2nOLd8oI_MP9eNe9IBQ,15221
|
|
28
28
|
ebi_eva_internal_pyutils/mongo_utils.py,sha256=YxKHtb5ygDiGLOtEiiAMFCP2ow6FL9Kq0K5R0mWNdXY,3575
|
|
29
29
|
ebi_eva_internal_pyutils/pg_utils.py,sha256=FUQVwiX_7F2-4sSzoaCVX2me0zAqR8nGIj6NW5d304A,4398
|
|
30
|
-
ebi_eva_internal_pyutils/spring_properties.py,sha256=
|
|
30
|
+
ebi_eva_internal_pyutils/spring_properties.py,sha256=Tn207DmZehFt7oExseNsXFAnsxr7bX9yiGl4t9mpGVA,15165
|
|
31
31
|
ebi_eva_internal_pyutils/mongodb/__init__.py,sha256=0oyTlkYZCV7udlPl09Zl-sDyE3c97QZMMTEFIa6uYIw,76
|
|
32
32
|
ebi_eva_internal_pyutils/mongodb/mongo_database.py,sha256=kesaJaaxYFeF_uYZBgL8tbufGKUXll7bXb4WlOS9vKM,9596
|
|
33
33
|
ebi_eva_internal_pyutils/nextflow/__init__.py,sha256=OOiJS8jZOz98q0t77NNog7aI_fFrVxi4kGmiSskuAqM,122
|
|
34
34
|
ebi_eva_internal_pyutils/nextflow/nextflow_pipeline.py,sha256=ew623hhK8jmFLQjJwLZbgBmW9RTiJBEULVqHfIUv_dc,10114
|
|
35
|
-
ebi_eva_common_pyutils-0.6.
|
|
36
|
-
ebi_eva_common_pyutils-0.6.
|
|
37
|
-
ebi_eva_common_pyutils-0.6.
|
|
38
|
-
ebi_eva_common_pyutils-0.6.
|
|
39
|
-
ebi_eva_common_pyutils-0.6.
|
|
35
|
+
ebi_eva_common_pyutils-0.6.14.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
36
|
+
ebi_eva_common_pyutils-0.6.14.dist-info/METADATA,sha256=13ykCwUwZJ9YSL7MG8vItGSaw-4dvFvLZuJE-U2vVKg,956
|
|
37
|
+
ebi_eva_common_pyutils-0.6.14.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
|
38
|
+
ebi_eva_common_pyutils-0.6.14.dist-info/top_level.txt,sha256=sXoiqiGU8vlMQpFWDlKrekxhlusk06AhkOH3kSvDT6c,48
|
|
39
|
+
ebi_eva_common_pyutils-0.6.14.dist-info/RECORD,,
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
# See the License for the specific language governing permissions and
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
from collections import defaultdict
|
|
15
|
+
from urllib.parse import quote_plus
|
|
15
16
|
|
|
16
17
|
from ebi_eva_internal_pyutils.config_utils import get_mongo_creds_for_profile, get_accession_pg_creds_for_profile, \
|
|
17
18
|
get_count_service_creds_for_profile, get_properties_from_xml_file, get_variant_load_job_tracker_creds_for_profile
|
|
@@ -55,14 +56,10 @@ class SpringPropertiesGenerator:
|
|
|
55
56
|
def _mongo_properties(self):
|
|
56
57
|
mongo_host, mongo_user, mongo_pass = get_mongo_creds_for_profile(
|
|
57
58
|
self.maven_profile, self.private_settings_file)
|
|
59
|
+
username_with_password = (f'{quote_plus(mongo_user)}:{quote_plus(mongo_pass)}@'
|
|
60
|
+
if mongo_user is not None and mongo_pass is not None else '')
|
|
58
61
|
return {
|
|
59
|
-
'spring.data.mongodb.
|
|
60
|
-
# Don't specify port if hosts already have the port encoded in them
|
|
61
|
-
# Also see https://github.com/EBIvariation/variation-commons/blob/329d4fa18da73bdad419ca5456b9897c059e33f0/variation-commons-mongodb/src/main/java/uk/ac/ebi/eva/commons/mongodb/utils/MongoClientURIBuilder.java#L44
|
|
62
|
-
'spring.data.mongodb.port': '' if ':' in mongo_host else 27017,
|
|
63
|
-
'spring.data.mongodb.username': '' if mongo_user is None else mongo_user,
|
|
64
|
-
'spring.data.mongodb.password': '' if mongo_pass is None else mongo_pass,
|
|
65
|
-
'spring.data.mongodb.authentication-database': 'admin',
|
|
62
|
+
'spring.data.mongodb.uri': f'mongodb://{username_with_password}{mongo_host}/?retryWrites=true&authSource=admin',
|
|
66
63
|
}
|
|
67
64
|
|
|
68
65
|
def _variant_load_job_tracker_properties(self):
|
|
File without changes
|
|
File without changes
|
{ebi_eva_common_pyutils-0.6.12.dist-info → ebi_eva_common_pyutils-0.6.14.dist-info}/top_level.txt
RENAMED
|
File without changes
|