Skip to content

Commit 03f4518

Browse files
committed
Add pythonnative to PyPi
1 parent 662df58 commit 03f4518

File tree

8 files changed

+37
-2
lines changed

8 files changed

+37
-2
lines changed

libs/pythonnative/.gitignore

Whitespace-only changes.

libs/pythonnative/README.md

Whitespace-only changes.

libs/pythonnative/pythonnative/__init__.py

Whitespace-only changes.

libs/ui_elements/pythonnative.py renamed to libs/pythonnative/pythonnative/pythonnative.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
# Detect the platform
77
import platform
8+
89
system = 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

libs/pythonnative/setup.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
)

libs/pythonnative/tests/__init__.py

Whitespace-only changes.

libs/pythonnative/tests/test_pythonnative.py

Whitespace-only changes.

requirements.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ arrow==1.2.3
22
asgiref==3.7.0
33
binaryornot==0.4.4
44
black==23.3.0
5+
bleach==6.0.0
56
briefcase==0.3.14
67
build==0.10.0
78
certifi==2023.5.7
@@ -15,6 +16,7 @@ cycler==0.11.0
1516
Cython==0.29.35
1617
Django==4.2.1
1718
dmgbuild==1.6.1
19+
docutils==0.20.1
1820
ds-store==1.3.1
1921
exceptiongroup==1.1.1
2022
fonttools==4.39.4
@@ -24,19 +26,23 @@ idna==3.4
2426
importlib-metadata==6.6.0
2527
importlib-resources==5.12.0
2628
iniconfig==2.0.0
29+
jaraco.classes==3.2.3
2730
Jinja2==3.1.2
2831
jinja2-time==0.2.0
32+
keyring==23.13.1
2933
kiwisolver==1.4.4
3034
mac-alias==2.2.2
3135
markdown-it-py==2.2.0
3236
MarkupSafe==2.1.2
3337
matplotlib==3.7.1
3438
mdurl==0.1.2
39+
more-itertools==9.1.0
3540
mypy-extensions==1.0.0
3641
numpy==1.24.3
3742
packaging==23.1
3843
pathspec==0.11.1
3944
Pillow==9.5.0
45+
pkginfo==1.9.6
4046
platformdirs==3.5.1
4147
pluggy==1.0.0
4248
psutil==5.9.5
@@ -48,7 +54,10 @@ pytest==7.3.1
4854
python-dateutil==2.8.2
4955
python-slugify==8.0.1
5056
PyYAML==6.0
57+
readme-renderer==37.3
5158
requests==2.31.0
59+
requests-toolbelt==1.0.0
60+
rfc3986==2.0.0
5261
rich==13.3.5
5362
rubicon-java==0.2.6
5463
rubicon-objc==0.4.6
@@ -62,6 +71,8 @@ toga-core==0.3.1
6271
tomli==2.0.1
6372
tomli_w==1.0.0
6473
travertino==0.2.0
74+
twine==4.0.2
6575
typing_extensions==4.6.3
6676
urllib3==1.26.7
77+
webencodings==0.5.1
6778
zipp==3.15.0

0 commit comments

Comments
 (0)