This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_sdist.py
49 lines (42 loc) · 1.51 KB
/
setup_sdist.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
'''
Setup.py only for creating a source distributions.
This file holds all the common setup.py keyword arguments between the source
distribution and the ordinary setup.py for binary distribution. Running this
instead of the default setup.py will create a GitHub-like archive with setup.py
meant for installing via pip.
'''
# pylint: disable=import-error,no-name-in-module
from distutils.core import setup
from os.path import join
with open(join('jnius', '__init__.py')) as fd:
VERSION = [
x for x in fd.readlines()
if x.startswith('__version__')
][0].split("'")[-2]
SETUP_KWARGS = {
'name': 'pyjnius',
'version': VERSION,
'packages': ['jnius'],
'py_modules': ['jnius_config', 'setup'],
'ext_package': 'jnius',
'package_data': {
'jnius': ['src/org/jnius/*'],
},
'classifiers': [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Libraries :: Application Frameworks'
]
}
if __name__ == '__main__':
setup(**SETUP_KWARGS)