Skip to content

Commit 546ac00

Browse files
🚀 Launch INCLUDE version of the Model
0 parents  commit 546ac00

43 files changed

Lines changed: 5162 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.copier-answers.yml‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Changes here will be overwritten by Copier
2+
_commit: v0.4.1
3+
_src_path: https://github.com/linkml/linkml-project-copier
4+
add_example: false
5+
copyright_year: '2025'
6+
email: robert.carroll@vumc.org
7+
full_name: Robert Carroll
8+
gh_action_docs_preview: true
9+
gh_action_pypi: false
10+
github_org: include-dcc
11+
license: MIT
12+
project_description: Internal Access model for the INCLUDE DCC.
13+
project_name: include-access-model
14+
project_slug: include_access_model
15+

‎.editorconfig‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Check http://editorconfig.org for more information
2+
# This is the main config file for this project:
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
insert_final_newline = true
9+
indent_style = space
10+
indent_size = 2
11+
trim_trailing_whitespace = true
12+
13+
[*.py]
14+
indent_style = space
15+
indent_size = 4
16+
17+
[*.md]
18+
trim_trailing_whitespace = false

‎.github/dependabot.yml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Please see the documentation for all configuration options:
2+
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference
3+
4+
version: 2
5+
updates:
6+
- package-ecosystem: github-actions
7+
directory: "/"
8+
schedule:
9+
interval: monthly
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
name: Deploy docs
3+
on: # yamllint disable-line rule:truthy
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions: {}
9+
10+
jobs:
11+
build-docs:
12+
runs-on: ubuntu-latest
13+
14+
# Grant GITHUB_TOKEN the permissions required to make a gh-pages deployment
15+
permissions:
16+
contents: write # to let mkdocs write the new docs
17+
pages: write # to deploy to Pages
18+
id-token: write # allow to generate an OpenID Connect (OIDC) token
19+
20+
steps:
21+
# https://github.com/actions/checkout
22+
- name: Checkout
23+
uses: actions/checkout@v6.0.2
24+
with:
25+
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
26+
27+
- name: Configure git for the bot
28+
# Gives the bot that commits to gh-pages a name & email address
29+
# so that the commits have an author in the commit log.
30+
run: |
31+
git config user.name github-actions[bot]
32+
git config user.email github-actions[bot]@users.noreply.github.com
33+
34+
# https://github.com/astral-sh/setup-uv
35+
- name: Install uv
36+
uses: astral-sh/setup-uv@v8.0.0
37+
with:
38+
python-version: 3.13
39+
enable-cache: true
40+
cache-dependency-glob: "uv.lock"
41+
42+
# https://github.com/actions/setup-python
43+
- name: Set up Python
44+
uses: actions/setup-python@v6.2.0
45+
with:
46+
python-version: 3.13
47+
48+
- name: Install just
49+
run: |
50+
uv tool install rust-just
51+
52+
- name: Install dependencies
53+
run: uv sync --dev --no-progress
54+
55+
- name: Generate schema documentation
56+
run: |
57+
just gen-doc
58+
uv run mkdocs gh-deploy
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Built from:
2+
# https://docs.github.com/en/actions/guides/building-and-testing-python
3+
---
4+
name: Build and test
5+
6+
on: # yamllint disable-line rule:truthy
7+
push:
8+
branches: [main]
9+
pull_request:
10+
11+
env:
12+
FORCE_COLOR: "1" # Make tools pretty.
13+
14+
permissions: {}
15+
16+
jobs:
17+
test:
18+
19+
runs-on: ubuntu-latest
20+
strategy:
21+
matrix:
22+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
23+
fail-fast: false
24+
25+
steps:
26+
27+
# https://github.com/actions/checkout
28+
- name: Check out repository
29+
uses: actions/checkout@v6.0.2
30+
with:
31+
persist-credentials: false
32+
33+
# https://github.com/astral-sh/setup-uv
34+
- name: Install uv
35+
uses: astral-sh/setup-uv@v8.0.0
36+
with:
37+
python-version: ${{ matrix.python-version }}
38+
enable-cache: true
39+
cache-dependency-glob: "uv.lock"
40+
41+
# https://github.com/actions/setup-python
42+
- name: Set up Python ${{ matrix.python-version }}
43+
uses: actions/setup-python@v6.2.0
44+
with:
45+
python-version: ${{ matrix.python-version }}
46+
47+
- name: Install just
48+
run: |
49+
uv tool install rust-just
50+
51+
- name: Install project
52+
run: uv sync --dev
53+
54+
- name: Run test suite
55+
run: just test
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Preview documentation build
2+
3+
on: # yamllint disable-line rule:truthy
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- synchronize
9+
10+
env:
11+
CLICOLOR: 1
12+
13+
concurrency: preview-${{ github.ref }}
14+
15+
permissions: {}
16+
17+
jobs:
18+
run:
19+
# Grant GITHUB_TOKEN the permissions required to make a gh-pages deployment
20+
permissions:
21+
contents: write # to let mkdocs write the new docs
22+
pages: write # to deploy to Pages
23+
id-token: write # allow to generate an OpenID Connect (OIDC) token
24+
pull-requests: write # add comment on the PR with the preview URL
25+
runs-on: ubuntu-latest
26+
steps:
27+
# https://github.com/actions/checkout
28+
- name: Checkout
29+
uses: actions/checkout@v6.0.2
30+
with:
31+
fetch-depth: 0
32+
33+
# https://github.com/astral-sh/setup-uv
34+
- name: Install uv
35+
uses: astral-sh/setup-uv@v8.0.0
36+
with:
37+
python-version: 3.13
38+
enable-cache: true
39+
cache-dependency-glob: "uv.lock"
40+
41+
# https://github.com/actions/setup-python
42+
- name: Set up Python 3
43+
uses: actions/setup-python@v6.2.0
44+
with:
45+
python-version: 3.13
46+
47+
- name: Install just
48+
run: |
49+
uv tool install rust-just
50+
51+
- name: Install dependencies
52+
run: uv sync --dev --no-progress
53+
54+
- name: Build documentation
55+
run: |
56+
just gen-doc
57+
uv run mkdocs build -d site
58+
touch site/.nojekyll
59+
60+
# https://github.com/rossjrw/pr-preview-action
61+
- name: Deploy preview
62+
uses: rossjrw/pr-preview-action@v1.8.1
63+
with:
64+
source-dir: site/
65+
preview-branch: gh-pages

‎.gitignore‎

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
# generated part of documentation
2+
/docs/elements/*.md
3+
/docs/schema/*.yaml
4+
5+
# generated pydantic model
6+
/src/include_access_model/datamodel/include_access_model_pydantic.py
7+
/src/include_access_model/datamodel/include_access_model.py
8+
9+
# linkml-run-examples output (not useful to have in git in its current form)
10+
/examples/output/
11+
12+
# Derived schemas, generated from the schema.yaml
13+
tmp/
14+
project/
15+
!project/README.md
16+
17+
# Byte-compiled / optimized / DLL files
18+
__pycache__/
19+
*.py[cod]
20+
*$py.class
21+
22+
# C extensions
23+
*.so
24+
25+
# Distribution / packaging
26+
.Python
27+
build/
28+
develop-eggs/
29+
dist/
30+
downloads/
31+
eggs/
32+
.eggs/
33+
lib/
34+
lib64/
35+
parts/
36+
sdist/
37+
var/
38+
wheels/
39+
pip-wheel-metadata/
40+
share/python-wheels/
41+
*.egg-info/
42+
.installed.cfg
43+
*.egg
44+
MANIFEST
45+
46+
# PyInstaller
47+
# Usually these files are written by a python script from a template
48+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
49+
*.manifest
50+
*.spec
51+
52+
# Installer logs
53+
pip-log.txt
54+
pip-delete-this-directory.txt
55+
56+
# Unit test / coverage reports
57+
htmlcov/
58+
.tox/
59+
.nox/
60+
.coverage
61+
.coverage.*
62+
.cache
63+
nosetests.xml
64+
coverage.xml
65+
*.cover
66+
*.py,cover
67+
.hypothesis/
68+
.pytest_cache/
69+
70+
# Translations
71+
*.mo
72+
*.pot
73+
74+
# Django stuff:
75+
*.log
76+
local_settings.py
77+
db.sqlite3
78+
db.sqlite3-journal
79+
80+
# Flask stuff:
81+
instance/
82+
.webassets-cache
83+
84+
# Scrapy stuff:
85+
.scrapy
86+
87+
# Sphinx documentation
88+
docs/_build/
89+
90+
# PyBuilder
91+
target/
92+
93+
# Jupyter Notebook
94+
.ipynb_checkpoints
95+
96+
# IPython
97+
profile_default/
98+
ipython_config.py
99+
100+
# pyenv
101+
.python-version
102+
103+
# pipenv
104+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
105+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
106+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
107+
# install all needed dependencies.
108+
#Pipfile.lock
109+
110+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
111+
__pypackages__/
112+
113+
# Celery stuff
114+
celerybeat-schedule
115+
celerybeat.pid
116+
117+
# SageMath parsed files
118+
*.sage.py
119+
120+
# Environments
121+
.env
122+
.venv
123+
env/
124+
venv/
125+
ENV/
126+
env.bak/
127+
venv.bak/
128+
129+
# Spyder project settings
130+
.spyderproject
131+
.spyproject
132+
133+
# Rope project settings
134+
.ropeproject
135+
136+
# mkdocs documentation
137+
/site
138+
139+
# mypy
140+
.mypy_cache/
141+
.dmypy.json
142+
dmypy.json
143+
144+
# Pyre type checker
145+
.pyre/
146+
147+
# pycharm
148+
.idea
149+
# Local vscode editor config
150+
.vscode

‎.gitmodules‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "common-access-model"]
2+
path = common-access-model
3+
url = https://github.com/include-dcc/common-access-model
4+
[submodule "src/include_access_model/schema/common-access-model"]
5+
path = src/include_access_model/schema/common-access-model
6+
url = https://github.com/include-dcc/common-access-model

0 commit comments

Comments
 (0)