From b8dd88f8272c81e6fe625547cd73e46f088af091 Mon Sep 17 00:00:00 2001 From: AmirHossein Ahmadi Date: Mon, 24 Mar 2025 16:45:24 +0330 Subject: [PATCH 1/3] update readme --- readme.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/readme.md b/readme.md index e5c3c6f..b4dcde4 100644 --- a/readme.md +++ b/readme.md @@ -38,8 +38,7 @@ Implementation of .NET's [IEnumerable](https://learn.microsoft.com/en-us/dotnet/ - [x] Select - [x] Max - [x] remove `Comparable` bind from type variables -- [ ] Make coherent use of `comparer` across methods -- [ ] Publish on pypi +- [x] Publish on pypi ### 1.1.0 - [ ] Improve test code quality - [ ] Add hashed pure python implementation of `Enumerable` (assuming inputs are guaranteed to be `Hashable` & immutable & not maintaining order) From c99e3510dc43aa303ad39ca17cab2fef62f710b1 Mon Sep 17 00:00:00 2001 From: AmirHossein Ahmadi Date: Mon, 24 Mar 2025 16:45:29 +0330 Subject: [PATCH 2/3] update version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ceaeec0..a98b731 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pyenumerable" -version = "0.0.0" +version = "1.0.0" description = "Implementation of .net's IEnumerable interface in python W/ support for generics." readme = "readme.md" authors = [ From 5af4f721325598cd414204a5b744fa5f7a3bafce Mon Sep 17 00:00:00 2001 From: AmirHossein Ahmadi Date: Mon, 24 Mar 2025 16:58:36 +0330 Subject: [PATCH 3/3] add cd job --- .github/workflows/cd.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/cd.yml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..6974f86 --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,24 @@ +name: CD + +on: + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+" + + +jobs: + publish: + runs-on: ubuntu-latest + environment: + name: release + permissions: + id-token: write + steps: + - uses: actions/checkout@v4 + - uses: astral-sh/setup-uv@v3 + - run: uv sync + - run: uv run ruff check pyenumerable test + - run: uv run pyright pyenumerable test + - run: uv run pytest -v --cov=pyenumerable.implementations --cov-report term-missing --cov-report term:skip-covered + - run: uv build + - run: uv publish --trusted-publishing always