2018-10-13 20:59:51 +00:00
|
|
|
'''
|
|
|
|
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.
|
|
|
|
'''
|
2019-09-17 13:08:24 +00:00
|
|
|
from io import open
|
2018-10-13 20:59:51 +00:00
|
|
|
|
|
|
|
# pylint: disable=import-error,no-name-in-module
|
2019-11-24 14:15:20 +00:00
|
|
|
from setuptools import setup
|
2018-10-13 20:59:51 +00:00
|
|
|
from os.path import join
|
|
|
|
|
2019-09-17 13:08:24 +00:00
|
|
|
with open("README.md", encoding='utf8') as f:
|
|
|
|
README = f.read()
|
|
|
|
|
2018-10-13 20:59:51 +00:00
|
|
|
|
|
|
|
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,
|
2019-09-17 13:08:24 +00:00
|
|
|
'url': "https://github.com/kivy/pyjnius",
|
2018-10-13 20:59:51 +00:00
|
|
|
'packages': ['jnius'],
|
2019-11-24 23:47:40 +00:00
|
|
|
'py_modules': ['jnius_config', 'setup', 'setup_sdist', 'jnius.env'],
|
2018-10-13 20:59:51 +00:00
|
|
|
'ext_package': 'jnius',
|
|
|
|
'package_data': {
|
|
|
|
'jnius': ['src/org/jnius/*'],
|
|
|
|
},
|
2019-09-17 13:08:24 +00:00
|
|
|
'long_description_content_type': 'text/markdown',
|
|
|
|
'long_description': README,
|
|
|
|
'author': 'Kivy Team and other contributors',
|
|
|
|
'author_email': 'kivy-dev@googlegroups.com',
|
2019-11-24 14:15:20 +00:00
|
|
|
'description': "A Python module to access Java classes as Python classes using JNI.",
|
2019-09-17 13:08:24 +00:00
|
|
|
'keywords': 'Java JNI Android',
|
2018-10-13 20:59:51 +00:00
|
|
|
'classifiers': [
|
2019-09-17 13:08:24 +00:00
|
|
|
'Development Status :: 5 - Production/Stable',
|
2018-10-13 20:59:51 +00:00
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'License :: OSI Approved :: MIT License',
|
|
|
|
'Natural Language :: English',
|
|
|
|
'Operating System :: MacOS',
|
|
|
|
'Operating System :: Microsoft :: Windows',
|
|
|
|
'Operating System :: POSIX :: Linux',
|
2019-09-17 13:08:24 +00:00
|
|
|
'Operating System :: Android',
|
2018-10-13 20:59:51 +00:00
|
|
|
'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',
|
2019-09-17 13:08:24 +00:00
|
|
|
'Programming Language :: Python :: 3.7',
|
2018-10-13 20:59:51 +00:00
|
|
|
'Topic :: Software Development :: Libraries :: Application Frameworks'
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
setup(**SETUP_KWARGS)
|