Skip to content

Commit

Permalink
Version 9.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BoboTiG committed Apr 18, 2023
1 parent 780976d commit c300fb7
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 13 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

See Git checking messages for full history.

## 8.0.4 (2023/xx/xx)
## 9.0.0 (2023/04/18)
- Linux: add failure handling to `XOpenDisplay()` call (fixes #246)
- Mac: tiny improvement in moniors finding
- Windows: refactored how internal handles are stored (fixes #198)
- Windows: removed side effects when leaving the context manager, resources are all freed
- CI: run tests via xvfb-run on GitHub Actions (#248)
- tests: enhance ``test_get_pixels.py``, and try to fix a random failure at the same time (related to #251)
- Windows: removed side effects when leaving the context manager, resources are all freed (fixes #209)
- CI: run tests via `xvfb-run` on GitHub Actions (#248)
- tests: enhance `test_get_pixels.py`, and try to fix a random failure at the same time (related to #251)
- tests: use `PyVirtualDisplay` instead of `xvfbwrapper` (#249)
- tests: automatic rerun in case of failure (related to #251)
- :heart: contributors: @mgorny, @CTPaHHuK-HEbA
Expand Down
14 changes: 12 additions & 2 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Technical Changes

## 9.0.0 (2023-04-18)

### linux.py
- Removed `XEvent` class. Use `XErrorEvent` instead.

### windows.py
- Added `MSS.close()` method
- Removed `MSS.bmp` attribute
- Removed `MSS.memdc` attribute

## 8.0.3 (2023-04-15)

### linux.py
Expand All @@ -17,8 +27,8 @@
### linux.py
- Added `MSS.close()`
- Moved `MSS.__init__()` keyword arguments handling to the base class
- Renamed `error_handler()` function to `__error_handler()`
- Renamed `_validate()` function to `___validate()`
- Renamed `error_handler()` function to `_error_handler()`
- Renamed `validate()` function to `__validate()`
- Renamed `MSS.has_extension()` method to `_is_extension_enabled()`
- Removed `ERROR` namespace
- Removed `MSS.drawable` attribute
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ GNU/Linux

Structure that serves as the connection to the X server, and that contains all the information about that X server.

.. class:: Event
.. class:: XErrorEvent

XErrorEvent to debug eventual errors.

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = mss
version = 8.0.4
version = 9.0.0
author = Mickaël 'Tiger-222' Schoentgen
author_email = [email protected]
description = An ultra fast cross-platform multiple screenshots module in pure python using ctypes.
Expand Down
2 changes: 1 addition & 1 deletion src/mss/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from .exception import ScreenShotError
from .factory import mss

__version__ = "8.0.4"
__version__ = "9.0.0"
__author__ = "Mickaël 'Tiger-222' Schoentgen"
__copyright__ = """
Copyright (c) 2013-2023, Mickaël 'Tiger-222' Schoentgen
Expand Down
4 changes: 0 additions & 4 deletions src/mss/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ class XErrorEvent(Structure):
]


# TODO: remove in v9.0.0
Event = XErrorEvent


class XFixesCursorImage(Structure):
"""
Cursor structure.
Expand Down

0 comments on commit c300fb7

Please sign in to comment.