Skip to content

Commit

Permalink
MSS: fix a ResourceWarning: unclosed file in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BoboTiG committed Sep 4, 2018
1 parent 235be2a commit 0f3195e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ History:

3.3.0 2018/08/xx
- Linux: add an error handler for the XServer to prevent interpreter crash (fix #61)
- MSS: fix a ResourceWarning: unclosed file in setup.py
- tests: fix a ResourceWarning: unclosed file
- big code clean-up using black

Expand Down
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
"Programming Language :: Python :: 3.7",
"Topic :: Multimedia :: Graphics :: Capture :: Screen Capture",
]

with open("README.rst") as f:
description = f.read()

config = {
"name": "mss",
"version": __version__,
Expand All @@ -51,7 +55,7 @@
"An ultra fast cross-platform multiple screenshots module "
"in pure python using ctypes."
),
"long_description": open("README.rst").read(),
"long_description": description,
"classifiers": classifiers,
"platforms": ["Darwin", "Linux", "Windows"],
"packages": ["mss"],
Expand Down

0 comments on commit 0f3195e

Please sign in to comment.