Debian Codegraph @

setup.py

raw symbols SCIP
1 import io
2 import os
3 import re
4 from setuptools import setup, find_packages
5
6 scriptFolder = os.path.dirname(os.path.realpath(__file__))
7 os.chdir(scriptFolder)
8
9 # Find version info from module (without importing the module):
10 with open('src/mouseinfo/__init__.py', 'r') as fileObj:
11 version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
12 fileObj.read(), re.MULTILINE).group(1)
13
14 # Use the README.md content for the long description:
15 readmeFilename = os.path.join(scriptFolder, 'README.md')
16 with io.open(readmeFilename, encoding='utf-8') as fileObj:
17 long_description = fileObj.read()
18
19 setup(
20 name='MouseInfo',
21 version=version,
22 url='https://github.com/asweigart/mouseinfo',
23 author='Al Sweigart',
24 author_email='[email protected]',
25 description=('''An application to display XY position and RGB color information for the pixel currently under the mouse. Works on Python 2 and 3.'''),
26 long_description=long_description,
27 long_description_content_type='text/markdown',
28 license='GPLv3+',
29 packages=find_packages(where='src'),
30 package_dir={'': 'src'},
31 test_suite='tests',
32 # NOTE: Update the python_version info for Pillow as Pillow supports later versions of Python.
33 install_requires=['pyobjc-core;platform_system=="Darwin"',
34 'pyobjc-framework-quartz;platform_system=="Darwin"',
35 'python-Xlib;platform_system=="Linux"',
36 'pyperclip',
37 'Pillow >= 6.2.1; python_version == "3.8"',
38 'Pillow >= 5.2.0; python_version == "3.7"',
39 'Pillow >= 4.0.0; python_version == "3.6"',
40 'Pillow >= 3.2.0; python_version == "3.5"',
41 'Pillow <= 5.4.1, >= 2.5.0; python_version == "3.4"',
42 'Pillow <= 4.3.0, >= 2.0.0; python_version == "3.3"',
43 'Pillow <= 3.4.2, >= 2.0.0; python_version == "3.2"',
44 'Pillow >= 2.0.0; python_version == "2.7"',
45 ],
46 keywords='',
47 classifiers=[
48 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
49 'Programming Language :: Python',
50 'Programming Language :: Python :: 2',
51 'Programming Language :: Python :: 2.7',
52 'Programming Language :: Python :: 3',
53 'Programming Language :: Python :: 3.2',
54 'Programming Language :: Python :: 3.3',
55 'Programming Language :: Python :: 3.4',
56 'Programming Language :: Python :: 3.5',
57 'Programming Language :: Python :: 3.6',
58 'Programming Language :: Python :: 3.7',
59 'Programming Language :: Python :: 3.8',
60 ],
61 )