From 8e5688f35220387a02b0aff400a28b5e508f2dc2 Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Mon, 1 Sep 2025 07:47:28 +1000 Subject: [PATCH 1/8] links --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8f3f361..54217e7 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ Defect reports, feature requests, and pull requests are welcome on https://githu ### Related projects * [**to-be**](https://github.com/synesissoftware/to-be) (**C**); -* [**to-be.Ruby**](https://github.com/synesissoftware/to-be.Ruby); +* [**to_be.Ruby**](https://github.com/synesissoftware/to_be.Ruby); * [**to-be.Rust**](https://github.com/synesissoftware/to-be.Rust); From 9fd979589c6d2495d271cecc6318d604a15aa11b Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Mon, 1 Sep 2025 07:55:42 +1000 Subject: [PATCH 2/8] .gitattributes --- .gitattributes | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..bd35ebe --- /dev/null +++ b/.gitattributes @@ -0,0 +1,6 @@ + +*.py linguist-language=Python + +*.html linguist-detectable=false +*.sh linguist-detectable=false +*.vimrc linguist-detectable=false From 9b1d8c462be9b337a349308cce47a35aa522af10 Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Mon, 1 Sep 2025 08:11:10 +1000 Subject: [PATCH 3/8] badges --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 54217e7..240da98 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,13 @@ # py2be -Simple Python library determining whether strings indicate truey or falsy values. - +![Language](https://img.shields.io/badge/Python-3776AB?style=flat&logo=python&logoColor=white) +[![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause) +[![GitHub release](https://img.shields.io/github/v/release/synesissoftware/py2be.svg)](https://github.com/synesissoftware/py2be/releases/latest) +[![Last Commit](https://img.shields.io/github/last-commit/synesissoftware/py2be)](https://github.com/synesissoftware/py2be/commits/master) [![PyPI version](https://badge.fury.io/py/py2be.svg)](https://badge.fury.io/py/py2be) +Simple Python library determining whether strings indicate truey or falsy values. + ## Introduction From 3c79123f088d3497f68a588e1e02e0f1bf8ac799 Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Mon, 1 Sep 2025 11:02:57 +1000 Subject: [PATCH 4/8] GitHub Actions --- .github/workflows/python-package.yml | 55 ++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/python-package.yml diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml new file mode 100644 index 0000000..cba4be7 --- /dev/null +++ b/.github/workflows/python-package.yml @@ -0,0 +1,55 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python + +name: Python package + +on: + push: + branches: [ "master", "dev", "gha" ] + pull_request: + branches: [ "master", "dev", "gha" ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: + - "3.13" + - "3.12" + - "3.11" + - "3.10" + - "3.9" + - "3.8" + - "3.0" + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install flake8 pytest + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics + + - name: Test with unittest + run: | + python3 -m unittest discover + + - name: Test with pytest + run: | + pytest From 8cdb949719afc800fdff1e32628209051e4176cf Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Mon, 1 Sep 2025 11:04:29 +1000 Subject: [PATCH 5/8] gha --- .github/workflows/python-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index cba4be7..9c4913f 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -48,7 +48,7 @@ jobs: - name: Test with unittest run: | - python3 -m unittest discover + python3 -m unittest discover tests - name: Test with pytest run: | From f75b066d1ef887083fa8185c060861be3f593346 Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Mon, 1 Sep 2025 11:05:12 +1000 Subject: [PATCH 6/8] gha --- .github/workflows/python-package.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 9c4913f..fc39c6e 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -49,7 +49,3 @@ jobs: - name: Test with unittest run: | python3 -m unittest discover tests - - - name: Test with pytest - run: | - pytest From 3d12ea188a15e5cc738bea8ae47f8f6b2a8813d0 Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Mon, 1 Sep 2025 11:06:25 +1000 Subject: [PATCH 7/8] gha --- .github/workflows/python-package.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index fc39c6e..121beb1 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -23,7 +23,6 @@ jobs: - "3.10" - "3.9" - "3.8" - - "3.0" steps: - uses: actions/checkout@v4 From 1b1311f529107dba1b94bf8e125c0eb6a6fb518b Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Mon, 1 Sep 2025 11:08:42 +1000 Subject: [PATCH 8/8] 0.0.3 --- CHANGES.md | 7 +++++++ py2be/__init__.py | 2 +- setup.py | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 834fcdd..365cf81 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,13 @@ # **py2be** Changes +## 0.0.3 - 1st September 2025 + +* GitHub Actions; +* badges; +* .gitattributes; + + ## 0.0.2 - 11th August 2025 * name fixes; diff --git a/py2be/__init__.py b/py2be/__init__.py index da87163..717d952 100644 --- a/py2be/__init__.py +++ b/py2be/__init__.py @@ -8,7 +8,7 @@ __license__ = 'BSD-3-Clause' __maintainer__ = 'Matt Wilson' __status__ = 'Beta' -__version__ = '0.0.2' +__version__ = '0.0.3' from .truthy import ( str2bool, diff --git a/setup.py b/setup.py index 00fe4ca..39a5c40 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setuptools.setup( name='py2be', - version='0.0.2', + version='0.0.3', author='Matt Wilson', author_email='matthew@synesis.com.au',