Repository: samuelcolvin/watchfiles (language: python)

Issue:
The 'asyncio_mode' default value will change to 'strict' in future, please explicitly use 'asyncio_mode=strict' or 'asyncio_mode=auto'
There was a [bug](https://bugs.debian.org/1008469) reported in Debian bug tracker which I fixed with this [patch](https://salsa.debian.org/python-team/packages/python-watchgod/-/blob/debian/master/debian/patches/fix-asyncio-warnings.patch) against version 0.8.2.  Please note that I did not found a solution for version 0.12. where the issue can be reproduced as well.
Kind regards, Andreas.


Discussion / hints:
PR welcome for 0.8.2, should be pretty simple

In 0.12 we use anyio and the dependency on pytest-asyncio has been dropped so you shouldn't get the error - can you explain what you're seeing with v0.12?
Am Mon, Apr 04, 2022 at 09:37:04AM -0700 schrieb Samuel Colvin:
> In 0.12 we use anyio and the dependency on pytest-asyncio has been dropped so you shouldn't get the error - can you explain what you're seeing with v0.12?
I had the very same error as reported in the said bug report.  But I did not changed the Build-Depends of the package - thus it might have me who caused that issue.
Kind regards, Andreas.


Fix patch:
diff --git a/LICENSE b/LICENSE
index cbbbc9f..08c9a8d 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
 The MIT License (MIT)
 
-Copyright (c) 2017, 2018, 2019, 2020 Samuel Colvin
+Copyright (c) 2017, 2018, 2019, 2020, 2021, 2022 Samuel Colvin
 
 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/README.md b/README.md
index ae6c6c0..5c94e9a 100644
--- a/README.md
+++ b/README.md
@@ -1,15 +1,14 @@
 # watchgod
 
-[![CI](https://github.com/samuelcolvin/watchgod/workflows/ci/badge.svg?event=push)](https://github.com/samuelcolvin/watchgod/actions?query=event%3Apush+branch%3Amaster+workflow%3Aci)
-[![Coverage](https://codecov.io/gh/samuelcolvin/watchgod/branch/master/graph/badge.svg)](https://codecov.io/gh/samuelcolvin/watchgod)
+[![CI](https://github.com/samuelcolvin/watchgod/workflows/ci/badge.svg?event=push&branch=watchgod)](https://github.com/samuelcolvin/watchgod/actions?query=event%3Apush+branch%3Awatchgod+workflow%3Aci)
 [![pypi](https://img.shields.io/pypi/v/watchgod.svg)](https://pypi.python.org/pypi/watchgod)
-[![license](https://img.shields.io/github/license/samuelcolvin/watchgod.svg)](https://github.com/samuelcolvin/watchgod/blob/master/LICENSE)
+[![license](https://img.shields.io/github/license/samuelcolvin/watchfiles.svg)](https://github.com/samuelcolvin/watchfiles/blob/watchgod/LICENSE)
 
 Simple, modern file watching and code reload in python.
 
 ---
 
-## NOTICE - Package Renamed to `watchfiles`
+## NOTICE - Package Renamed to [watchfiles](https://pypi.org/project/watchfiles/)
 
 **Please note:** This package (watchgod) has been renamed to [watchfiles](https://pypi.org/project/watchfiles/). 
 Please replace `watchgod` with `watchfiles`, see [the migration guide](https://watchfiles.helpmanual.io/migrating/)
@@ -109,7 +108,7 @@ for changes in watch(directoryin, watcher_cls=RegExpWatcher, watcher_kwargs=dict
 ```
 
 For more details, checkout
-[`watcher.py`](https://github.com/samuelcolvin/watchgod/blob/master/watchgod/watcher.py),
+[`watcher.py`](https://github.com/samuelcolvin/watchfiles/blob/watchgod/watchgod/watcher.py),
 it's pretty simple.
 
 * **AllWatcher** The base watcher, all files are checked for changes.


Test patch:
diff --git a/tests/requirements.txt b/tests/requirements.txt
index 2dd08c7..16bd9c6 100644
--- a/tests/requirements.txt
+++ b/tests/requirements.txt
@@ -1,6 +1,6 @@
 coverage==6.3.2
 pygments==2.11.2
-pytest==7.0.1
+pytest==7.1.1
 pytest-cov==3.0.0
 pytest-mock==3.7.0
 pytest-sugar==0.9.4