forked from boppreh/mouse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
50 lines (46 loc) · 1.63 KB
/
setup.py
File metadata and controls
50 lines (46 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
"""
Usage instructions:
- If you are installing: `python setup.py install`
- If you are developing: `python setup.py sdist bdist --format=zip bdist_wheel --universal`
"""
import sys
import mouse
try:
import pypandoc
long_description = pypandoc.convert_text(mouse.__doc__ or '', format='md', to='rst')
except ImportError:
long_description = mouse.__doc__ or ''
import re
last_version_match = re.search('(\d+(?:\.\d+)+)', open('CHANGES.md').read())
if last_version_match:
last_version = last_version_match.group(1)
else:
last_version = '0.0.1'
# Wheel creation breaks with Windows newlines.
# https://github.com/pypa/setuptools/issues/1126
long_description = long_description.replace('\r\n', '\n')
from setuptools import setup
setup(
name='mouse',
version=last_version,
author='BoppreH',
author_email='boppreh@gmail.com',
packages=['mouse'],
url='https://github.com/boppreh/mouse',
license='MIT',
description='Hook and simulate global mouse events in pure Python',
keywords = 'mouse listen hook simulate automate',
long_description=long_description,
install_requires=[] + (["pyobjc"] if sys.platform == "darwin" else []), # OSX-specific dependency
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Operating System :: Microsoft :: Windows',
'Operating System :: Unix',
'Operating System :: MacOS :: MacOS X',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
],
)