ibridges-servers-uu 0.1.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.
- ibridges_servers_uu-0.1.0/.github/workflows/python-package.yml +82 -0
- ibridges_servers_uu-0.1.0/.github/workflows/python-publish.yml +39 -0
- ibridges_servers_uu-0.1.0/.gitignore +132 -0
- ibridges_servers_uu-0.1.0/LICENSE +21 -0
- ibridges_servers_uu-0.1.0/PKG-INFO +61 -0
- ibridges_servers_uu-0.1.0/README.md +41 -0
- ibridges_servers_uu-0.1.0/ibridges_servers_uu.egg-info/PKG-INFO +61 -0
- ibridges_servers_uu-0.1.0/ibridges_servers_uu.egg-info/SOURCES.txt +14 -0
- ibridges_servers_uu-0.1.0/ibridges_servers_uu.egg-info/dependency_links.txt +1 -0
- ibridges_servers_uu-0.1.0/ibridges_servers_uu.egg-info/entry_points.txt +2 -0
- ibridges_servers_uu-0.1.0/ibridges_servers_uu.egg-info/requires.txt +5 -0
- ibridges_servers_uu-0.1.0/ibridges_servers_uu.egg-info/top_level.txt +1 -0
- ibridges_servers_uu-0.1.0/ibridgescontrib/uutemplate/__init__.py +4 -0
- ibridges_servers_uu-0.1.0/ibridgescontrib/uutemplate/templates.py +68 -0
- ibridges_servers_uu-0.1.0/pyproject.toml +45 -0
- ibridges_servers_uu-0.1.0/setup.cfg +4 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# This workflow contains actions for
|
|
2
|
+
# - installing Python dependencies
|
|
3
|
+
# - running tests
|
|
4
|
+
# - linting with flake8, pylint
|
|
5
|
+
# - checking docstrings with pydocstyle
|
|
6
|
+
# - check if sphinx documentation builds correctly
|
|
7
|
+
# - type checking with mypy
|
|
8
|
+
#
|
|
9
|
+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
|
10
|
+
|
|
11
|
+
name: Python package
|
|
12
|
+
|
|
13
|
+
on:
|
|
14
|
+
push:
|
|
15
|
+
branches: [ main ]
|
|
16
|
+
pull_request:
|
|
17
|
+
branches: [ main ]
|
|
18
|
+
|
|
19
|
+
# Replace packagename with your package name
|
|
20
|
+
env:
|
|
21
|
+
PACKAGE_NAME: packagename
|
|
22
|
+
|
|
23
|
+
jobs:
|
|
24
|
+
build:
|
|
25
|
+
runs-on: ubuntu-latest
|
|
26
|
+
strategy:
|
|
27
|
+
fail-fast: false
|
|
28
|
+
matrix:
|
|
29
|
+
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
|
|
30
|
+
|
|
31
|
+
# When you want to test accross different OS replace lines 19-23 with the lines below
|
|
32
|
+
# runs-on: ${{ matrix.os }}-latest
|
|
33
|
+
# strategy:
|
|
34
|
+
# fail-fast: false
|
|
35
|
+
# matrix:
|
|
36
|
+
# os: [macos, ubuntu, windows]
|
|
37
|
+
# python-version: [3.8, 3.9, "3.10"]
|
|
38
|
+
|
|
39
|
+
steps:
|
|
40
|
+
- uses: actions/checkout@v2
|
|
41
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
42
|
+
uses: actions/setup-python@v2
|
|
43
|
+
with:
|
|
44
|
+
python-version: ${{ matrix.python-version }}
|
|
45
|
+
- name: Install dependencies
|
|
46
|
+
run: |
|
|
47
|
+
python -m pip install --upgrade pip
|
|
48
|
+
python -m pip install ".[test]"
|
|
49
|
+
|
|
50
|
+
- name: Lint with Ruff
|
|
51
|
+
run: ruff check ibridgescontrib
|
|
52
|
+
- name: Check types with MyPy
|
|
53
|
+
run: mypy ibridgescontrib/uutemplate --namespace-packages --explicit-package-bases
|
|
54
|
+
- name: Check if templates are listed
|
|
55
|
+
run: |
|
|
56
|
+
ibridges setup --list
|
|
57
|
+
test $(ibridges setup --list | wc -l) -eq 11
|
|
58
|
+
# Uncomment the actions below depending on the linters and tests you want to do
|
|
59
|
+
# - name: Lint with flake8pip
|
|
60
|
+
# run: |
|
|
61
|
+
# python -m pip install flake8
|
|
62
|
+
# flake8 $PACKAGE_NAME
|
|
63
|
+
# - name: Lint with pylint
|
|
64
|
+
# run: |
|
|
65
|
+
# python -m pip install pylint
|
|
66
|
+
# pylint $PACKAGE_NAME
|
|
67
|
+
# - name: Check docstrings with pydocstyle
|
|
68
|
+
# run: |
|
|
69
|
+
# python -m pip install pydocstyle
|
|
70
|
+
# pydocstyle $PACKAGE_NAME --convention=numpy --add-select=D417 --add-ignore="D102,D105"
|
|
71
|
+
# - name: Test with pytest
|
|
72
|
+
# run: |
|
|
73
|
+
# python -m pip install pytest
|
|
74
|
+
# pytest tests
|
|
75
|
+
# - name: Test with MyPy
|
|
76
|
+
# run: |
|
|
77
|
+
# python -m pip install mypy
|
|
78
|
+
# mypy $PACKAGE_NAME
|
|
79
|
+
# - name: Check if documentation builds.
|
|
80
|
+
# run: |
|
|
81
|
+
# python -m pip install sphinx sphinx-rtd-theme sphinxcontrib-napoleon sphinx-autodoc-typehints
|
|
82
|
+
# cd docs; make html SPHINXOPTS="-W --keep-going"
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# This workflow will upload a Python Package using Twine when a release is created
|
|
2
|
+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
|
|
3
|
+
|
|
4
|
+
# This workflow uses actions that are not certified by GitHub.
|
|
5
|
+
# They are provided by a third-party and are governed by
|
|
6
|
+
# separate terms of service, privacy policy, and support
|
|
7
|
+
# documentation.
|
|
8
|
+
|
|
9
|
+
name: Upload Python Package
|
|
10
|
+
|
|
11
|
+
on:
|
|
12
|
+
release:
|
|
13
|
+
types: [published]
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: read
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
deploy:
|
|
20
|
+
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v3
|
|
25
|
+
- name: Set up Python
|
|
26
|
+
uses: actions/setup-python@v3
|
|
27
|
+
with:
|
|
28
|
+
python-version: '3.x'
|
|
29
|
+
- name: Install dependencies
|
|
30
|
+
run: |
|
|
31
|
+
python -m pip install --upgrade pip
|
|
32
|
+
pip install build
|
|
33
|
+
- name: Build package
|
|
34
|
+
run: python -m build
|
|
35
|
+
- name: Publish package
|
|
36
|
+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
|
|
37
|
+
with:
|
|
38
|
+
user: __token__
|
|
39
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
ibridgescontrib/uutemplate/_version.py
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
# Byte-compiled / optimized / DLL files
|
|
5
|
+
__pycache__/
|
|
6
|
+
*.py[cod]
|
|
7
|
+
*$py.class
|
|
8
|
+
|
|
9
|
+
# C extensions
|
|
10
|
+
*.so
|
|
11
|
+
|
|
12
|
+
# Distribution / packaging
|
|
13
|
+
.Python
|
|
14
|
+
build/
|
|
15
|
+
develop-eggs/
|
|
16
|
+
dist/
|
|
17
|
+
downloads/
|
|
18
|
+
eggs/
|
|
19
|
+
.eggs/
|
|
20
|
+
lib/
|
|
21
|
+
lib64/
|
|
22
|
+
parts/
|
|
23
|
+
sdist/
|
|
24
|
+
var/
|
|
25
|
+
wheels/
|
|
26
|
+
pip-wheel-metadata/
|
|
27
|
+
share/python-wheels/
|
|
28
|
+
*.egg-info/
|
|
29
|
+
.installed.cfg
|
|
30
|
+
*.egg
|
|
31
|
+
MANIFEST
|
|
32
|
+
|
|
33
|
+
# PyInstaller
|
|
34
|
+
# Usually these files are written by a python script from a template
|
|
35
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
36
|
+
*.manifest
|
|
37
|
+
*.spec
|
|
38
|
+
|
|
39
|
+
# Installer logs
|
|
40
|
+
pip-log.txt
|
|
41
|
+
pip-delete-this-directory.txt
|
|
42
|
+
|
|
43
|
+
# Unit test / coverage reports
|
|
44
|
+
htmlcov/
|
|
45
|
+
.tox/
|
|
46
|
+
.nox/
|
|
47
|
+
.coverage
|
|
48
|
+
.coverage.*
|
|
49
|
+
.cache
|
|
50
|
+
nosetests.xml
|
|
51
|
+
coverage.xml
|
|
52
|
+
*.cover
|
|
53
|
+
*.py,cover
|
|
54
|
+
.hypothesis/
|
|
55
|
+
.pytest_cache/
|
|
56
|
+
|
|
57
|
+
# Translations
|
|
58
|
+
*.mo
|
|
59
|
+
*.pot
|
|
60
|
+
|
|
61
|
+
# Django stuff:
|
|
62
|
+
*.log
|
|
63
|
+
local_settings.py
|
|
64
|
+
db.sqlite3
|
|
65
|
+
db.sqlite3-journal
|
|
66
|
+
|
|
67
|
+
# Flask stuff:
|
|
68
|
+
instance/
|
|
69
|
+
.webassets-cache
|
|
70
|
+
|
|
71
|
+
# Scrapy stuff:
|
|
72
|
+
.scrapy
|
|
73
|
+
|
|
74
|
+
# Sphinx documentation
|
|
75
|
+
docs/_build/
|
|
76
|
+
|
|
77
|
+
# PyBuilder
|
|
78
|
+
target/
|
|
79
|
+
|
|
80
|
+
# Jupyter Notebook
|
|
81
|
+
.ipynb_checkpoints
|
|
82
|
+
|
|
83
|
+
# IPython
|
|
84
|
+
profile_default/
|
|
85
|
+
ipython_config.py
|
|
86
|
+
|
|
87
|
+
# pyenv
|
|
88
|
+
.python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
98
|
+
__pypackages__/
|
|
99
|
+
|
|
100
|
+
# Celery stuff
|
|
101
|
+
celerybeat-schedule
|
|
102
|
+
celerybeat.pid
|
|
103
|
+
|
|
104
|
+
# SageMath parsed files
|
|
105
|
+
*.sage.py
|
|
106
|
+
|
|
107
|
+
# Environments
|
|
108
|
+
.env
|
|
109
|
+
.venv
|
|
110
|
+
env/
|
|
111
|
+
venv/
|
|
112
|
+
ENV/
|
|
113
|
+
env.bak/
|
|
114
|
+
venv.bak/
|
|
115
|
+
|
|
116
|
+
# Spyder project settings
|
|
117
|
+
.spyderproject
|
|
118
|
+
.spyproject
|
|
119
|
+
|
|
120
|
+
# Rope project settings
|
|
121
|
+
.ropeproject
|
|
122
|
+
|
|
123
|
+
# mkdocs documentation
|
|
124
|
+
/site
|
|
125
|
+
|
|
126
|
+
# mypy
|
|
127
|
+
.mypy_cache/
|
|
128
|
+
.dmypy.json
|
|
129
|
+
dmypy.json
|
|
130
|
+
|
|
131
|
+
# Pyre type checker
|
|
132
|
+
.pyre/
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Utrecht University
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: ibridges-servers-uu
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: iRODS environments for connecting to Utrecht University YoDa servers
|
|
5
|
+
Author-email: Raoul Schram <r.d.schram@uu.nl>
|
|
6
|
+
License: MIT
|
|
7
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
+
Requires-Python: >=3.8
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Requires-Dist: ibridges
|
|
17
|
+
Provides-Extra: test
|
|
18
|
+
Requires-Dist: ruff; extra == "test"
|
|
19
|
+
Requires-Dist: mypy; extra == "test"
|
|
20
|
+
|
|
21
|
+
# iRODS environments for Utrecht University YoDa servers
|
|
22
|
+
|
|
23
|
+
This repository can be used to create an iRODS environment json that is needed to connect to the Utrecht University YoDa servers.
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## Step 1: Install the plugin
|
|
27
|
+
Type the following on the command line (in your virtual environment if you use one):
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
pip install git+https://github.com/UtrechtUniversity/ibridges-servers-uu.git
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Step 2: Find the right server
|
|
34
|
+
|
|
35
|
+
On the command line run the following command:
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
ibridges setup --list
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
This shows you all the names of the YoDa servers available.
|
|
42
|
+
|
|
43
|
+
## Step 3: Create your irods_environment.json
|
|
44
|
+
|
|
45
|
+
In the following examples, we use the `uu-its` server, replace it with the server that is available to your faculty.
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
ibridges setup uu-its
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
This will ask for your email address. After filling it in, a file will be created in the default location for the irods environment file (`~/.irods/irods_environment.json` on Linux and MacOS). You can modify this location adding the `--output SOME_NEW_LOCATION` flag to the above command.
|
|
52
|
+
|
|
53
|
+
## Step 4: Start using iBridges
|
|
54
|
+
|
|
55
|
+
For the main documentation on how to use iBridges, see the iBridges main [repository](https://github.com/UtrechtUniversity/iBridges).
|
|
56
|
+
|
|
57
|
+
```sh
|
|
58
|
+
ibridges init
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
which will ask you for your data access password, which you can obtain through the YoDa portal.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# iRODS environments for Utrecht University YoDa servers
|
|
2
|
+
|
|
3
|
+
This repository can be used to create an iRODS environment json that is needed to connect to the Utrecht University YoDa servers.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Step 1: Install the plugin
|
|
7
|
+
Type the following on the command line (in your virtual environment if you use one):
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pip install git+https://github.com/UtrechtUniversity/ibridges-servers-uu.git
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Step 2: Find the right server
|
|
14
|
+
|
|
15
|
+
On the command line run the following command:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
ibridges setup --list
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
This shows you all the names of the YoDa servers available.
|
|
22
|
+
|
|
23
|
+
## Step 3: Create your irods_environment.json
|
|
24
|
+
|
|
25
|
+
In the following examples, we use the `uu-its` server, replace it with the server that is available to your faculty.
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
ibridges setup uu-its
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
This will ask for your email address. After filling it in, a file will be created in the default location for the irods environment file (`~/.irods/irods_environment.json` on Linux and MacOS). You can modify this location adding the `--output SOME_NEW_LOCATION` flag to the above command.
|
|
32
|
+
|
|
33
|
+
## Step 4: Start using iBridges
|
|
34
|
+
|
|
35
|
+
For the main documentation on how to use iBridges, see the iBridges main [repository](https://github.com/UtrechtUniversity/iBridges).
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
ibridges init
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
which will ask you for your data access password, which you can obtain through the YoDa portal.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: ibridges-servers-uu
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: iRODS environments for connecting to Utrecht University YoDa servers
|
|
5
|
+
Author-email: Raoul Schram <r.d.schram@uu.nl>
|
|
6
|
+
License: MIT
|
|
7
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
+
Requires-Python: >=3.8
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
License-File: LICENSE
|
|
16
|
+
Requires-Dist: ibridges
|
|
17
|
+
Provides-Extra: test
|
|
18
|
+
Requires-Dist: ruff; extra == "test"
|
|
19
|
+
Requires-Dist: mypy; extra == "test"
|
|
20
|
+
|
|
21
|
+
# iRODS environments for Utrecht University YoDa servers
|
|
22
|
+
|
|
23
|
+
This repository can be used to create an iRODS environment json that is needed to connect to the Utrecht University YoDa servers.
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## Step 1: Install the plugin
|
|
27
|
+
Type the following on the command line (in your virtual environment if you use one):
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
pip install git+https://github.com/UtrechtUniversity/ibridges-servers-uu.git
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Step 2: Find the right server
|
|
34
|
+
|
|
35
|
+
On the command line run the following command:
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
ibridges setup --list
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
This shows you all the names of the YoDa servers available.
|
|
42
|
+
|
|
43
|
+
## Step 3: Create your irods_environment.json
|
|
44
|
+
|
|
45
|
+
In the following examples, we use the `uu-its` server, replace it with the server that is available to your faculty.
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
ibridges setup uu-its
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
This will ask for your email address. After filling it in, a file will be created in the default location for the irods environment file (`~/.irods/irods_environment.json` on Linux and MacOS). You can modify this location adding the `--output SOME_NEW_LOCATION` flag to the above command.
|
|
52
|
+
|
|
53
|
+
## Step 4: Start using iBridges
|
|
54
|
+
|
|
55
|
+
For the main documentation on how to use iBridges, see the iBridges main [repository](https://github.com/UtrechtUniversity/iBridges).
|
|
56
|
+
|
|
57
|
+
```sh
|
|
58
|
+
ibridges init
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
which will ask you for your data access password, which you can obtain through the YoDa portal.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.gitignore
|
|
2
|
+
LICENSE
|
|
3
|
+
README.md
|
|
4
|
+
pyproject.toml
|
|
5
|
+
.github/workflows/python-package.yml
|
|
6
|
+
.github/workflows/python-publish.yml
|
|
7
|
+
ibridges_servers_uu.egg-info/PKG-INFO
|
|
8
|
+
ibridges_servers_uu.egg-info/SOURCES.txt
|
|
9
|
+
ibridges_servers_uu.egg-info/dependency_links.txt
|
|
10
|
+
ibridges_servers_uu.egg-info/entry_points.txt
|
|
11
|
+
ibridges_servers_uu.egg-info/requires.txt
|
|
12
|
+
ibridges_servers_uu.egg-info/top_level.txt
|
|
13
|
+
ibridgescontrib/uutemplate/__init__.py
|
|
14
|
+
ibridgescontrib/uutemplate/templates.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ibridgescontrib
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"""Templates for irods_environment.json for Utrecht University servers."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
from string import Template
|
|
5
|
+
|
|
6
|
+
_SERVERS_TO_ZONE = {
|
|
7
|
+
"uu-youth": "nluu1p",
|
|
8
|
+
"uu-geo": "nluu11p",
|
|
9
|
+
"uu-i-lab": "nluu5p",
|
|
10
|
+
"uu-dgk": "nluu9ot",
|
|
11
|
+
"uu-science": "nluu6p",
|
|
12
|
+
"uu-fsw": "nluu10p",
|
|
13
|
+
"uu-its": "nluu12p"
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
_BASE_TEMPLATE = """{
|
|
18
|
+
"irods_host": "${host}.data.uu.nl",
|
|
19
|
+
"irods_port": 1247,
|
|
20
|
+
"irods_home": "/${zone}/home",
|
|
21
|
+
"irods_user_name": "${email_address}",
|
|
22
|
+
"irods_default_resource": "${resc}",
|
|
23
|
+
"irods_zone_name": "${zone}",
|
|
24
|
+
"irods_authentication_scheme": "pam",
|
|
25
|
+
"irods_encryption_algorithm": "AES-256-CBC",
|
|
26
|
+
"irods_encryption_key_size": 32,
|
|
27
|
+
"irods_encryption_num_hash_rounds": 16,
|
|
28
|
+
"irods_encryption_salt_size": 8,
|
|
29
|
+
"irods_client_server_policy": "CS_NEG_REQUIRE",
|
|
30
|
+
"irods_client_server_negotiation": "request_server_negotiation"
|
|
31
|
+
}
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class IBridgesUUTemplates:
|
|
36
|
+
"""Template for creating iRODS environment json files at Utrecht University."""
|
|
37
|
+
|
|
38
|
+
name = "Utrecht University templates"
|
|
39
|
+
questions = ["email_address"]
|
|
40
|
+
descriptions = {
|
|
41
|
+
"uu-youth": "YOUth Cohort Study",
|
|
42
|
+
"uu-geo": "Geosciences",
|
|
43
|
+
"uu-i-lab": "Humanities, Law, Economics, Governance, Open Societies",
|
|
44
|
+
"uu-dgk": "Veterinary Medicine, Medicine",
|
|
45
|
+
"uu-science": "Science",
|
|
46
|
+
"uu-fsw": "Social and Behavioral Sciences",
|
|
47
|
+
"uu-its": "University Corporate Offices"
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@staticmethod
|
|
51
|
+
def list_templates() -> list[str]:
|
|
52
|
+
"""List all templates for servers that are available."""
|
|
53
|
+
return list(_SERVERS_TO_ZONE)
|
|
54
|
+
|
|
55
|
+
@staticmethod
|
|
56
|
+
def contains(template_name: str) -> bool:
|
|
57
|
+
"""Whether a template name is provided by this template."""
|
|
58
|
+
return template_name in _SERVERS_TO_ZONE
|
|
59
|
+
|
|
60
|
+
@staticmethod
|
|
61
|
+
def environment_json(template_name: str, email_address: str) -> str:
|
|
62
|
+
"""Create a valid environment.json with the given inputs."""
|
|
63
|
+
host = template_name[3:]
|
|
64
|
+
zone = _SERVERS_TO_ZONE[template_name]
|
|
65
|
+
template = Template(_BASE_TEMPLATE)
|
|
66
|
+
resc = "irodsResc2" if template_name in ["uu-dgk", "uu-youth"] else "irodsResc"
|
|
67
|
+
return template.substitute({"zone": zone, "email_address": email_address,
|
|
68
|
+
"host": host, "resc": resc})
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools", "setuptools-scm"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "ibridges-servers-uu"
|
|
7
|
+
description = "iRODS environments for connecting to Utrecht University YoDa servers"
|
|
8
|
+
authors = [
|
|
9
|
+
{name = "Raoul Schram", email = "r.d.schram@uu.nl"},
|
|
10
|
+
]
|
|
11
|
+
readme = "README.md"
|
|
12
|
+
requires-python = ">=3.8"
|
|
13
|
+
license = {text = "MIT"}
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Programming Language :: Python :: 3.8",
|
|
16
|
+
"Programming Language :: Python :: 3.9",
|
|
17
|
+
"Programming Language :: Python :: 3.10",
|
|
18
|
+
"Programming Language :: Python :: 3.11",
|
|
19
|
+
"Programming Language :: Python :: 3.12",
|
|
20
|
+
"License :: OSI Approved :: MIT License",
|
|
21
|
+
]
|
|
22
|
+
dynamic = ["version"]
|
|
23
|
+
dependencies = [
|
|
24
|
+
"ibridges"
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
[project.optional-dependencies]
|
|
28
|
+
test = ["ruff", "mypy"]
|
|
29
|
+
|
|
30
|
+
[project.entry-points."ibridges_server_template"]
|
|
31
|
+
uu = "ibridgescontrib.uutemplate.templates:IBridgesUUTemplates"
|
|
32
|
+
|
|
33
|
+
[tool.setuptools]
|
|
34
|
+
packages = ["ibridgescontrib"]
|
|
35
|
+
|
|
36
|
+
[tool.setuptools_scm]
|
|
37
|
+
write_to = "ibridgescontrib/uutemplate/_version.py"
|
|
38
|
+
|
|
39
|
+
[tool.ruff]
|
|
40
|
+
line-length = 100
|
|
41
|
+
target-version = "py311"
|
|
42
|
+
|
|
43
|
+
[tool.ruff.lint]
|
|
44
|
+
select = ["C", "D", "E", "F", "UP", "B", "SIM", "I", "N", "W"]
|
|
45
|
+
ignore = ["D203", "D213", "D206", "UP007"]
|