Skip to content

Commit

Permalink
Merge branch 'release-0.1.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisNT committed Jul 17, 2022
2 parents e870769 + c93377a commit ad092a4
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
- name: 'Lint: flake8'
python: '3.10'
tox: flake8
- name: 'Lint: twine check'
python: '3.10'
tox: twine

name: ${{ matrix.name }}
runs-on: ubuntu-20.04
Expand Down
14 changes: 10 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@ This extension has no configuration options in ``mopidy.conf`` apart from the de


Usage
=============
=====

This extension will delay initialization of other Mopidy extensions until an internet connection has been initialized (for up to around 5 minutes).

Mopidy-WaitForInternet might be useful if other Mopidy extensions (e.g. extensions for online music streaming services) fail to initialize, because they try to connect to internet resources before machine running Mopidy has established an internet connection (e.g. connected to wifi).

Important internals
=============
===================

Mopidy-WaitForInternet uses several different URLs (currently - requests to public `DoH <https://en.wikipedia.org/wiki/DNS_over_HTTPS>`_ servers) to check internet connectivity. As a future-proofing measure there is a `weekly servers-test build <https://github.com/DavisNT/mopidy-waitforinternet/actions/workflows/servers-test.yml>`_ that verifies availability of these URLs.

License
=============
=======
::

Copyright 2022 Davis Mosenkovs
Expand Down Expand Up @@ -86,7 +86,13 @@ Project resources
Changelog
=========

v0.1.0
v0.1.1
----------------------------------------

- Fixed README formatting.
- Initial release.

v0.1.0 (UNRELEASED)
----------------------------------------

- Initial version.
2 changes: 1 addition & 1 deletion mopidy_waitforinternet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import requests

__version__ = '0.1.0'
__version__ = '0.1.1'

check_urls = [
'https://cloudflare-dns.com/dns-query?dns=AAABAAABAAAAAAAACmNsb3VkZmxhcmUDY29tAAABAAE',
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def get_version(filename):
author_email='python-apps@dm.id.lv',
description='Mopidy extension that waits for internet connection during early startup.',
long_description=open('README.rst').read(),
long_description_content_type='text/x-rst',
packages=find_packages(exclude=['tests', 'tests.*']),
zip_safe=False,
include_package_data=True,
Expand Down
10 changes: 9 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py37, py38, py39, py310, py3x, flake8, serverstest
envlist = py37, py38, py39, py310, py3x, flake8, serverstest, twine

[testenv]
sitepackages = true
Expand All @@ -21,3 +21,11 @@ ignore = E501

[testenv:serverstest]
commands = pytest -v --basetemp={envtmpdir} tests/test_connectivity_check_servers.py

[testenv:twine]
deps =
build
twine
commands =
python -m build
twine check dist/*

0 comments on commit ad092a4

Please sign in to comment.