ibridges-servers-uu 0.1.0__tar.gz → 0.3.0__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 (16) hide show
  1. {ibridges_servers_uu-0.1.0 → ibridges_servers_uu-0.3.0}/.github/workflows/python-package.yml +1 -1
  2. {ibridges_servers_uu-0.1.0/ibridges_servers_uu.egg-info → ibridges_servers_uu-0.3.0}/PKG-INFO +4 -3
  3. {ibridges_servers_uu-0.1.0 → ibridges_servers_uu-0.3.0}/README.md +1 -1
  4. {ibridges_servers_uu-0.1.0 → ibridges_servers_uu-0.3.0/ibridges_servers_uu.egg-info}/PKG-INFO +4 -3
  5. {ibridges_servers_uu-0.1.0 → ibridges_servers_uu-0.3.0}/ibridgescontrib/uutemplate/templates.py +9 -6
  6. {ibridges_servers_uu-0.1.0 → ibridges_servers_uu-0.3.0}/pyproject.toml +1 -0
  7. {ibridges_servers_uu-0.1.0 → ibridges_servers_uu-0.3.0}/.github/workflows/python-publish.yml +0 -0
  8. {ibridges_servers_uu-0.1.0 → ibridges_servers_uu-0.3.0}/.gitignore +0 -0
  9. {ibridges_servers_uu-0.1.0 → ibridges_servers_uu-0.3.0}/LICENSE +0 -0
  10. {ibridges_servers_uu-0.1.0 → ibridges_servers_uu-0.3.0}/ibridges_servers_uu.egg-info/SOURCES.txt +0 -0
  11. {ibridges_servers_uu-0.1.0 → ibridges_servers_uu-0.3.0}/ibridges_servers_uu.egg-info/dependency_links.txt +0 -0
  12. {ibridges_servers_uu-0.1.0 → ibridges_servers_uu-0.3.0}/ibridges_servers_uu.egg-info/entry_points.txt +0 -0
  13. {ibridges_servers_uu-0.1.0 → ibridges_servers_uu-0.3.0}/ibridges_servers_uu.egg-info/requires.txt +0 -0
  14. {ibridges_servers_uu-0.1.0 → ibridges_servers_uu-0.3.0}/ibridges_servers_uu.egg-info/top_level.txt +0 -0
  15. {ibridges_servers_uu-0.1.0 → ibridges_servers_uu-0.3.0}/ibridgescontrib/uutemplate/__init__.py +0 -0
  16. {ibridges_servers_uu-0.1.0 → ibridges_servers_uu-0.3.0}/setup.cfg +0 -0
@@ -54,7 +54,7 @@ jobs:
54
54
  - name: Check if templates are listed
55
55
  run: |
56
56
  ibridges setup --list
57
- test $(ibridges setup --list | wc -l) -eq 11
57
+ test $(ibridges setup --list | wc -l) -eq 12
58
58
  # Uncomment the actions below depending on the linters and tests you want to do
59
59
  # - name: Lint with flake8pip
60
60
  # run: |
@@ -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
@@ -17,6 +17,7 @@ Requires-Dist: ibridges
17
17
  Provides-Extra: test
18
18
  Requires-Dist: ruff; extra == "test"
19
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
@@ -7,7 +7,7 @@ This repository can be used to create an iRODS environment json that is needed t
7
7
  Type the following on the command line (in your virtual environment if you use one):
8
8
 
9
9
  ```sh
10
- pip install git+https://github.com/UtrechtUniversity/ibridges-servers-uu.git
10
+ pip install ibridges-servers-uu
11
11
  ```
12
12
 
13
13
  ## Step 2: Find the right server
@@ -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
@@ -17,6 +17,7 @@ Requires-Dist: ibridges
17
17
  Provides-Extra: test
18
18
  Requires-Dist: ruff; extra == "test"
19
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
@@ -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})
@@ -37,6 +37,7 @@ packages = ["ibridgescontrib"]
37
37
  write_to = "ibridgescontrib/uutemplate/_version.py"
38
38
 
39
39
  [tool.ruff]
40
+ exclude = ["_version.py"]
40
41
  line-length = 100
41
42
  target-version = "py311"
42
43