From 8cc045ae4c7208941a7486e51951f81ae6f79390 Mon Sep 17 00:00:00 2001 From: Schuyler Martin Date: Wed, 25 Oct 2023 10:20:16 -0600 Subject: [PATCH 1/5] v0.1.2 Release --- CHANGELOG.md | 10 ++++++++++ README.md | 11 +++++++++++ anaconda_linter/__init__.py | 2 +- recipe/meta.yaml | 3 ++- 4 files changed, 24 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 489fcf6..318cb08 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,16 @@ # Changelog Note: version releases in the 0.x.y range may introduce breaking changes. +## 0.1.2 +- Enforces Python code auto formatting across the project +- Enforces Python code linting across the project +- Significant changes the `Makefile` and `pre-commit` configurations +- Adds fix support for `no_git_on_windows` +- Adds support and unit tests for some auto-fixable rules +- README changes +- `pytest` now runs tests in parallel +- Various bug fixes + ## 0.1.1 - Add knowledge of Python build backends to the missing_wheel rule - Relax host_section_needs_exact_pinnings diff --git a/README.md b/README.md index 107ec3e..63430e9 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,17 @@ Running `make help` will show all of the available commands. Here are some that 1. `make analyze`: Runs the static analyzer, `mypy`. 1. `make pre-commit`: Runs all the `pre-commit` checks +## Release process +Here is a rough outline of how to conduct a release of this project: +1. Update `CHANGELOG.md` +1. Update the version number in `anaconda_linter/__init__.py` +1. Update the version number in `recipe/meta.yaml` +1. Ensure `environment.yaml` aligns with `recipe/meta.yaml` +1. Create a new release on GitHub with a version tag. +1. The Anaconda packaging team will need to update and publish +[the feedstock](https://github.com/AnacondaRecipes/anaconda-linter-feedstock) +to [aggregate](https://github.com/AnacondaRecipes/aggregate). + ## Contributions This package is inspired by bioconda's [linter](https://github.com/bioconda/bioconda-utils/blob/master/bioconda_utils/lint/__init__.py). diff --git a/anaconda_linter/__init__.py b/anaconda_linter/__init__.py index 9ceefc6..1a03d24 100644 --- a/anaconda_linter/__init__.py +++ b/anaconda_linter/__init__.py @@ -3,7 +3,7 @@ Description: Module configurations for the `anaconda-linter` project """ __name__ = "anaconda_linter" # pylint: disable=redefined-builtin -__version__ = "0.1.1" +__version__ = "0.1.2" __author__ = "Anaconda, Inc." __email__ = "distribution_team@anaconda.com" __license__ = "BSD-3-Clause" diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 77a640b..99095e9 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,4 +1,4 @@ -{% set version = "0.1.1" %} +{% set version = "0.1.2" %} package: name: anaconda-linter @@ -64,3 +64,4 @@ about: extra: recipe-maintainers: - marcoesters + - schuylermartin45 From 86ee60b3ad4349cd3b1a360a882c0a5e0633e671 Mon Sep 17 00:00:00 2001 From: Schuyler Martin Date: Thu, 26 Oct 2023 07:52:48 -0600 Subject: [PATCH 2/5] `anaconda-linter` now explicitly uses the `distro-tooling` version of `percy` - `percy` is about to be migrated, so we should add this to the version change --- environment.yaml | 2 +- recipe/meta.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/environment.yaml b/environment.yaml index cc7926b..b85593f 100644 --- a/environment.yaml +++ b/environment.yaml @@ -8,7 +8,7 @@ dependencies: - setuptools - pip # run - - percy >=0.1.0,<0.2.0 + - distro-tooling::percy >=0.1.0,<0.2.0 - ruamel.yaml - license-expression - jinja2 diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 99095e9..b1a83b4 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -30,7 +30,7 @@ requirements: - conda-build - jsonschema - networkx - - percy >=0.1.0,<0.2.0 + - distro-tooling::percy >=0.1.0,<0.2.0 test: source_files: From 5a535dfcc5db6fe4049f877322e4b84813334cda Mon Sep 17 00:00:00 2001 From: Schuyler Martin Date: Thu, 26 Oct 2023 08:12:41 -0600 Subject: [PATCH 3/5] Improves REAMDE phrasing --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 63430e9..0c73ee8 100644 --- a/README.md +++ b/README.md @@ -136,9 +136,9 @@ Here is a rough outline of how to conduct a release of this project: 1. Update the version number in `recipe/meta.yaml` 1. Ensure `environment.yaml` aligns with `recipe/meta.yaml` 1. Create a new release on GitHub with a version tag. -1. The Anaconda packaging team will need to update and publish +1. The Anaconda packaging team will need to update [the feedstock](https://github.com/AnacondaRecipes/anaconda-linter-feedstock) -to [aggregate](https://github.com/AnacondaRecipes/aggregate). +and [aggregate](https://github.com/AnacondaRecipes/aggregate) and publish to `distro-tooling` ## Contributions This package is inspired by bioconda's [linter](https://github.com/bioconda/bioconda-utils/blob/master/bioconda_utils/lint/__init__.py). From fc35124965f4b33e06ac20155b84b1018f32ce2b Mon Sep 17 00:00:00 2001 From: Schuyler Martin Date: Thu, 26 Oct 2023 16:23:36 -0600 Subject: [PATCH 4/5] Out of an abundance of caution, bump the `percy` version - In theory, this will ensure we will get the version from `distro-tooling` and not an older copy on `defaults` --- environment.yaml | 2 +- recipe/meta.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/environment.yaml b/environment.yaml index b85593f..231d590 100644 --- a/environment.yaml +++ b/environment.yaml @@ -8,7 +8,7 @@ dependencies: - setuptools - pip # run - - distro-tooling::percy >=0.1.0,<0.2.0 + - distro-tooling::percy >=0.1.1,<0.2.0 - ruamel.yaml - license-expression - jinja2 diff --git a/recipe/meta.yaml b/recipe/meta.yaml index b1a83b4..3ffd3e5 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -30,7 +30,7 @@ requirements: - conda-build - jsonschema - networkx - - distro-tooling::percy >=0.1.0,<0.2.0 + - percy >=0.1.1,<0.2.0 test: source_files: From 70afd21f2e12a039a01a049e85a7770cc62334a6 Mon Sep 17 00:00:00 2001 From: Schuyler Martin Date: Fri, 27 Oct 2023 08:55:35 -0600 Subject: [PATCH 5/5] Build phase now targets `distro-tooling` --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 009c1e6..555971a 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -35,7 +35,7 @@ jobs: run: | source $CONDA/bin/activate conda install conda-build - conda-build . + conda-build -c distro-tooling . lint-recipe: runs-on: ubuntu-latest steps: