diff --git a/CHANGES.rst b/CHANGES.rst index 554d3bb..efa65fa 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,11 @@ Changelog ========= +0.8.4 (2023-05-23) +------------------ + +- Fix test compatibility with newer Python 3. + 0.8.3 (2023-05-23) ------------------ diff --git a/setup.py b/setup.py index 73d5d03..d7f9bb0 100644 --- a/setup.py +++ b/setup.py @@ -17,11 +17,12 @@ def read(fname): ] setup(name = "MacFSEvents", - version = "0.8.3", + version = "0.8.4", description = "Thread-based interface to file system observation primitives.", long_description = "\n\n".join((read('README.rst'), read('CHANGES.rst'))), license = "BSD", data_files = [("", [ + "compat.h", "LICENSE.txt", "CHANGES.rst" ])], @@ -41,8 +42,10 @@ def read(fname): 'Programming Language :: Python :: 2.5', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.2', - 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: System :: Filesystems', ], diff --git a/tests.py b/tests.py index 94e7da3..28109e7 100644 --- a/tests.py +++ b/tests.py @@ -62,7 +62,7 @@ def callback(*args): # add single file import time - while not observer.isAlive(): + while not observer.is_alive(): time.sleep(0.1) del events[:] f.close() @@ -87,7 +87,7 @@ def callback(*args): # wait until activation import time - while not observer.isAlive(): + while not observer.is_alive(): time.sleep(0.1) time.sleep(0.1) @@ -141,7 +141,7 @@ def callback(*args): # add single file import time - while not observer.isAlive(): + while not observer.is_alive(): time.sleep(0.1) time.sleep(0.1) del events[:] @@ -169,7 +169,7 @@ def callback(*args): observer = Observer() observer.start() import time - while not observer.isAlive(): + while not observer.is_alive(): time.sleep(0.1) observer.schedule(stream) @@ -200,7 +200,7 @@ def callback(*args): observer.start() import time - while not observer.isAlive(): + while not observer.is_alive(): time.sleep(0.1) observer.schedule(stream) @@ -240,7 +240,7 @@ def callback(*args): observer.start() # add single file - while not observer.isAlive(): + while not observer.is_alive(): time.sleep(0.1) del events[:] f = open(os.path.join(subdirectory, "test"), "w") @@ -276,7 +276,7 @@ def callback(*args): # add single file import time - while not observer.isAlive(): + while not observer.is_alive(): time.sleep(0.1) del events[:] f.close() @@ -305,7 +305,7 @@ def callback(*args): # add single file import time - while not observer.isAlive(): + while not observer.is_alive(): time.sleep(0.1) del events[:] f.close() @@ -331,7 +331,7 @@ def callback(*args): # add single file import time - while not observer.isAlive(): + while not observer.is_alive(): time.sleep(0.1) del events[:] f.close() @@ -366,7 +366,7 @@ def callback(*args): #create one file import time - while not observer.isAlive(): + while not observer.is_alive(): time.sleep(0.1) del events[:] f.close() @@ -423,7 +423,7 @@ def callback(*args): #create two files (here in the same directory) import time - while not observer.isAlive(): + while not observer.is_alive(): time.sleep(0.1) del events[:] f.close() @@ -459,7 +459,7 @@ def callback(event): # add single file import time - while not observer.isAlive(): + while not observer.is_alive(): time.sleep(0.1) del events[:] time.sleep(0.1) @@ -501,7 +501,7 @@ def callback(event): # add single file import time - while not observer.isAlive(): + while not observer.is_alive(): time.sleep(0.1) del events[:] time.sleep(2.1) @@ -538,7 +538,7 @@ def callback(event): # add single file import time - while not observer.isAlive(): + while not observer.is_alive(): time.sleep(0.1) del events[:] time.sleep(2.1) @@ -580,7 +580,7 @@ def callback(event): # add single file import time - while not observer.isAlive(): + while not observer.is_alive(): time.sleep(0.1) del events[:] time.sleep(2.1) @@ -615,7 +615,7 @@ def callback(event): # add single file import time - while not observer.isAlive(): + while not observer.is_alive(): time.sleep(0.1) del events[:] time.sleep(2.1) @@ -668,7 +668,7 @@ def callback(event): # add single file import time - while not observer.isAlive(): + while not observer.is_alive(): time.sleep(0.1) del events[:] time.sleep(0.1) @@ -704,7 +704,7 @@ def callback(event): observer.start() import time - while not observer.isAlive(): + while not observer.is_alive(): time.sleep(0.1) del events[:] time.sleep(1)