From 88c90ff4c198bd844f9c8a62890f62585bd1d284 Mon Sep 17 00:00:00 2001 From: MarvinKweyu Date: Sat, 17 Aug 2024 19:12:26 +0300 Subject: [PATCH 1/2] add readthedocs config docs: update version --- .readthedocs.yml | 16 ++++++++++++++++ CHANGES.rst | 10 ++++++++++ setup.py | 2 +- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .readthedocs.yml diff --git a/.readthedocs.yml b/.readthedocs.yml new file mode 100644 index 0000000..8fdd975 --- /dev/null +++ b/.readthedocs.yml @@ -0,0 +1,16 @@ +version: 2 + +# Set the OS, Python version and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.12" + + +# Build documentation in the "docs/" directory with Sphinx +sphinx: + configuration: docs/conf.py + +formats: + - pdf + - epub \ No newline at end of file diff --git a/CHANGES.rst b/CHANGES.rst index bda38bf..7508a2b 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -2,6 +2,16 @@ ColorDetect Changelog ===================== +.. _1.6.3: +1.6.3 (17-08-2024) +================== +Fix +--------- + +- Docs configuration for build + + + .. _1.6.2: 1.6.2 (15-08-2024) ================== diff --git a/setup.py b/setup.py index 5399abc..a811c05 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name="ColorDetect", - version="1.6.2", + version="1.6.3", author="Marvin Kweyu", author_email="mkweyu1@gmail.com", description="Detect and recognize colors in images or video", From 70080a0986649c515d4cc490ec18441097d1b1d9 Mon Sep 17 00:00:00 2001 From: Marvin Kweyu Date: Sat, 17 Aug 2024 19:51:38 +0300 Subject: [PATCH 2/2] Create package-tests.yml --- .github/workflows/package-tests.yml | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/package-tests.yml diff --git a/.github/workflows/package-tests.yml b/.github/workflows/package-tests.yml new file mode 100644 index 0000000..f1f1e86 --- /dev/null +++ b/.github/workflows/package-tests.yml @@ -0,0 +1,40 @@ +# 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" ] + pull_request: + branches: [ "master", "dev" ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.9", "3.10", "3.11"] + + 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/requirements-dev.txt ]; then pip install -r requirements/requirements-dev.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: Running tests + run: | + pytest