File tree Expand file tree Collapse file tree 8 files changed +37
-2
lines changed
Expand file tree Collapse file tree 8 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 55
66# Detect the platform
77import platform
8+
89system = platform .system ()
910
1011
@@ -13,7 +14,7 @@ class PlatformNotDetectedError(Exception):
1314
1415
1516# Depending on the system, import appropriate classes
16- if system == ' iOS' :
17+ if system == " iOS" :
1718 from rubicon .objc import ObjCClass
1819
1920 # Map native iOS classes to PythonNative classes
@@ -25,7 +26,7 @@ class Label:
2526
2627 # Add more mappings here as required...
2728
28- elif system == ' Android' :
29+ elif system == " Android" :
2930 from java import jclass
3031
3132 # Map native Android classes to PythonNative classes
Original file line number Diff line number Diff line change 1+ from setuptools import setup , find_packages
2+
3+ setup (
4+ name = "pythonnative" ,
5+ version = "0.0.1" ,
6+ author = "Owen Carey" ,
7+ author_email = "pythonnative@gmail.com" ,
8+ description = "A cross-platform UI toolkit for Python" ,
9+ long_description = open ("README.md" ).read (),
10+ long_description_content_type = "text/markdown" ,
11+ url = "https://pythonnative.com" ,
12+ packages = find_packages (),
13+ classifiers = [
14+ "Programming Language :: Python :: 3" ,
15+ "License :: OSI Approved :: MIT License" ,
16+ "Operating System :: OS Independent" ,
17+ ],
18+ python_requires = ">=3.6" ,
19+ install_requires = [
20+ "rubicon-objc>=0.4.6,<0.5.0" ,
21+ # add more requirements here as necessary
22+ ],
23+ )
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ arrow==1.2.3
22asgiref == 3.7.0
33binaryornot == 0.4.4
44black == 23.3.0
5+ bleach == 6.0.0
56briefcase == 0.3.14
67build == 0.10.0
78certifi == 2023.5.7
@@ -15,6 +16,7 @@ cycler==0.11.0
1516Cython == 0.29.35
1617Django == 4.2.1
1718dmgbuild == 1.6.1
19+ docutils == 0.20.1
1820ds-store == 1.3.1
1921exceptiongroup == 1.1.1
2022fonttools == 4.39.4
@@ -24,19 +26,23 @@ idna==3.4
2426importlib-metadata == 6.6.0
2527importlib-resources == 5.12.0
2628iniconfig == 2.0.0
29+ jaraco.classes == 3.2.3
2730Jinja2 == 3.1.2
2831jinja2-time == 0.2.0
32+ keyring == 23.13.1
2933kiwisolver == 1.4.4
3034mac-alias == 2.2.2
3135markdown-it-py == 2.2.0
3236MarkupSafe == 2.1.2
3337matplotlib == 3.7.1
3438mdurl == 0.1.2
39+ more-itertools == 9.1.0
3540mypy-extensions == 1.0.0
3641numpy == 1.24.3
3742packaging == 23.1
3843pathspec == 0.11.1
3944Pillow == 9.5.0
45+ pkginfo == 1.9.6
4046platformdirs == 3.5.1
4147pluggy == 1.0.0
4248psutil == 5.9.5
@@ -48,7 +54,10 @@ pytest==7.3.1
4854python-dateutil == 2.8.2
4955python-slugify == 8.0.1
5056PyYAML == 6.0
57+ readme-renderer == 37.3
5158requests == 2.31.0
59+ requests-toolbelt == 1.0.0
60+ rfc3986 == 2.0.0
5261rich == 13.3.5
5362rubicon-java == 0.2.6
5463rubicon-objc == 0.4.6
@@ -62,6 +71,8 @@ toga-core==0.3.1
6271tomli == 2.0.1
6372tomli_w == 1.0.0
6473travertino == 0.2.0
74+ twine == 4.0.2
6575typing_extensions == 4.6.3
6676urllib3 == 1.26.7
77+ webencodings == 0.5.1
6778zipp == 3.15.0
You can’t perform that action at this time.
0 commit comments