forked from Kentzo/Power
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,8 @@ def on_time_remaining_change(self, power_management): | |
# PowerManagementObserver.register(Observer) | ||
""" | ||
__author__ = '[email protected]' | ||
import pkg_resources | ||
__version__ = pkg_resources.require('power')[0].version | ||
|
||
from sys import platform | ||
from power.common import * | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,23 +10,26 @@ | |
|
||
|
||
if platform.startswith('darwin'): | ||
REQUIREMENTS.append('pyobjc == 2.3') | ||
REQUIREMENTS.append('pyobjc >= 2.5') | ||
|
||
|
||
setup(name="Power", | ||
version="1.0", | ||
setup( | ||
name="Power", | ||
version="1.1", | ||
description="Cross-platform system power status information.", | ||
author="Ilya Kulakov", | ||
author_email="[email protected]", | ||
url="https://github.com/Kentzo/Power", | ||
platforms=["Mac OS X 10.6+", "Windows XP+", "Linux 2.6+"], | ||
packages=['power'], | ||
classifiers=[ | ||
'Natural Language :: English', | ||
'License :: OSI Approved :: MIT License', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2', | ||
'Operating System :: MacOS :: MacOS X', | ||
'Operating System :: Microsoft :: Windows', | ||
'Operating System :: POSIX :: Linux', | ||
'License :: OSI Approved :: MIT License', | ||
'Natural Language :: English', | ||
'Topic :: System :: Power (UPS)', | ||
'Topic :: System :: Hardware', | ||
'Topic :: System :: Monitoring' | ||
|