diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index b0a19e9..2a30003 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -8,8 +8,29 @@ on: branches: [ main ] jobs: + check-source-changes: + runs-on: ubuntu-latest + outputs: + run_job: ${{ steps.changed-files.outputs.any_changed }} + steps: + - name: Checkout Sourcecode + uses: actions/checkout@v4 + + - name: Check for changes in source code + id: changed-files + uses: tj-actions/changed-files@v41.0.1 + with: + files: | + purpleair_api/*.py + tests/*.py + tests/*.txt + setup.py + setup.cfg + black: runs-on: ubuntu-latest + needs: check-source-changes + if: needs.check-source-changes.outputs.run_job == 'true' steps: - uses: actions/checkout@v4 - uses: psf/black@23.12.1 \ No newline at end of file diff --git a/.github/workflows/sphinx_build.yml b/.github/workflows/sphinx_build.yml index 32a3daa..0a596c2 100644 --- a/.github/workflows/sphinx_build.yml +++ b/.github/workflows/sphinx_build.yml @@ -8,8 +8,27 @@ on: branches: [ main ] jobs: + check-source-changes: + runs-on: ubuntu-latest + outputs: + run_job: ${{ steps.changed-files.outputs.any_changed }} + steps: + - name: Checkout Sourcecode + uses: actions/checkout@v4 + + - name: Check for changes in source code + id: changed-files + uses: tj-actions/changed-files@v41.0.1 + with: + files: | + sphinx_docs_build/source/*.rst + sphinx_docs_build/source/*.py + sphinx_docs_build/*.txt + sphinx_docs_build: runs-on: ubuntu-latest + needs: check-source-changes + if: needs.check-source-changes.outputs.run_job == 'true' steps: - name: Check out repository code uses: actions/checkout@v4 @@ -19,21 +38,23 @@ jobs: with: python-version: "3.10" - - name: Install python3 requirements... + - name: Install python3/os requirements... uses: carlkidcrypto/os-specific-runner@v2.0.0 with: linux: cd /home/runner/work/purpleair_data_logger/purpleair_data_logger/ && - python -m pip install --upgrade wheel && - python -m pip install --upgrade setuptools && - python -m pip install --upgrade pip && - python -m pip install -r sphinx_docs_build/requirements.txt && - python -m pip install . --user + python -m pip install --upgrade wheel && + python -m pip install --upgrade setuptools && + python -m pip install --upgrade pip && + python -m pip install -r sphinx_docs_build/requirements.txt && + python -m pip install . --user; - name: Run sphinx... uses: carlkidcrypto/os-specific-runner@v2.0.0 with: - linux: cd /home/runner/work/purpleair_data_logger/purpleair_data_logger/sphinx_docs_build ; - make html + linux: cd /home/runner/work/purpleair_data_logger/purpleair_data_logger/sphinx_docs_build; + mkdir source/_static; + mkdir source/_templates; + make clean && make html SPHINXOPTS="-W" - uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ea8b00d..0e7a59f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,9 +8,30 @@ on: branches: [ main ] jobs: + check-source-changes: + runs-on: ubuntu-latest + outputs: + run_job: ${{ steps.changed-files.outputs.any_changed }} + steps: + - name: Checkout Sourcecode + uses: actions/checkout@v4 + + - name: Check for changes in source code + id: changed-files + uses: tj-actions/changed-files@v41.0.1 + with: + files: | + purpleair_api/*.py + tests/*.py + tests/*.txt + setup.py + setup.cfg + Unit_Tests: name: ${{ matrix.os }} using Python ${{ matrix.python-version }} runs-on: ${{ matrix.os }} + needs: check-source-changes + if: needs.check-source-changes.outputs.run_job == 'true' strategy: fail-fast: false matrix: diff --git a/LICENSE b/LICENSE index 9c9bf4b..8fa64e9 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2023 carlkidcrypto +Copyright (c) 2024 carlkidcrypto Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/docs/doctrees/PurpleAirCSVDataLogger.doctree b/docs/doctrees/PurpleAirCSVDataLogger.doctree index 387136c..2b8d774 100644 Binary files a/docs/doctrees/PurpleAirCSVDataLogger.doctree and b/docs/doctrees/PurpleAirCSVDataLogger.doctree differ diff --git a/docs/doctrees/PurpleAirCSVDataLoggerConstants.doctree b/docs/doctrees/PurpleAirCSVDataLoggerConstants.doctree index 0b9e9fc..77478b1 100644 Binary files a/docs/doctrees/PurpleAirCSVDataLoggerConstants.doctree and b/docs/doctrees/PurpleAirCSVDataLoggerConstants.doctree differ diff --git a/docs/doctrees/PurpleAirDataLogger.doctree b/docs/doctrees/PurpleAirDataLogger.doctree index 31ba131..c94e95c 100644 Binary files a/docs/doctrees/PurpleAirDataLogger.doctree and b/docs/doctrees/PurpleAirDataLogger.doctree differ diff --git a/docs/doctrees/PurpleAirDataLoggerHelpers.doctree b/docs/doctrees/PurpleAirDataLoggerHelpers.doctree index 25f8a94..3a5f9c7 100644 Binary files a/docs/doctrees/PurpleAirDataLoggerHelpers.doctree and b/docs/doctrees/PurpleAirDataLoggerHelpers.doctree differ diff --git a/docs/doctrees/PurpleAirPSQLDataLogger.doctree b/docs/doctrees/PurpleAirPSQLDataLogger.doctree index a3cb89b..24c11e3 100644 Binary files a/docs/doctrees/PurpleAirPSQLDataLogger.doctree and b/docs/doctrees/PurpleAirPSQLDataLogger.doctree differ diff --git a/docs/doctrees/PurpleAirPSQLQueryStatements.doctree b/docs/doctrees/PurpleAirPSQLQueryStatements.doctree index bd47b61..428e625 100644 Binary files a/docs/doctrees/PurpleAirPSQLQueryStatements.doctree and b/docs/doctrees/PurpleAirPSQLQueryStatements.doctree differ diff --git a/docs/doctrees/PurpleAirSQLiteDataLogger.doctree b/docs/doctrees/PurpleAirSQLiteDataLogger.doctree index 7f306e1..41740e3 100644 Binary files a/docs/doctrees/PurpleAirSQLiteDataLogger.doctree and b/docs/doctrees/PurpleAirSQLiteDataLogger.doctree differ diff --git a/docs/doctrees/PurpleAirSQLiteQueryStatements.doctree b/docs/doctrees/PurpleAirSQLiteQueryStatements.doctree index 3d61d38..ed1d41e 100644 Binary files a/docs/doctrees/PurpleAirSQLiteQueryStatements.doctree and b/docs/doctrees/PurpleAirSQLiteQueryStatements.doctree differ diff --git a/docs/doctrees/environment.pickle b/docs/doctrees/environment.pickle index 301a829..1da704c 100644 Binary files a/docs/doctrees/environment.pickle and b/docs/doctrees/environment.pickle differ diff --git a/docs/doctrees/index.doctree b/docs/doctrees/index.doctree index 2ad2ebe..baff603 100644 Binary files a/docs/doctrees/index.doctree and b/docs/doctrees/index.doctree differ diff --git a/docs/doctrees/modules.doctree b/docs/doctrees/modules.doctree index 9f15049..28f48f3 100644 Binary files a/docs/doctrees/modules.doctree and b/docs/doctrees/modules.doctree differ diff --git a/docs/html/.buildinfo b/docs/html/.buildinfo index ee9cb24..f23d997 100644 --- a/docs/html/.buildinfo +++ b/docs/html/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: 0b1b98e3b37c52bd7574e3f8e7b12205 +config: d6e08cb550a57d43948f794f51590dcf tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/docs/html/PurpleAirCSVDataLogger.html b/docs/html/PurpleAirCSVDataLogger.html index 9787d79..c430253 100644 --- a/docs/html/PurpleAirCSVDataLogger.html +++ b/docs/html/PurpleAirCSVDataLogger.html @@ -4,7 +4,7 @@ - PurpleAirCSVDataLogger module — PurpleAir Data Logger(s) V1.3.0 documentation + PurpleAirCSVDataLogger module — PurpleAir Data Logger(s) V1.3.2 documentation @@ -15,7 +15,7 @@ - + @@ -136,7 +136,7 @@
-

© Copyright 2023, carlkidcrypto.

+

© Copyright 2024, carlkidcrypto.

Built with Sphinx using a diff --git a/docs/html/PurpleAirCSVDataLoggerConstants.html b/docs/html/PurpleAirCSVDataLoggerConstants.html index 7eda6b5..a52e183 100644 --- a/docs/html/PurpleAirCSVDataLoggerConstants.html +++ b/docs/html/PurpleAirCSVDataLoggerConstants.html @@ -4,7 +4,7 @@ - PurpleAirCSVDataLoggerConstants module — PurpleAir Data Logger(s) V1.3.0 documentation + PurpleAirCSVDataLoggerConstants module — PurpleAir Data Logger(s) V1.3.2 documentation @@ -15,7 +15,7 @@ - + @@ -229,7 +229,7 @@
-

© Copyright 2023, carlkidcrypto.

+

© Copyright 2024, carlkidcrypto.

Built with Sphinx using a diff --git a/docs/html/PurpleAirDataLogger.html b/docs/html/PurpleAirDataLogger.html index d5b92a1..b610342 100644 --- a/docs/html/PurpleAirDataLogger.html +++ b/docs/html/PurpleAirDataLogger.html @@ -4,7 +4,7 @@ - PurpleAirDataLogger module — PurpleAir Data Logger(s) V1.3.0 documentation + PurpleAirDataLogger module — PurpleAir Data Logger(s) V1.3.2 documentation @@ -15,7 +15,7 @@ - + @@ -169,7 +169,7 @@
-

© Copyright 2023, carlkidcrypto.

+

© Copyright 2024, carlkidcrypto.

Built with Sphinx using a diff --git a/docs/html/PurpleAirDataLoggerHelpers.html b/docs/html/PurpleAirDataLoggerHelpers.html index 1f15a04..b2b0504 100644 --- a/docs/html/PurpleAirDataLoggerHelpers.html +++ b/docs/html/PurpleAirDataLoggerHelpers.html @@ -4,7 +4,7 @@ - PurpleAirDataLoggerHelpers module — PurpleAir Data Logger(s) V1.3.0 documentation + PurpleAirDataLoggerHelpers module — PurpleAir Data Logger(s) V1.3.2 documentation @@ -15,7 +15,7 @@ - + @@ -236,7 +236,7 @@
-

© Copyright 2023, carlkidcrypto.

+

© Copyright 2024, carlkidcrypto.

Built with Sphinx using a diff --git a/docs/html/PurpleAirPSQLDataLogger.html b/docs/html/PurpleAirPSQLDataLogger.html index 6352637..89b5bc1 100644 --- a/docs/html/PurpleAirPSQLDataLogger.html +++ b/docs/html/PurpleAirPSQLDataLogger.html @@ -4,7 +4,7 @@ - PurpleAirPSQLDataLogger module — PurpleAir Data Logger(s) V1.3.0 documentation + PurpleAirPSQLDataLogger module — PurpleAir Data Logger(s) V1.3.2 documentation @@ -15,7 +15,7 @@ - + @@ -146,7 +146,7 @@
-

© Copyright 2023, carlkidcrypto.

+

© Copyright 2024, carlkidcrypto.

Built with Sphinx using a diff --git a/docs/html/PurpleAirPSQLQueryStatements.html b/docs/html/PurpleAirPSQLQueryStatements.html index ed61927..60d009c 100644 --- a/docs/html/PurpleAirPSQLQueryStatements.html +++ b/docs/html/PurpleAirPSQLQueryStatements.html @@ -4,7 +4,7 @@ - PurpleAirPSQLQueryStatements module — PurpleAir Data Logger(s) V1.3.0 documentation + PurpleAirPSQLQueryStatements module — PurpleAir Data Logger(s) V1.3.2 documentation @@ -15,7 +15,7 @@ - + @@ -276,7 +276,7 @@
-

© Copyright 2023, carlkidcrypto.

+

© Copyright 2024, carlkidcrypto.

Built with Sphinx using a diff --git a/docs/html/PurpleAirSQLiteDataLogger.html b/docs/html/PurpleAirSQLiteDataLogger.html index 4f1c0a6..acd5df8 100644 --- a/docs/html/PurpleAirSQLiteDataLogger.html +++ b/docs/html/PurpleAirSQLiteDataLogger.html @@ -4,7 +4,7 @@ - PurpleAirSQLiteDataLogger module — PurpleAir Data Logger(s) V1.3.0 documentation + PurpleAirSQLiteDataLogger module — PurpleAir Data Logger(s) V1.3.2 documentation @@ -15,7 +15,7 @@ - + @@ -136,7 +136,7 @@
-

© Copyright 2023, carlkidcrypto.

+

© Copyright 2024, carlkidcrypto.

Built with Sphinx using a diff --git a/docs/html/PurpleAirSQLiteQueryStatements.html b/docs/html/PurpleAirSQLiteQueryStatements.html index 3f27b92..e97f47c 100644 --- a/docs/html/PurpleAirSQLiteQueryStatements.html +++ b/docs/html/PurpleAirSQLiteQueryStatements.html @@ -4,7 +4,7 @@ - PurpleAirSQLiteQueryStatements module — PurpleAir Data Logger(s) V1.3.0 documentation + PurpleAirSQLiteQueryStatements module — PurpleAir Data Logger(s) V1.3.2 documentation @@ -15,7 +15,7 @@ - + @@ -242,7 +242,7 @@
-

© Copyright 2023, carlkidcrypto.

+

© Copyright 2024, carlkidcrypto.

Built with Sphinx using a diff --git a/docs/html/_static/documentation_options.js b/docs/html/_static/documentation_options.js index d526429..d2c51d5 100644 --- a/docs/html/_static/documentation_options.js +++ b/docs/html/_static/documentation_options.js @@ -1,5 +1,5 @@ const DOCUMENTATION_OPTIONS = { - VERSION: 'V1.3.0', + VERSION: 'V1.3.2', LANGUAGE: 'en', COLLAPSE_INDEX: false, BUILDER: 'html', diff --git a/docs/html/genindex.html b/docs/html/genindex.html index 007b562..2cb4d7f 100644 --- a/docs/html/genindex.html +++ b/docs/html/genindex.html @@ -3,7 +3,7 @@ - Index — PurpleAir Data Logger(s) V1.3.0 documentation + Index — PurpleAir Data Logger(s) V1.3.2 documentation @@ -14,7 +14,7 @@ - + @@ -427,7 +427,7 @@

V


-

© Copyright 2023, carlkidcrypto.

+

© Copyright 2024, carlkidcrypto.

Built with Sphinx using a diff --git a/docs/html/index.html b/docs/html/index.html index d321c22..81c5103 100644 --- a/docs/html/index.html +++ b/docs/html/index.html @@ -4,7 +4,7 @@ - Welcome to PurpleAir Data Logger(s)’s documentation! — PurpleAir Data Logger(s) V1.3.0 documentation + Welcome to PurpleAir Data Logger(s)’s documentation! — PurpleAir Data Logger(s) V1.3.2 documentation @@ -15,7 +15,7 @@ - + @@ -110,7 +110,7 @@

Indices and tables -

© Copyright 2023, carlkidcrypto.

+

© Copyright 2024, carlkidcrypto.

Built with
Sphinx using a diff --git a/docs/html/modules.html b/docs/html/modules.html index aa75a0d..8d93a27 100644 --- a/docs/html/modules.html +++ b/docs/html/modules.html @@ -4,7 +4,7 @@ - purpleair_data_logger — PurpleAir Data Logger(s) V1.3.0 documentation + purpleair_data_logger — PurpleAir Data Logger(s) V1.3.2 documentation @@ -15,7 +15,7 @@ - + @@ -214,7 +214,7 @@

purpleair_data_logger
-

© Copyright 2023, carlkidcrypto.

+

© Copyright 2024, carlkidcrypto.

Built with
Sphinx using a diff --git a/docs/html/py-modindex.html b/docs/html/py-modindex.html index e4135c0..aa23d25 100644 --- a/docs/html/py-modindex.html +++ b/docs/html/py-modindex.html @@ -3,7 +3,7 @@ - Python Module Index — PurpleAir Data Logger(s) V1.3.0 documentation + Python Module Index — PurpleAir Data Logger(s) V1.3.2 documentation @@ -14,7 +14,7 @@ - + @@ -137,7 +137,7 @@

Python Module Index


-

© Copyright 2023, carlkidcrypto.

+

© Copyright 2024, carlkidcrypto.

Built with Sphinx using a diff --git a/docs/html/search.html b/docs/html/search.html index 4a0d9d9..c8a28d8 100644 --- a/docs/html/search.html +++ b/docs/html/search.html @@ -3,7 +3,7 @@ - Search — PurpleAir Data Logger(s) V1.3.0 documentation + Search — PurpleAir Data Logger(s) V1.3.2 documentation @@ -15,7 +15,7 @@ - + @@ -92,7 +92,7 @@
-

© Copyright 2023, carlkidcrypto.

+

© Copyright 2024, carlkidcrypto.

Built with Sphinx using a diff --git a/setup.cfg b/setup.cfg index fb5eff2..4c6ada5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = purpleair_data_logger -version = 1.3.1 +version = 1.3.2 license = MIT author = Carlos Santos author_email = dose.lucky.sake@cloak.id diff --git a/sphinx_docs_build/source/conf.py b/sphinx_docs_build/source/conf.py index 5504d46..53fe534 100644 --- a/sphinx_docs_build/source/conf.py +++ b/sphinx_docs_build/source/conf.py @@ -19,11 +19,11 @@ # -- Project information ----------------------------------------------------- project = "PurpleAir Data Logger(s)" -copyright = "2023, carlkidcrypto" +copyright = "2024, carlkidcrypto" author = "carlkidcrypto" # The full version, including alpha/beta/rc tags -release = "V1.3.0" +release = "V1.3.2" # -- General configuration ---------------------------------------------------