-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
70 lines (66 loc) · 2.52 KB
/
setup.py
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import io
import os
import re
from setuptools import setup, find_packages
scriptFolder = os.path.dirname(os.path.realpath(__file__))
os.chdir(scriptFolder)
# Find version info from module (without importing the module):
with open("src/pywinbox/__init__.py", "r") as fileObj:
match = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', fileObj.read(), re.MULTILINE
)
if not match:
raise TypeError("'__version__' not found in 'src/pywinbox/__init__.py'")
version = match.group(1)
# Use the README.md content for the long description:
with io.open("README.md", encoding="utf-8") as fileObj:
long_description = fileObj.read()
setup(
name='PyWinBox',
version=version,
url='https://github.com/Kalmat/PyWinBox',
# download_url='https://github.com/Kalmat/PyWinCtl/archive/refs/tags/%s.tar.gz' % version,
author='Kalmat',
author_email='[email protected]',
description=('Cross-Platform and multi-monitor toolkit to handle rectangular areas and windows box'),
long_description=long_description,
long_description_content_type="text/markdown",
license='BSD 3',
packages=find_packages(where='src'),
package_dir={'': 'src'},
package_data={"pywinbox": ["py.typed"]},
test_suite='tests',
install_requires=[
"pywin32>=302; sys_platform == 'win32'",
"python-xlib>=0.21; sys_platform == 'linux'",
"ewmhlib>=0.1; sys_platform == 'linux'",
"pyobjc>=8.1; sys_platform == 'darwin'",
"typing_extensions>=4.4.0"
],
extras_require={
'dev': [
"types-setuptools>=65.5",
"mypy>=0.990",
"types-pywin32>=305.0.0.3",
"types-python-xlib>=0.32",
"pywinctl>=0.3"
]
},
keywords="left top right bottom size width height topleft bottomleft topright bottomright midtop midleft " +
"midbottom midright center centerx centery box rect boundingbox area",
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Win32 (MS Windows)',
'Environment :: X11 Applications',
'Environment :: MacOS X',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11'
],
)