clustercron
Advanced tools
| --- | ||
| # .github/workflows/ci.yml | ||
| name: ci | ||
| on: | ||
| push: | ||
| branches: ["main"] | ||
| pull_request: | ||
| branches: ["main"] | ||
| workflow_dispatch: | ||
| jobs: | ||
| tests: | ||
| name: "Python ${{ matrix.python-version }}" | ||
| runs-on: "ubuntu-latest" | ||
| env: | ||
| USING_COVERAGE: "3.9" | ||
| strategy: | ||
| matrix: | ||
| python-version: | ||
| - "2.7" | ||
| - "3.6" | ||
| - "3.7" | ||
| - "3.8" | ||
| - "3.9" | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Check Python | ||
| run: | | ||
| set -xe | ||
| python -VV | ||
| python -m site | ||
| - name: Install dependencies | ||
| run: | | ||
| set -xe | ||
| python -m pip install --upgrade pip setuptools wheel | ||
| python -m pip install --upgrade coverage[toml] virtualenv tox tox-gh-actions | ||
| - name: Run tox targets for ${{ matrix.python-version }} | ||
| run: python -m tox | ||
| - name: Create XML coverage | ||
| run: python -m coverage xml | ||
| if: contains(env.USING_COVERAGE, matrix.python-version) | ||
| - name: Upload coverage to Codecov | ||
| uses: codecov/codecov-action@v2 | ||
| if: contains(env.USING_COVERAGE, matrix.python-version) | ||
| with: | ||
| fail_ci_if_error: True | ||
| verbose: True |
+1
-1
| [bumpversion] | ||
| current_version = 0.6.9 | ||
| current_version = 0.6.12 | ||
| commit = True | ||
@@ -4,0 +4,0 @@ tag = True |
| # .pre-commit-config.yaml | ||
| default_language_version: | ||
| python: python3.9 | ||
| repos: | ||
@@ -7,10 +10,16 @@ - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| hooks: | ||
| - id: check-yaml | ||
| - id: check-added-large-files | ||
| - id: end-of-file-fixer | ||
| - id: trailing-whitespace | ||
| - id: check-case-conflict | ||
| - id: mixed-line-ending | ||
| args: | ||
| - --fix=lf | ||
| - id: requirements-txt-fixer | ||
| - id: check-yaml | ||
| - id: check-toml | ||
| - id: check-ast | ||
| - id: check-yaml | ||
| - id: check-merge-conflict | ||
| - id: detect-private-key | ||
| - id: debug-statements | ||
@@ -27,3 +36,2 @@ - repo: https://github.com/pycqa/isort | ||
| - id: black | ||
| language_version: python3 | ||
@@ -34,4 +42,2 @@ - repo: https://github.com/pycqa/flake8 | ||
| - id: flake8 | ||
| language_version: python3 | ||
| exclude: tlscertmon/certs/migrations/ | ||
@@ -42,1 +48,6 @@ - repo: https://github.com/asottile/setup-cfg-fmt | ||
| - id: setup-cfg-fmt | ||
| - repo: https://github.com/tox-dev/tox-ini-fmt | ||
| rev: 0.5.1 | ||
| hooks: | ||
| - id: tox-ini-fmt |
+13
-0
@@ -7,4 +7,17 @@ .. :changelog: | ||
| 0.6.12 (2021-09-10) | ||
| ------------------- | ||
| * Fix some shit from migrating master -> main | ||
| * Makefile updates | ||
| 0.6.11 (2021-09-09) | ||
| ------------------- | ||
| * More test, deploy and build update , still no code change B) | ||
| 0.6.4 (2021-09-05) | ||
| ------------------ | ||
| * Updated deployment env. | ||
@@ -11,0 +24,0 @@ |
+7
-4
@@ -32,3 +32,3 @@ # Makefile | ||
| .PHONY: clean | ||
| clean: clean-build clean-pyc clean-test ## Remove all build, test, coverage and Python artifacts | ||
| clean: clean-build clean-pyc clean-test clean-docs ## Remove all build, test, coverage, docs and Python artifacts | ||
@@ -55,5 +55,9 @@ .PHONY: clean-build | ||
| .PHONY: clean-docs | ||
| clean-docs: ## Remove files in docs/_build | ||
| $(MAKE) -C docs clean | ||
| .PHONY: lint | ||
| lint: ## Check style with flake8. | ||
| flake8 clustercron tests | ||
| tox -e lint | ||
@@ -77,7 +81,6 @@ .PHONY: test | ||
| .PHONY: docs | ||
| docs: ## Generate Sphinx HTML documentation, including API docs. | ||
| docs: clean-docs ## Generate Sphinx HTML documentation, including API docs. | ||
| rm -f docs/clustercron.rst | ||
| rm -f docs/modules.rst | ||
| sphinx-apidoc -o docs/ src/clustercron | ||
| $(MAKE) -C docs clean | ||
| $(MAKE) -C docs html | ||
@@ -84,0 +87,0 @@ $(BROWSER) docs/_build/html/index.html |
+9
-5
| Metadata-Version: 2.1 | ||
| Name: clustercron | ||
| Version: 0.6.9 | ||
| Version: 0.6.12 | ||
| Summary: Cron job wrapper that ensures a script gets run from one node in the cluster. | ||
@@ -10,3 +10,3 @@ Home-page: https://github.com/maartenq/clustercron | ||
| Project-URL: Bug Tracker, https://github.com/maartenq/clustercron/issues | ||
| Project-URL: Changelog, https://github.com/maartenq/clustercron/blob/master/HISTORY.rst | ||
| Project-URL: Changelog, https://github.com/maartenq/clustercron/blob/main/HISTORY.rst | ||
| Keywords: clustercron | ||
@@ -34,3 +34,3 @@ Platform: UNKNOWN | ||
| |pypi| |docs| |pre-commit| | ||
| |pypi| |docs| |pre-commit| |workflow-ci| | ||
@@ -62,6 +62,10 @@ **Clustercron** is cronjob wrapper that tries to ensure that a script gets run | ||
| .. |pre-commit| image:: https://results.pre-commit.ci/badge/github/maartenq/clustercron/master.svg | ||
| .. |pre-commit| image:: https://results.pre-commit.ci/badge/github/maartenq/clustercron/main.svg | ||
| :alt: pre-commit.ci status | ||
| :target: https://results.pre-commit.ci/latest/github/maartenq/clustercron/master | ||
| :target: https://results.pre-commit.ci/latest/github/maartenq/clustercron/main | ||
| .. |workflow-ci| image:: https://github.com/maartenq/clustercron/workflows/ci/badge.svg?branch=main | ||
| :alt: CI status | ||
| :target: https://github.com/maartenq/clustercron/actions?workflow=ci | ||
+7
-3
@@ -5,3 +5,3 @@ =========== | ||
| |pypi| |docs| |pre-commit| | ||
| |pypi| |docs| |pre-commit| |workflow-ci| | ||
@@ -33,4 +33,8 @@ **Clustercron** is cronjob wrapper that tries to ensure that a script gets run | ||
| .. |pre-commit| image:: https://results.pre-commit.ci/badge/github/maartenq/clustercron/master.svg | ||
| .. |pre-commit| image:: https://results.pre-commit.ci/badge/github/maartenq/clustercron/main.svg | ||
| :alt: pre-commit.ci status | ||
| :target: https://results.pre-commit.ci/latest/github/maartenq/clustercron/master | ||
| :target: https://results.pre-commit.ci/latest/github/maartenq/clustercron/main | ||
| .. |workflow-ci| image:: https://github.com/maartenq/clustercron/workflows/ci/badge.svg?branch=main | ||
| :alt: CI status | ||
| :target: https://github.com/maartenq/clustercron/actions?workflow=ci |
+2
-2
| [metadata] | ||
| name = clustercron | ||
| version = 0.6.9 | ||
| version = 0.6.12 | ||
| description = Cron job wrapper that ensures a script gets run from one node in the cluster. | ||
@@ -28,3 +28,3 @@ long_description = file: README.rst | ||
| Bug Tracker = https://github.com/maartenq/clustercron/issues | ||
| Changelog = https://github.com/maartenq/clustercron/blob/master/HISTORY.rst | ||
| Changelog = https://github.com/maartenq/clustercron/blob/main/HISTORY.rst | ||
@@ -31,0 +31,0 @@ [options] |
| Metadata-Version: 2.1 | ||
| Name: clustercron | ||
| Version: 0.6.9 | ||
| Version: 0.6.12 | ||
| Summary: Cron job wrapper that ensures a script gets run from one node in the cluster. | ||
@@ -10,3 +10,3 @@ Home-page: https://github.com/maartenq/clustercron | ||
| Project-URL: Bug Tracker, https://github.com/maartenq/clustercron/issues | ||
| Project-URL: Changelog, https://github.com/maartenq/clustercron/blob/master/HISTORY.rst | ||
| Project-URL: Changelog, https://github.com/maartenq/clustercron/blob/main/HISTORY.rst | ||
| Keywords: clustercron | ||
@@ -34,3 +34,3 @@ Platform: UNKNOWN | ||
| |pypi| |docs| |pre-commit| | ||
| |pypi| |docs| |pre-commit| |workflow-ci| | ||
@@ -62,6 +62,10 @@ **Clustercron** is cronjob wrapper that tries to ensure that a script gets run | ||
| .. |pre-commit| image:: https://results.pre-commit.ci/badge/github/maartenq/clustercron/master.svg | ||
| .. |pre-commit| image:: https://results.pre-commit.ci/badge/github/maartenq/clustercron/main.svg | ||
| :alt: pre-commit.ci status | ||
| :target: https://results.pre-commit.ci/latest/github/maartenq/clustercron/master | ||
| :target: https://results.pre-commit.ci/latest/github/maartenq/clustercron/main | ||
| .. |workflow-ci| image:: https://github.com/maartenq/clustercron/workflows/ci/badge.svg?branch=main | ||
| :alt: CI status | ||
| :target: https://github.com/maartenq/clustercron/actions?workflow=ci | ||
@@ -21,3 +21,3 @@ .bumpversion.cfg | ||
| tox.ini | ||
| .github/workflows/tox.yml | ||
| .github/workflows/ci.yml | ||
| docs/Makefile | ||
@@ -24,0 +24,0 @@ docs/authors.rst |
@@ -6,2 +6,2 @@ # -*- coding: utf-8 -*- | ||
| __email__ = 'ikmaarten@gmail.com' | ||
| __version__ = '0.6.9' | ||
| __version__ = '0.6.12' |
+30
-8
@@ -1,6 +0,8 @@ | ||
| ; tox.ini | ||
| ; vim: ai et sts=4 ts=4 sw=4 ft=dosini fileencoding=utf-8 | ||
| [tox] | ||
| minversion = 1.9 | ||
| envlist = py{27,36,37,38,39}, docs, pre-commit | ||
| envlist = | ||
| lint | ||
| docs | ||
| build | ||
| py{39, 38, 37, 36, 27} | ||
| isolated_build = true | ||
@@ -16,16 +18,36 @@ [testenv] | ||
| [testenv:lint] | ||
| passenv = | ||
| SSH_AUTH_SOCK | ||
| basepython = python3.9 | ||
| skip_install = true | ||
| deps = | ||
| pre-commit | ||
| commands = | ||
| pre-commit run --all-files --show-diff-on-failure | ||
| [testenv:docs] | ||
| basepython = python3.9 | ||
| changedir = docs/ | ||
| deps = | ||
| Sphinx | ||
| sphinx-rtd-theme | ||
| changedir = docs/ | ||
| commands = | ||
| sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html | ||
| [testenv:pre-commit] | ||
| [testenv:build] | ||
| skip_install = true | ||
| deps = | ||
| pre-commit | ||
| build | ||
| twine | ||
| commands = | ||
| pre-commit run --all-files --show-diff-on-failure | ||
| python -m build | ||
| python -m twine check dist/* | ||
| [gh-actions] | ||
| python = | ||
| 2.7: py27 | ||
| 3.6: py36 | ||
| 3.7: py37 | ||
| 3.8: py38 | ||
| 3.9: lint, py39, docs, build |
| --- | ||
| # .github/workflows/tox.yml | ||
| name: tox | ||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - master | ||
| - devel | ||
| jobs: | ||
| tox: | ||
| strategy: | ||
| matrix: | ||
| python-version: | ||
| - "2.7" | ||
| - "3.6" | ||
| - "3.7" | ||
| - "3.8" | ||
| - "3.9" | ||
| os: | ||
| - ubuntu-latest | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install tox | ||
| run: python -m pip install --upgrade tox virtualenv setuptools pip wheel | ||
| - name: Run tox | ||
| run: tox -e py |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
74313
2.82%