Skip to content

Commit

Permalink
Prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
malthe committed May 23, 2023
1 parent db20de9 commit 027079b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 21 deletions.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

0.8.4 (2023-05-23)
------------------

- Fix test compatibility with newer Python 3.

0.8.3 (2023-05-23)
------------------

Expand Down
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
])],
Expand All @@ -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',
],
Expand Down
36 changes: 18 additions & 18 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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)

Expand Down Expand Up @@ -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[:]
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand All @@ -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()
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 027079b

Please sign in to comment.