-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/allow-eval-on-non-existing-namespace
- Loading branch information
Showing
13 changed files
with
17,668 additions
and
5,033 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Tests | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
run_tests: | ||
name: ${{ matrix.pixi-environment }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
pixi-environment: | ||
- py312 | ||
- py311 | ||
- py310 | ||
- py39 | ||
- py38 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: "latest" | ||
environments: ${{ matrix.pixi-environment }} | ||
- name: run tests | ||
run: | | ||
pixi run --environment ${{ matrix.pixi-environment }} tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# name: Run updater that will check for conda-forge packages | ||
|
||
name: Type Check | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
|
@@ -15,8 +14,8 @@ jobs: | |
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: "latest" | ||
environments: test | ||
environments: lint | ||
|
||
- name: run tests | ||
- name: type check | ||
run: | | ||
pixi run -e test pytest | ||
pixi run type-check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,5 +165,4 @@ mapping/*# pixi environments | |
.pixi | ||
|
||
.vscode/ | ||
|
||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## Small guide to releasing | ||
|
||
Release new version: | ||
|
||
1. Create a branch `release/v{version}` and do the following: | ||
2. Update `pyproject.toml` and `pixi.toml` | ||
3. Run `pixi install` | ||
4. Add lock and toml files to commit. | ||
5. Push to remote and see if CI is green. *if not*: either make changes in a separate PR (if big), or here (if small). | ||
7. Merge to main. | ||
8. Build an sdist using `pixi r build_sdist`. This needs to succeed. | ||
9. Create a tag `git tag v{version}` `git push --tags`. | ||
10. Create the release on github and generate release notes, upload the generated sdist. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,68 @@ | ||
[project] | ||
name = "rattler-build-conda-compat" | ||
version = "0.0.6" | ||
version = "0.2.2" | ||
description = "A package for exposing rattler-build API for conda-smithy" | ||
authors = ["nichmor <[email protected]>"] | ||
channels = ["conda-forge"] | ||
platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"] | ||
|
||
[tasks] | ||
|
||
build_sdist = "pixi run python -m build --sdist" | ||
|
||
[dependencies] | ||
python = ">=3.8" | ||
build = "*" | ||
rattler-build = "*" | ||
conda-build = "*" | ||
"ruamel.yaml" = "*" | ||
build = ">=0.7.0,<0.8" | ||
rattler-build = ">=0.18.1,<1" | ||
conda-build = ">=24.3.0,<25.0" | ||
"ruamel.yaml" = ">=0.18.6,<0.19" | ||
conda = ">=4.2" | ||
pygithub = ">=2,<3" | ||
tomli = "*" | ||
tomli = ">=2.0.1,<3" | ||
typing-extensions = ">=4.12.2,<4.13" | ||
|
||
[pypi-dependencies] | ||
rattler-build-conda-compat = { path = ".", editable = true} | ||
|
||
rattler-build-conda-compat = { path = ".", editable = true } | ||
|
||
[feature.test.dependencies] | ||
pytest = "*" | ||
syrupy = "*" | ||
ruff = "*" | ||
|
||
[feature.test.tasks] | ||
test = "pytest" | ||
snapshot_update = "pytest --snapshot-update" | ||
[feature.tests.dependencies] | ||
pytest = ">=8.2.2,<9" | ||
syrupy = ">=4.6.1,<5" | ||
|
||
[feature.tests.tasks] | ||
tests = "pytest tests" | ||
snapshot_update = "pytest --snapshot-update tests" | ||
|
||
[feature.lint.dependencies] | ||
pre-commit = ">=3.7.1,<4" | ||
pre-commit-hooks = ">=4.6.0,<5" | ||
ruff = ">=0.4.8,<0.5" | ||
typos = ">=1.23.1,<2" | ||
mypy = ">=1.10.1,<2" | ||
types-pyyaml = ">=6.0.12.20240311,<6.0.13" | ||
ruff = ">=0.5.0,<0.6" | ||
|
||
[feature.lint.tasks] | ||
pre-commit-install = "pre-commit-install" | ||
pre-commit-run = "pre-commit run" | ||
type-check = "mypy src" | ||
|
||
[feature.py312.dependencies] | ||
python = "3.12.*" | ||
|
||
[feature.py311.dependencies] | ||
python = "3.11.*" | ||
|
||
[feature.py310.dependencies] | ||
python = "3.10.*" | ||
|
||
[feature.py39.dependencies] | ||
python = "3.9.*" | ||
|
||
[feature.py38.dependencies] | ||
python = "3.8.*" | ||
|
||
[environments] | ||
test = ["test"] | ||
lint = { features = ["lint"], no-default-feature = true, solve-group = "default" } | ||
py312 = { features = ["py312", "tests"] } | ||
py311 = ["py311", "tests"] | ||
py310 = ["py310", "tests"] | ||
py39 = ["py39", "tests"] | ||
py38 = ["py38", "tests"] | ||
lint = { features = ["lint"], no-default-feature = true } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,11 +5,11 @@ build-backend = "hatchling.build" | |
[project] | ||
name = "rattler-build-conda-compat" | ||
description = "A package for exposing rattler-build API for conda-smithy" | ||
version = "0.0.6" | ||
version = "0.2.2" | ||
readme = "README.md" | ||
authors = [{ name = "Nichita Morcotilo", email = "[email protected]" }] | ||
license = { file = "LICENSE.txt" } | ||
|
||
dependencies = ["typing-extensions>=4.12,<5"] | ||
requires-python = ">=3.8" | ||
|
||
[tool.ruff] | ||
|
@@ -30,6 +30,7 @@ ignore = [ | |
"T201", # https://docs.astral.sh/ruff/rules/print/ | ||
"A003", # https://docs.astral.sh/ruff/rules/builtin-attribute-shadowing/ | ||
"PTH", # We dont want to change the API to pathlib just yet | ||
"ANN101", # Deprecated | ||
] | ||
exclude = [ | ||
"src/rattler_build_conda_compat/lint.py", | ||
|
@@ -42,4 +43,8 @@ exclude = [ | |
|
||
[tool.pyright] | ||
venvPath = ".pixi/envs" | ||
venv = "default" | ||
venv = "py312" | ||
|
||
[tool.mypy] | ||
python_version = "3.8" | ||
allow_redefinition = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# mypy: ignore-errors | ||
|
||
import re | ||
|
||
from inspect import cleandoc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.