-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
107 lines (84 loc) · 3.45 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# -*- coding: utf-8 -*-
# The setuptools script to build, install and test a PyCocoa distribution.
# Tested with 64-bit Python 3.12, 3.11, 3.10, 3.9, 3.8.6, 3.7, 3.6,5 and
# 2.7.14-18 (and setuptools 28.8.0) but only on macOS 14.1.2 Sonoma,
# 13.0.1 Ventura, 12.0.1 Monterey, macOS 11.0.1-6.1 (10.16) Big Sur,
# 10.15.5-7 Catalina, 10.13 High Sierra and 10.12 Sierra.
# python setup.py sdist --formats=gztar,bztar,zip # ztar,tar
# python setup.py bdist_wheel --universal # XXX
# python setup.py test
# python setup.py install
# <https://Packaging.Python.org/key_projects/#setuptools>
# <https://Packaging.Python.org/distributing/>
# <https://Docs.Python.org/2/distutils/sourcedist.html>
# <https://Docs.Python.org/3.6/distutils/sourcedist.html>
# <https://SetupTools.ReadTheDocs.io/en/latest/setuptools.html#developer-s-guide>
# <https://SetupTools.ReadTheDocs.io/en/latest/setuptools.html#test-build-package-and-run-a-unittest-suite>
# <https://ZetCode.com/articles/packageinpython/>
from setuptools import setup
__all__ = ()
__version__ = '23.12.28'
def _c2(*names):
return ' :: '.join(names)
def _long_description():
with open('README.rst', 'rb') as f:
t = f.read()
if isinstance(t, bytes):
t = t.decode('utf-8')
return t
def _version():
with open('pycocoa/__init__.py') as f:
for t in f.readlines():
if t.startswith('__version__'):
v = t.split('=')[-1].strip().strip('\'"')
return '.'.join(map(str, map(int, v.split('.'))))
_KeyWords=('Apple-Silicon',
'Cocoa', 'cocoa-python', 'cocoavlc', 'ctypes',
'fault', 'faults', 'faulthandler',
'macOS', 'MacOSX',
'Objective-C',
'PyCocoa', 'Python-VLC',
'transparent',
'VLC', 'VLCplayer')
setup(
name='PyCocoa',
packages=['pycocoa'],
description="Basic Python binding to macOS' Objective-C Cocoa",
version=_version(),
author='Jean M. Brouwers',
author_email='[email protected]', # 'mrJean1 at Gmail'
maintainer='Jean M. Brouwers',
maintainer_email='[email protected]', # 'mrJean1 at Gmail'
license='MIT',
keywords=' '.join(_KeyWords),
url='https://GitHub.com/mrJean1/PyCocoa',
long_description=_long_description(),
package_data={'pycocoa': ['LICENSE']},
test_suite='test.testsuite',
zip_safe=False,
classifiers=[
_c2('Development Status', '4 - Beta'),
_c2('Environment', 'MacOS X', 'Cocoa'),
_c2('Intended Audience', 'Developers'),
_c2('License', 'OSI Approved', 'BSD License'),
_c2('License', 'OSI Approved', 'MIT License'),
_c2('Operating System', 'MacOS', 'MacOS X'),
_c2('Programming Language', 'Python'),
_c2('Programming Language', 'Python', '2.7'),
# _c2('Programming Language', 'Python', '3.7'),
_c2('Programming Language', 'Python', '3.8'),
_c2('Programming Language', 'Python', '3.9'),
_c2('Programming Language', 'Python', '3.10'),
_c2('Programming Language', 'Python', '3.11'),
_c2('Programming Language', 'Python', '3.12'),
_c2('Topic', 'Software Development'),
_c2('Topic', 'Software Development', 'User Interfaces'),
_c2('Topic', 'Scientific/Engineering', 'Human Machine Interfaces'),
],
# download_url='https://GitHub.com/mrJean1/PyCocoa',
# entry_points={},
# include_package_data=False,
# install_requires=[],
# namespace_packages=[],
# py_modules=[],
)