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

Add schema validation and configuration for conda-forge config yaml #1756

Merged
merged 127 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
b363566
Initial config schema
viniciusdc Aug 3, 2023
539be08
Add annotations and field descriptions
viniciusdc Aug 11, 2023
f686ddf
pass tests
viniciusdc Aug 23, 2023
965ba9d
Add review suggestion from @jaimergp
viniciusdc Aug 31, 2023
777d2b3
Add pydantic as req. for tests
viniciusdc Aug 31, 2023
7a3ab56
Delete conda_smithy/schema/test_schema.json
viniciusdc Aug 31, 2023
9d0496c
Simple updates to fix pytest runs
viniciusdc Aug 31, 2023
48a623c
Merge branch 'pydantic-schema-cf-yaml' of github.com:viniciusdc/conda…
viniciusdc Aug 31, 2023
d4a8a58
small fixes
viniciusdc Sep 4, 2023
faf73c5
Apply fixes to model & update schema tests & fix CI
viniciusdc Sep 4, 2023
518da41
Initial config schema
viniciusdc Aug 3, 2023
5f52890
Add annotations and field descriptions
viniciusdc Aug 11, 2023
2424052
pass tests
viniciusdc Aug 23, 2023
3cf9c4a
Add review suggestion from @jaimergp
viniciusdc Aug 31, 2023
a89ba5d
Add pydantic as req. for tests
viniciusdc Aug 31, 2023
ab121ae
Simple updates to fix pytest runs
viniciusdc Aug 31, 2023
cf5d0e5
Delete conda_smithy/schema/test_schema.json
viniciusdc Aug 31, 2023
f9bf5f5
small fixes
viniciusdc Sep 4, 2023
edc6fd3
Apply fixes to model & update schema tests & fix CI
viniciusdc Sep 4, 2023
1106acb
Merge branch 'pydantic-schema-cf-yaml' of github.com:viniciusdc/conda…
viniciusdc Sep 4, 2023
3e503b0
mv Platforms to Enum & comment schema sections & add new conda_build …
viniciusdc Sep 9, 2023
feb4877
Add examples to each field
viniciusdc Sep 14, 2023
225fa78
small fixes to schema
viniciusdc Sep 20, 2023
3196cc4
Merge branch 'main' into pydantic-schema-cf-yaml
viniciusdc Sep 29, 2023
b71a2f9
rm requirements.txt due to new environment.yml
viniciusdc Sep 29, 2023
c13b60f
Mv all schema to single source & updated defaults to replace *default…
viniciusdc Oct 2, 2023
85731bd
update tests and configure_feedstock.py to reflect recent changes
viniciusdc Oct 2, 2023
46091ba
mv descriptions to Field
viniciusdc Oct 3, 2023
232a4ea
mv to jsonschema with pydantic dynamic models
viniciusdc Oct 3, 2023
e20c19c
revert validation logic to work with jsonschema
viniciusdc Oct 5, 2023
4b786ee
fix non hashable entity error
viniciusdc Oct 5, 2023
250aa02
fix tests for configure_feedstock
viniciusdc Oct 5, 2023
ca05991
Merge branch 'main' into pydantic-schema-cf-yaml
viniciusdc Oct 5, 2023
643254c
add pydantic back to env for running tests on CI
viniciusdc Oct 5, 2023
724c2f6
add new line at end of file
viniciusdc Oct 5, 2023
7c7e350
revert recent update in test_remote_ci_setup
viniciusdc Oct 5, 2023
9f80bfa
add news entry
viniciusdc Oct 5, 2023
506ea68
update news entry
viniciusdc Oct 5, 2023
ff697be
Commit Jaime's suggestion
viniciusdc Oct 6, 2023
8f66262
merge jaime's review suggestions
viniciusdc Oct 10, 2023
970f945
rm conda_built_tools Enum in place of Literal object
viniciusdc Oct 10, 2023
a54df4c
fixing silly mistake
viniciusdc Oct 10, 2023
0561a5d
add new lintfy with schema validation
viniciusdc Oct 17, 2023
7b522f4
add missing validators list & lintify call
viniciusdc Oct 17, 2023
d55d313
Merge branch 'main' of github.com:conda-forge/conda-smithy into pydan…
isuruf Nov 9, 2023
1738c30
move to correct place
isuruf Nov 9, 2023
115b1b7
renames
isuruf Nov 9, 2023
31a2350
Update schema
isuruf Nov 9, 2023
cc04526
update tests
isuruf Nov 9, 2023
0b0a399
Fix running tests locally
isuruf Nov 9, 2023
e6161a9
remove custom validators for now
isuruf Nov 9, 2023
fd1972f
Remove enabled part
isuruf Nov 9, 2023
b09dec0
Use descriptive name
isuruf Nov 9, 2023
565f4ab
use lambda
isuruf Nov 9, 2023
5b612ac
pre-commit
isuruf Nov 9, 2023
e550225
Fix lints
isuruf Nov 9, 2023
34280b5
Regenerate data files
isuruf Nov 13, 2023
4cb18af
more providers and fix pkg_format int
isuruf Nov 13, 2023
c4e55e6
Fix tests
isuruf Nov 13, 2023
ad618a4
Merge branch 'main' of github.com:conda-forge/conda-smithy into pydan…
isuruf Nov 13, 2023
b16215a
update test
isuruf Nov 13, 2023
70af36f
pre-commit
isuruf Nov 13, 2023
4508236
asd
isuruf Nov 14, 2023
724321b
Fix lints
isuruf Nov 14, 2023
a020172
Merge branch 'main' of github.com:conda-forge/conda-smithy into pydan…
isuruf Nov 21, 2023
bd89382
Update schema for CIservices and bot values
isuruf Nov 21, 2023
6fe746e
pre-commit and add new line to json file
isuruf Nov 21, 2023
4435990
Fix news item
isuruf Nov 21, 2023
23b8e67
exclude dperecated fields
isuruf Nov 21, 2023
e4b3ad3
Warning for deprecated fields
isuruf Nov 21, 2023
3334ff1
Use all known_subdirs
isuruf Nov 21, 2023
c60d614
fix configure
isuruf Nov 21, 2023
ca12a27
prettier hints
isuruf Nov 21, 2023
99c6395
use a global var
isuruf Nov 23, 2023
e7cc45f
use an exceptiongroup
isuruf Nov 23, 2023
f8e22ea
use logger
isuruf Nov 23, 2023
3427bdd
Fix formatting
isuruf Nov 23, 2023
c4357eb
Use more global vars
isuruf Nov 23, 2023
2072c65
Use Draft202012Validator
isuruf Nov 23, 2023
bb0feea
Create a new file so that a user does not need pydantic
isuruf Nov 23, 2023
ffc61ee
regen
isuruf Nov 23, 2023
d073c72
fix conda_build_tool default
isuruf Nov 23, 2023
151908a
config-version is not the conda-forge.yml specification
isuruf Nov 23, 2023
859d2bf
update description on config_version
isuruf Nov 23, 2023
3141a48
cnfgr_fdstck -> configure_feedstock
isuruf Nov 23, 2023
7a98b7f
Fix tests
isuruf Nov 23, 2023
8f38430
run black
isuruf Nov 23, 2023
f3efa7c
Merge branch 'main' into pydantic-schema-cf-yaml
isuruf Nov 29, 2023
aff993d
Wrap doc
isuruf Dec 12, 2023
205b29d
Apply suggestions from code review
isuruf Dec 12, 2023
44655a2
Apply suggestions for news
isuruf Dec 12, 2023
22864c1
Use f-string
isuruf Dec 12, 2023
2cf8f73
Use StrEnum
isuruf Dec 12, 2023
c18a338
Mark docker: image as deprecated
isuruf Dec 12, 2023
3e88511
include data in MANIFEST.in
isuruf Dec 12, 2023
2e60117
remove exclude=true from fields and wrong configs
isuruf Dec 19, 2023
f29f970
docker: image is removed now, not even deprecated
isuruf Dec 19, 2023
2a3d6e6
Forbid extra values in dicts
isuruf Dec 19, 2023
a747c4f
regen
isuruf Dec 19, 2023
cc1e7e6
Fix test for extra values
isuruf Dec 19, 2023
7e55ce7
Add run_deps_from_wheel
isuruf Dec 19, 2023
d7ad84c
Fix test platforms
isuruf Dec 19, 2023
2c585f7
Truncate error message
isuruf Dec 19, 2023
f3ae82c
bot: version_updates
isuruf Dec 19, 2023
3bd5a3e
allow arbitrary conda-build configs
isuruf Dec 19, 2023
18ad509
fix compiler_stack
isuruf Dec 19, 2023
3f82d13
pre-commit
isuruf Dec 19, 2023
c4fda5b
fix warnings in conda_smithy/schema.py
isuruf Jan 15, 2024
8bd710d
Merge branch 'main' of github.com:conda-forge/conda-smithy into pydan…
isuruf Jan 15, 2024
352c0b7
Fix build_platform
isuruf Jan 15, 2024
cec9148
Fix dynamically generated models
isuruf Jan 15, 2024
e7d344c
use create_model directly
isuruf Jan 15, 2024
05b0694
Merge branch 'main' of github.com:conda-forge/conda-smithy into pydan…
jaimergp Feb 28, 2024
f68525e
pre-commit
jaimergp Feb 28, 2024
db62111
convert docstrings to markdown
jaimergp Mar 1, 2024
2caf1be
regenerate json
jaimergp Mar 1, 2024
e1b61bc
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 1, 2024
b476916
document upload_packages
jaimergp Mar 4, 2024
3bdb5bb
document free_disk_space fully
jaimergp Mar 4, 2024
a3eb64d
Merge branch 'pydantic-schema-cf-yaml' of github.com:viniciusdc/conda…
jaimergp Mar 4, 2024
216dd06
Merge branch 'main' into pydantic-schema-cf-yaml
beckermr Mar 4, 2024
37d1d4f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 4, 2024
afdb25a
update import
jaimergp Mar 4, 2024
76d4c45
do not allow int or float in version strings
jaimergp Mar 11, 2024
b5288c4
regenerate schema
jaimergp Mar 11, 2024
2aabd4e
describe native and emulated
jaimergp Mar 11, 2024
f5aa505
pre-commit
jaimergp Mar 11, 2024
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
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include requirements.txt

recursive-include conda_smithy/data *
recursive-include conda_smithy/feedstock_content *
recursive-include conda_smithy/templates *.tmpl
recursive-include tests/ *
Expand Down
13 changes: 11 additions & 2 deletions conda_smithy/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,13 +618,22 @@ def __call__(self, args):
all_good = False
print(
"{} has some lint:\n {}".format(
recipe, "\n ".join(lints)
recipe,
"\n ".join(
jaimergp marked this conversation as resolved.
Show resolved Hide resolved
[lint.replace("\n", "\n ") for lint in lints]
),
)
)
if hints:
print(
"{} also has some suggestions:\n {}".format(
recipe, "\n ".join(hints)
recipe,
"\n ".join(
[
hint.replace("\n", "\n ")
for hint in hints
]
),
)
)
elif hints:
Expand Down
Loading
Loading