Skip to content

Commit

Permalink
Merge branch 'release-v0.7.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
fedejaure committed Jul 24, 2022
2 parents dde3e68 + d238762 commit 45cb876
Show file tree
Hide file tree
Showing 16 changed files with 507 additions and 659 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[bumpversion]
commit = True
tag = False
current_version = 0.6.1
current_version = 0.7.0

[bumpversion:file:pyproject.toml]
search = version = "{current_version}"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2.4.0
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
14 changes: 7 additions & 7 deletions .github/workflows/pre-commit-autoupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:
name: autoupdate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/checkout@v3
with:
ref: develop

- name: Set up Python 3.7
uses: actions/setup-python@v2.3.1
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8

- name: Install pre-commit
run: pip install pre-commit
Expand All @@ -28,15 +28,15 @@ jobs:
- name: Run pre-commit
run: pre-commit run --all-files

- uses: peter-evans/create-pull-request@v3.12.1
- uses: peter-evans/create-pull-request@v4.0.4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: chore-update-pre-commit-hooks
title: Update pre-commit hooks
commit-message: "Update pre-commit hooks"
body: |
# Update pre-commit hooks
# Update pre-commit hooks
- Update pre-commit hooks to the latest version.
delete-branch: true
labels: |
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.4.0
- name: Set up Python 3.7
uses: actions/setup-python@v2.3.1
- uses: actions/checkout@v3

- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8

- name: Install system deps
shell: bash
run: |
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
name: Create Github Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/checkout@v3

- name: Get version from tag
id: tag_name
Expand All @@ -53,7 +53,7 @@ jobs:
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v2.0.0
uses: mindsers/changelog-reader-action@v2.1.1
with:
version: ${{ steps.tag_name.outputs.current_version }}
path: ./CHANGELOG.md
Expand Down
46 changes: 23 additions & 23 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ jobs:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.4.0
- name: Set up Python 3.7
uses: actions/setup-python@v2.3.1
- uses: actions/checkout@v3

- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8

- name: Linting
run: |
pip install pre-commit
Expand All @@ -32,38 +32,38 @@ jobs:
strategy:
matrix:
os: [Ubuntu, MacOS]
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.8', '3.9', '3.10']
fail-fast: true
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.3.1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install system deps
shell: bash
run: |
pip install nox
pip install poetry
poetry config virtualenvs.in-project true
- name: Run mypy with nox
shell: bash
run: nox --force-color -s mypy-${{ matrix.python-version }}

- name: Run tests with nox
shell: bash
run: nox --force-color -s tests-${{ matrix.python-version }}

- name: Run safety check
if: matrix.python-version == '3.10' && matrix.os == 'Ubuntu'
shell: bash
run: nox --force-color -s safety

- name: Upload coverage data
uses: actions/upload-artifact@v2.3.1
uses: actions/upload-artifact@v3
with:
name: coverage-data
path: ".coverage.*"
Expand All @@ -72,13 +72,13 @@ jobs:
needs: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.4.0
- name: Set up Python 3.7
uses: actions/setup-python@v2.3.1
- uses: actions/checkout@v3

- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8

- name: Install system deps
shell: bash
run: |
Expand All @@ -87,7 +87,7 @@ jobs:
poetry config virtualenvs.in-project true
- name: Download coverage data
uses: actions/download-artifact@v2.1.0
uses: actions/download-artifact@v3
with:
name: coverage-data

Expand All @@ -97,6 +97,6 @@ jobs:
nox --force-color --session=coverage -- --fmt xml
- name: Upload coverage report
uses: codecov/codecov-action@v2.1.0
uses: codecov/codecov-action@v3.1.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
32 changes: 14 additions & 18 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
rev: v4.3.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-toml
- id: check-yaml
- id: debug-statements
Expand All @@ -13,29 +15,23 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.1.0
rev: 22.6.0
hooks:
- id: black
- repo: local
- repo: https://github.com/flakeheaven/flakeheaven
rev: 2.0.0
hooks:
- id: flakehell
name: flakehell
description: "`Flakehell` it's a Flake8 wrapper to make it cools."
entry: flakehell
args: [lint]
language: python
types: [python]
require_serial: true
- id: flakeheaven
additional_dependencies: [
'flake8~=3.9.2',
'flakehell~=0.9.0',
'flake8~=4.0.1',
'flake8-builtins~=1.5.3',
'flake8-blind-except~=0.2.0',
'flake8-blind-except~=0.2.1',
'flake8-logging-format~=0.6.0',
'flake8-bugbear~=21.11.29',
'flake8-annotations~=2.7.0',
'flake8-bugbear~=22.7.1',
'flake8-annotations~=2.9.0',
'flake8-docstrings~=1.6.0',
'flake8-bandit~=2.1.2',
'flake8-bandit~=3.0.0',
'flake8-broken-line~=0.4.0',
'darglint~=1.8.1'
'darglint~=1.8.1',
'pylint~=2.14.5',
]
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.7.0] - 2022-07-24
### Changed
- Update dependencies.

### Removed
- Python 3.7 support.

## [0.6.1] - 2022-02-02
### Changed
- Update dependencies.
Expand Down Expand Up @@ -53,7 +60,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- First release on PyPI.

[Unreleased]: https://github.com/fedejaure/mdns-beacon/compare/v0.6.1...develop
[Unreleased]: https://github.com/fedejaure/mdns-beacon/compare/v0.7.0...develop
[0.7.0]: https://github.com/fedejaure/mdns-beacon/compare/v0.6.1...v0.7.0
[0.6.1]: https://github.com/fedejaure/mdns-beacon/compare/v0.6.0...v0.6.1
[0.6.0]: https://github.com/fedejaure/mdns-beacon/compare/v0.5.0...v0.6.0
[0.5.0]: https://github.com/fedejaure/mdns-beacon/compare/v0.4.2...v0.5.0
Expand Down
4 changes: 2 additions & 2 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
[https://www.contributor-covenant.org/version/2/0/code_of_conduct.html][v2.0].

Community Impact Guidelines were inspired by
Community Impact Guidelines were inspired by
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].

For answers to common questions about this code of conduct, see the FAQ at
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available
at [https://www.contributor-covenant.org/translations][translations].

[homepage]: https://www.contributor-covenant.org
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ Listen to a specific service type:

```
$ mdns-beacon listen --service _http._tcp.local.
🚨📡 mDNS Beacon Listener 📡🚨
🚨📡 mDNS Beacon Listener 📡🚨
┏━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━┓
┃ # ┃ Type ┃ Name ┃ Address IPv4 ┃ Port ┃ Server ┃ TTL ┃
┡━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━╇━━━━━━━━━━━━━━━━━━━━━╇━━━━━┩
│ 0 │ _http._tcp.local. │ example._http._tcp.local. │ 127.0.0.1 │ 80 │ example.local. │ 120 │
│ 1 │ _http._tcp.local. │ sub1.example._http._tcp.local. │ 127.0.0.1 │ 80 │ sub1.example.local. │ 120 │
└───┴───────────────────┴────────────────────────────────┴──────────────┴──────┴─────────────────────┴─────┘
⠧ Listen for services (Press CTRL+C to quit) ...
```

Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
sphinx==4.4.0
sphinx==5.0.2
recommonmark==0.7.1
8 changes: 4 additions & 4 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Supervisord

Supervisord example config.

.. code-block:: TOML
.. code-block:: toml
[program:mdns-beacon]
command=mdns-beacon blink example --alias sub1.example --address 127.0.0.1 --type http --protocol tcp --delay-startup 180
Expand All @@ -41,13 +41,13 @@ Listen to a specific service type:
.. code-block:: shell
$ mdns-beacon listen --service _http._tcp.local.
🚨📡 mDNS Beacon Listener 📡🚨
🚨📡 mDNS Beacon Listener 📡🚨
┏━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━┓
# ┃ Type ┃ Name ┃ Address IPv4 ┃ Port ┃ Server ┃ TTL ┃
┡━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━╇━━━━━━━━━━━━━━━━━━━━━╇━━━━━┩
│ 0 │ _http._tcp.local. │ example._http._tcp.local. │ 127.0.0.1 │ 80 │ example.local. │ 120 │
│ 1 │ _http._tcp.local. │ sub1.example._http._tcp.local. │ 127.0.0.1 │ 80 │ sub1.example.local. │ 120 │
└───┴───────────────────┴────────────────────────────────┴──────────────┴──────┴─────────────────────┴─────┘
⠧ Listen for services (Press CTRL+C to quit) ...
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from nox.sessions import Session

nox.options.sessions = ["tests", "mypy"]
python_versions = ["3.7", "3.8", "3.9", "3.10"]
python_versions = ["3.8", "3.9", "3.10"]


def install_with_constraints(session: Session, *args: str, **kwargs: Any) -> None:
Expand Down
Loading

0 comments on commit 45cb876

Please sign in to comment.