ibridges-servers-uu 0.1.0__py3-none-any.whl → 0.3.0__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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: ibridges-servers-uu
3
- Version: 0.1.0
3
+ Version: 0.3.0
4
4
  Summary: iRODS environments for connecting to Utrecht University YoDa servers
5
5
  Author-email: Raoul Schram <r.d.schram@uu.nl>
6
6
  License: MIT
@@ -15,8 +15,9 @@ Description-Content-Type: text/markdown
15
15
  License-File: LICENSE
16
16
  Requires-Dist: ibridges
17
17
  Provides-Extra: test
18
- Requires-Dist: ruff ; extra == 'test'
19
- Requires-Dist: mypy ; extra == 'test'
18
+ Requires-Dist: ruff; extra == "test"
19
+ Requires-Dist: mypy; extra == "test"
20
+ Dynamic: license-file
20
21
 
21
22
  # iRODS environments for Utrecht University YoDa servers
22
23
 
@@ -27,7 +28,7 @@ This repository can be used to create an iRODS environment json that is needed t
27
28
  Type the following on the command line (in your virtual environment if you use one):
28
29
 
29
30
  ```sh
30
- pip install git+https://github.com/UtrechtUniversity/ibridges-servers-uu.git
31
+ pip install ibridges-servers-uu
31
32
  ```
32
33
 
33
34
  ## Step 2: Find the right server
@@ -0,0 +1,8 @@
1
+ ibridges_servers_uu-0.3.0.dist-info/licenses/LICENSE,sha256=ay-UsYxtg18FgqX26bbkZXtixJEeFQLerUnVPPFJsYs,1075
2
+ ibridgescontrib/uutemplate/__init__.py,sha256=uujuvXATexxpuu0oWNZH6UPlZYt-QvvmCuPvftIqTP8,183
3
+ ibridgescontrib/uutemplate/templates.py,sha256=yJemidoku9LFiqmY_4h1OLyom_BTtmyX-xcwFJtXsB0,2572
4
+ ibridges_servers_uu-0.3.0.dist-info/METADATA,sha256=3Oea6u3N1x1yeiHJzfqBvK20MplWlDNm5-KUfF6Q04Q,2034
5
+ ibridges_servers_uu-0.3.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ ibridges_servers_uu-0.3.0.dist-info/entry_points.txt,sha256=l2aUKOoy1_RJhkTxDPeuWhUFrUjVUoXocM1CvIFuu7s,89
7
+ ibridges_servers_uu-0.3.0.dist-info/top_level.txt,sha256=G7_Il8nHR05MqFQv1DG_sYF_e0PBh-lGuBFVsnjEhEE,16
8
+ ibridges_servers_uu-0.3.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (74.1.2)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -10,18 +10,19 @@ _SERVERS_TO_ZONE = {
10
10
  "uu-dgk": "nluu9ot",
11
11
  "uu-science": "nluu6p",
12
12
  "uu-fsw": "nluu10p",
13
- "uu-its": "nluu12p"
13
+ "uu-its": "nluu12p",
14
+ "uu-surf": "uu",
14
15
  }
15
16
 
16
17
 
17
18
  _BASE_TEMPLATE = """{
18
- "irods_host": "${host}.data.uu.nl",
19
+ "irods_host": "${host}.uu.nl",
19
20
  "irods_port": 1247,
20
21
  "irods_home": "/${zone}/home",
21
22
  "irods_user_name": "${email_address}",
22
23
  "irods_default_resource": "${resc}",
23
24
  "irods_zone_name": "${zone}",
24
- "irods_authentication_scheme": "pam",
25
+ "irods_authentication_scheme": "${pam_scheme}",
25
26
  "irods_encryption_algorithm": "AES-256-CBC",
26
27
  "irods_encryption_key_size": 32,
27
28
  "irods_encryption_num_hash_rounds": 16,
@@ -44,7 +45,8 @@ class IBridgesUUTemplates:
44
45
  "uu-dgk": "Veterinary Medicine, Medicine",
45
46
  "uu-science": "Science",
46
47
  "uu-fsw": "Social and Behavioral Sciences",
47
- "uu-its": "University Corporate Offices"
48
+ "uu-its": "University Corporate Offices",
49
+ "uu-surf": "Yoda instance hosted at SURF"
48
50
  }
49
51
 
50
52
  @staticmethod
@@ -60,9 +62,10 @@ class IBridgesUUTemplates:
60
62
  @staticmethod
61
63
  def environment_json(template_name: str, email_address: str) -> str:
62
64
  """Create a valid environment.json with the given inputs."""
63
- host = template_name[3:]
65
+ host = template_name[3:]+".data" if template_name != "uu-surf" else "data.yoda"
64
66
  zone = _SERVERS_TO_ZONE[template_name]
65
67
  template = Template(_BASE_TEMPLATE)
68
+ pam_scheme = "pam_password" if template_name != "uu-surf" else "pam"
66
69
  resc = "irodsResc2" if template_name in ["uu-dgk", "uu-youth"] else "irodsResc"
67
70
  return template.substitute({"zone": zone, "email_address": email_address,
68
- "host": host, "resc": resc})
71
+ "host": host, "resc": resc, "pam_scheme": pam_scheme})
@@ -1,8 +0,0 @@
1
- ibridgescontrib/uutemplate/__init__.py,sha256=uujuvXATexxpuu0oWNZH6UPlZYt-QvvmCuPvftIqTP8,183
2
- ibridgescontrib/uutemplate/templates.py,sha256=idxBGHr3_TAA30YkHQtFJzePcsGpDAehw3mpSNkLzNs,2336
3
- ibridges_servers_uu-0.1.0.dist-info/LICENSE,sha256=ay-UsYxtg18FgqX26bbkZXtixJEeFQLerUnVPPFJsYs,1075
4
- ibridges_servers_uu-0.1.0.dist-info/METADATA,sha256=BItwFHNwUjJjPhq0N3blrMCUGDs00DlHmORhA1wENd4,2059
5
- ibridges_servers_uu-0.1.0.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
6
- ibridges_servers_uu-0.1.0.dist-info/entry_points.txt,sha256=l2aUKOoy1_RJhkTxDPeuWhUFrUjVUoXocM1CvIFuu7s,89
7
- ibridges_servers_uu-0.1.0.dist-info/top_level.txt,sha256=G7_Il8nHR05MqFQv1DG_sYF_e0PBh-lGuBFVsnjEhEE,16
8
- ibridges_servers_uu-0.1.0.dist-info/RECORD,,