Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define JSON Schema for construct.yml #943

Merged
merged 62 commits into from
Mar 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
800206f
Crude schema migration to Pydantic model and JSON Schema
jaimergp Feb 28, 2025
500f97c
add $schema path in examples
jaimergp Feb 28, 2025
e3aa238
Add pydantic to dependencies, small fixes
jaimergp Feb 28, 2025
1ecaa7b
Refine types
jaimergp Feb 28, 2025
4d870ec
Generate documentation from Pydantic model
jaimergp Mar 5, 2025
0014436
Adjust documentation generation pipeline
jaimergp Mar 5, 2025
4316140
Implement JSON Schema validation
jaimergp Mar 5, 2025
8e995d5
Split Pydantic model to _schema.py and check up-to-date
jaimergp Mar 5, 2025
9dce9ed
Merge branch 'main' of github.com:conda/constructor into pydantic-schema
jaimergp Mar 5, 2025
4285932
Adjust `hash` description again
jaimergp Mar 5, 2025
e479ccf
pre-commit
jaimergp Mar 5, 2025
3f59e6e
cleanup
jaimergp Mar 5, 2025
1178425
Check docs and schema with Python 3.12 to use StrEnum
jaimergp Mar 5, 2025
44ca08b
Fix schema for extra_files
jaimergp Mar 5, 2025
0e15add
fix extra_envs schema
jaimergp Mar 5, 2025
5ff3828
Restore help message
jaimergp Mar 5, 2025
e4aadbf
add news
jaimergp Mar 5, 2025
3ea4e2e
Fix make_docs
jaimergp Mar 5, 2025
dc40fca
Restore description for exclude
jaimergp Mar 5, 2025
da0dac7
fix deprecations
jaimergp Mar 5, 2025
d50560e
pre-commit
jaimergp Mar 5, 2025
2c64a9d
fully restore --help-construct
jaimergp Mar 5, 2025
4beb978
pre-commit
jaimergp Mar 5, 2025
f1ddc96
Update scripts/make_docs.py
jaimergp Mar 6, 2025
ed88121
Use an enum for installer_type
jaimergp Mar 6, 2025
035ac75
Merge branch 'pydantic-schema' of github.com:jaimergp/constructor int…
jaimergp Mar 6, 2025
e894627
docs sync
jaimergp Mar 6, 2025
97df99b
Add pattern for virtual_specs str
jaimergp Mar 6, 2025
ac29a2e
Define schema for pkg_domains
jaimergp Mar 6, 2025
7693368
Allow several extra_files_* mappings per entry
jaimergp Mar 6, 2025
276d6e8
Merge branch 'main' of github.com:conda/constructor into pydantic-schema
jaimergp Mar 13, 2025
162e1b1
format
jaimergp Mar 13, 2025
8fe3384
Merge branch 'main' of github.com:conda/constructor into pydantic-schema
jaimergp Mar 13, 2025
c899906
address ruff lint suggestions
jaimergp Mar 13, 2025
a444c92
Fix missing Literal import in _schema
jaimergp Mar 13, 2025
c67b4cf
Adjust name and version regex
jaimergp Mar 14, 2025
f257927
Remove unneded runtime check
jaimergp Mar 14, 2025
3a4b4d7
Apply suggestions from code review
jaimergp Mar 24, 2025
9ea066c
Apply suggestions from code review
jaimergp Mar 24, 2025
1726343
Apply suggestions from code review
jaimergp Mar 24, 2025
2e846f5
add more files to 'extra_files' example
jaimergp Mar 24, 2025
fd95a1c
regenerate schema and docs
jaimergp Mar 24, 2025
b141bc6
always sort_keys
jaimergp Mar 24, 2025
179eca2
Fix whitespace in descriptions
jaimergp Mar 24, 2025
9dde3d2
sort here too
jaimergp Mar 24, 2025
5c649f2
add pydantic to run_constrained
jaimergp Mar 24, 2025
1f99e0f
Rename constructor.schema.json to construct.schema.json and add $sche…
jaimergp Mar 24, 2025
0099f2e
update news
jaimergp Mar 24, 2025
5ac7e7b
Define BuildOutputs enum
jaimergp Mar 24, 2025
63c6bbf
Add schema for build_outputs too
jaimergp Mar 24, 2025
dcc7b9e
regenerate
jaimergp Mar 24, 2025
a78e3b2
sort algorithms
jaimergp Mar 24, 2025
198753c
Merge branch 'main' of github.com:conda/constructor into pydantic-schema
jaimergp Mar 24, 2025
c67e253
Reword docstring for `initialize_conda`
jaimergp Mar 24, 2025
7f30991
add titles?
jaimergp Mar 24, 2025
505027f
classes?
jaimergp Mar 24, 2025
da0a074
Generate description dynamically
jaimergp Mar 24, 2025
1b86ba4
Format
jaimergp Mar 25, 2025
66c90f1
Fix codeblock line wrapping
jaimergp Mar 25, 2025
e922618
Small adjustments
jaimergp Mar 25, 2025
c6fb10f
try mamba 2.0.8?
jaimergp Mar 25, 2025
2c70852
update test
jaimergp Mar 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ jobs:
- os: ubuntu-latest
python-version: "3.9"
conda-standalone: conda-standalone
check-docs: true
- os: ubuntu-latest
python-version: "3.10"
conda-standalone: conda-standalone-nightly
Expand All @@ -52,6 +51,7 @@ jobs:
- os: ubuntu-latest
python-version: "3.12"
conda-standalone: conda-standalone
check-docs-schema: true
# MACOS
- os: macos-13
python-version: "3.9"
Expand Down Expand Up @@ -156,10 +156,11 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: integration
- name: Check docs are up-to-date
if: matrix.check-docs
- name: Check docs and schema are up-to-date
if: matrix.check-docs-schema
run: |
python scripts/make_docs.py
python constructor/_schema.py
git diff --exit-code
- name: Upload the example installers as artifacts
if: github.event_name == 'pull_request' && matrix.python-version == '3.9'
Expand Down
Loading
Loading