-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
154 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
[bumpversion] | ||
current_version = 0.39.0 | ||
commit = True | ||
tag = True | ||
tag_name = {new_version} | ||
|
||
[bumpversion:file:zeroconf/__init__.py] | ||
search = __version__ = '{current_version}' | ||
replace = __version__ = '{new_version}' | ||
|
||
[tool:pytest] | ||
testpaths = tests | ||
|
||
[flake8] | ||
show-source = 1 | ||
application-import-names = zeroconf | ||
max-line-length = 110 | ||
ignore = E203,W503,N818 | ||
|
||
[mypy] | ||
ignore_missing_imports = true | ||
follow_imports = skip | ||
check_untyped_defs = true | ||
no_implicit_optional = true | ||
warn_incomplete_stub = true | ||
warn_no_return = true | ||
warn_redundant_casts = true | ||
warn_unused_configs = true | ||
warn_unused_ignores = true | ||
warn_return_any = true | ||
disallow_untyped_calls = false | ||
disallow_untyped_defs = true | ||
|
||
[mypy-zeroconf.test] | ||
disallow_untyped_defs = false | ||
[bumpversion] | ||
current_version = 0.39.1 | ||
commit = True | ||
tag = True | ||
tag_name = {new_version} | ||
|
||
[bumpversion:file:zeroconf/__init__.py] | ||
search = __version__ = '{current_version}' | ||
replace = __version__ = '{new_version}' | ||
|
||
[tool:pytest] | ||
testpaths = tests | ||
|
||
[flake8] | ||
show-source = 1 | ||
application-import-names = zeroconf | ||
max-line-length = 110 | ||
ignore = E203,W503,N818 | ||
|
||
[mypy] | ||
ignore_missing_imports = true | ||
follow_imports = skip | ||
check_untyped_defs = true | ||
no_implicit_optional = true | ||
warn_incomplete_stub = true | ||
warn_no_return = true | ||
warn_redundant_casts = true | ||
warn_unused_configs = true | ||
warn_unused_ignores = true | ||
warn_return_any = true | ||
disallow_untyped_calls = false | ||
disallow_untyped_defs = true | ||
|
||
[mypy-zeroconf.test] | ||
disallow_untyped_defs = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,119 +1,119 @@ | ||
""" Multicast DNS Service Discovery for Python, v0.14-wmcbrine | ||
Copyright 2003 Paul Scott-Murphy, 2014 William McBrine | ||
This module provides a framework for the use of DNS Service Discovery | ||
using IP multicast. | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 2.1 of the License, or (at your option) any later version. | ||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with this library; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 | ||
USA | ||
""" | ||
|
||
import sys | ||
|
||
from ._cache import DNSCache # noqa # import needed for backwards compat | ||
from ._core import Zeroconf | ||
from ._dns import ( # noqa # import needed for backwards compat | ||
DNSAddress, | ||
DNSEntry, | ||
DNSHinfo, | ||
DNSNsec, | ||
DNSPointer, | ||
DNSQuestion, | ||
DNSRecord, | ||
DNSService, | ||
DNSText, | ||
DNSQuestionType, | ||
) | ||
from ._exceptions import ( | ||
AbstractMethodException, | ||
BadTypeInNameException, | ||
Error, | ||
EventLoopBlocked, | ||
IncomingDecodeError, | ||
NamePartTooLongException, | ||
NonUniqueNameException, | ||
NotRunningException, | ||
ServiceNameAlreadyRegistered, | ||
) | ||
from ._logger import QuietLogger, log # noqa # import needed for backwards compat | ||
from ._protocol.incoming import DNSIncoming # noqa # import needed for backwards compat | ||
from ._protocol.outgoing import DNSOutgoing # noqa # import needed for backwards compat | ||
from ._services import ( # noqa # import needed for backwards compat | ||
Signal, | ||
SignalRegistrationInterface, | ||
ServiceListener, | ||
ServiceStateChange, | ||
) | ||
from ._services.browser import ServiceBrowser | ||
from ._services.info import ( # noqa # import needed for backwards compat | ||
instance_name_from_service_info, | ||
ServiceInfo, | ||
) | ||
from ._services.registry import ServiceRegistry # noqa # import needed for backwards compat | ||
from ._services.types import ZeroconfServiceTypes | ||
from ._updates import RecordUpdate, RecordUpdateListener | ||
from ._utils.name import service_type_name # noqa # import needed for backwards compat | ||
from ._utils.net import ( # noqa # import needed for backwards compat | ||
add_multicast_member, | ||
autodetect_ip_version, | ||
create_sockets, | ||
get_all_addresses_v6, | ||
InterfaceChoice, | ||
InterfacesType, | ||
IPVersion, | ||
get_all_addresses, | ||
) | ||
from ._utils.time import current_time_millis, millis_to_seconds # noqa # import needed for backwards compat | ||
|
||
__author__ = 'Paul Scott-Murphy, William McBrine' | ||
__maintainer__ = 'Jakub Stasiak <[email protected]>' | ||
__version__ = '0.39.0' | ||
__license__ = 'LGPL' | ||
|
||
|
||
__all__ = [ | ||
"__version__", | ||
"Zeroconf", | ||
"ServiceInfo", | ||
"ServiceBrowser", | ||
"ServiceListener", | ||
"DNSQuestionType", | ||
"InterfaceChoice", | ||
"ServiceStateChange", | ||
"IPVersion", | ||
"ZeroconfServiceTypes", | ||
"RecordUpdate", | ||
"RecordUpdateListener", | ||
"current_time_millis", | ||
# Exceptions | ||
"Error", | ||
"AbstractMethodException", | ||
"BadTypeInNameException", | ||
"EventLoopBlocked", | ||
"IncomingDecodeError", | ||
"NamePartTooLongException", | ||
"NonUniqueNameException", | ||
"NotRunningException", | ||
"ServiceNameAlreadyRegistered", | ||
] | ||
|
||
if sys.version_info <= (3, 6): # pragma: no cover | ||
raise ImportError( # pragma: no cover | ||
''' | ||
Python version > 3.6 required for python-zeroconf. | ||
If you need support for Python 2 or Python 3.3-3.4 please use version 19.1 | ||
If you need support for Python 3.5 please use version 0.28.0 | ||
''' | ||
) | ||
""" Multicast DNS Service Discovery for Python, v0.14-wmcbrine | ||
Copyright 2003 Paul Scott-Murphy, 2014 William McBrine | ||
This module provides a framework for the use of DNS Service Discovery | ||
using IP multicast. | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 2.1 of the License, or (at your option) any later version. | ||
This library is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with this library; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 | ||
USA | ||
""" | ||
|
||
import sys | ||
|
||
from ._cache import DNSCache # noqa # import needed for backwards compat | ||
from ._core import Zeroconf | ||
from ._dns import ( # noqa # import needed for backwards compat | ||
DNSAddress, | ||
DNSEntry, | ||
DNSHinfo, | ||
DNSNsec, | ||
DNSPointer, | ||
DNSQuestion, | ||
DNSRecord, | ||
DNSService, | ||
DNSText, | ||
DNSQuestionType, | ||
) | ||
from ._exceptions import ( | ||
AbstractMethodException, | ||
BadTypeInNameException, | ||
Error, | ||
EventLoopBlocked, | ||
IncomingDecodeError, | ||
NamePartTooLongException, | ||
NonUniqueNameException, | ||
NotRunningException, | ||
ServiceNameAlreadyRegistered, | ||
) | ||
from ._logger import QuietLogger, log # noqa # import needed for backwards compat | ||
from ._protocol.incoming import DNSIncoming # noqa # import needed for backwards compat | ||
from ._protocol.outgoing import DNSOutgoing # noqa # import needed for backwards compat | ||
from ._services import ( # noqa # import needed for backwards compat | ||
Signal, | ||
SignalRegistrationInterface, | ||
ServiceListener, | ||
ServiceStateChange, | ||
) | ||
from ._services.browser import ServiceBrowser | ||
from ._services.info import ( # noqa # import needed for backwards compat | ||
instance_name_from_service_info, | ||
ServiceInfo, | ||
) | ||
from ._services.registry import ServiceRegistry # noqa # import needed for backwards compat | ||
from ._services.types import ZeroconfServiceTypes | ||
from ._updates import RecordUpdate, RecordUpdateListener | ||
from ._utils.name import service_type_name # noqa # import needed for backwards compat | ||
from ._utils.net import ( # noqa # import needed for backwards compat | ||
add_multicast_member, | ||
autodetect_ip_version, | ||
create_sockets, | ||
get_all_addresses_v6, | ||
InterfaceChoice, | ||
InterfacesType, | ||
IPVersion, | ||
get_all_addresses, | ||
) | ||
from ._utils.time import current_time_millis, millis_to_seconds # noqa # import needed for backwards compat | ||
|
||
__author__ = 'Paul Scott-Murphy, William McBrine' | ||
__maintainer__ = 'Jakub Stasiak <[email protected]>' | ||
__version__ = '0.39.1' | ||
__license__ = 'LGPL' | ||
|
||
|
||
__all__ = [ | ||
"__version__", | ||
"Zeroconf", | ||
"ServiceInfo", | ||
"ServiceBrowser", | ||
"ServiceListener", | ||
"DNSQuestionType", | ||
"InterfaceChoice", | ||
"ServiceStateChange", | ||
"IPVersion", | ||
"ZeroconfServiceTypes", | ||
"RecordUpdate", | ||
"RecordUpdateListener", | ||
"current_time_millis", | ||
# Exceptions | ||
"Error", | ||
"AbstractMethodException", | ||
"BadTypeInNameException", | ||
"EventLoopBlocked", | ||
"IncomingDecodeError", | ||
"NamePartTooLongException", | ||
"NonUniqueNameException", | ||
"NotRunningException", | ||
"ServiceNameAlreadyRegistered", | ||
] | ||
|
||
if sys.version_info <= (3, 6): # pragma: no cover | ||
raise ImportError( # pragma: no cover | ||
''' | ||
Python version > 3.6 required for python-zeroconf. | ||
If you need support for Python 2 or Python 3.3-3.4 please use version 19.1 | ||
If you need support for Python 3.5 please use version 0.28.0 | ||
''' | ||
) |