This repository has been archived by the owner on Aug 15, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
53 lines (45 loc) · 1.6 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
#/usr/bin/env python
import io
import re
from setuptools import setup, find_packages
import sys
if sys.version_info[:3] < (3, 4):
raise SystemExit("Toga requires Python 3.4+.")
with io.open('./toga_iOS/__init__.py', encoding='utf8') as version_file:
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file.read(), re.M)
if version_match:
version = version_match.group(1)
else:
raise RuntimeError("Unable to find version string.")
with io.open('README.rst', encoding='utf8') as readme:
long_description = readme.read()
setup(
name='toga-iOS',
version=version,
description='An iOS backend for the Toga widget toolkit.',
long_description=long_description,
author='Russell Keith-Magee',
author_email='[email protected]',
url='http://pybee.org/toga',
packages=find_packages(exclude=['tests']),
install_requires=[
'rubicon-objc>=0.2.2',
'toga-core>=%s' % version,
],
license='New BSD',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Environment :: Handhelds/PDA\'s',
'Operating System :: iOS ',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Software Development',
'Topic :: Software Development :: User Interfaces',
'Topic :: Software Development :: Widget Sets',
],
test_suite='tests',
)