Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/finder-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ on:
push:
paths:
- 'finder/python/**'
- '.github/workflows/finder-python.yml'
branches: [ main ]
pull_request:
paths:
- 'finder/python/**'
- '.github/workflows/finder-python.yml'
branches: [ main ]

permissions:
Expand All @@ -32,10 +34,17 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint pytest Appium-Python-Client
python -m pip install build pylint pytest twine Appium-Python-Client
- name: Analyzing the code with pylint
run: pylint tests/ appium_flutter_finder/
working-directory: finder/python
- name: Run tests
run: pytest tests/**
working-directory: finder/python
- name: Build distributions
run: |
python -m build
python -m twine check dist/*
ls dist/appium_flutter_finder-*.tar.gz
ls dist/appium_flutter_finder-*.whl
working-directory: finder/python
29 changes: 14 additions & 15 deletions finder/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,38 @@ Supported Python version follows appium python client.
```

2. Install from source, via [PyPi](https://pypi.org). From ['Appium-Flutter-Finder'](https://pypi.org/project/Appium-Flutter-Finder/),
download and unarchive the source tarball (Appium-Flutter-Finder-X.X.tar.gz).
download and unarchive the source tarball (`appium_flutter_finder-X.X.tar.gz`).

```shell
tar -xvf Appium-Flutter-Finder-X.X.tar.gz
cd Appium-Flutter-Finder-X.X
python setup.py install
tar -xvf appium_flutter_finder-X.X.tar.gz
cd appium_flutter_finder-X.X
python -m pip install .
```

3. Install from source via [GitHub](https://github.com/appium/python-client).
3. Install from source via [GitHub](https://github.com/appium/appium-flutter-driver).

```shell
git clone git@github.com:appium/python-client.git
cd python-client
python setup.py install
git clone git@github.com:appium/appium-flutter-driver.git
cd appium-flutter-driver/finder/python
python -m pip install .
```

# How to use
Examples can be found out [here](../../example/python/example.py).

# Release

```
pip install twine
```

```
python setup.py sdist
twine upload dist/Appium-Flutter-Finder-X.X.tar.gz
```shell
python -m pip install --upgrade build twine
python -m build
python -m twine check dist/*
python -m twine upload dist/appium_flutter_finder-*
```

# Changelog
- 0.8.1
- Relax the Appium-Python-Client upper version to accept v6
- Migrate package metadata and builds to `pyproject.toml`
- 0.8.0
- Update the limit of python appium client version
- 0.7.0
Expand Down
48 changes: 48 additions & 0 deletions finder/python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
[build-system]
requires = ["setuptools>=77"]
build-backend = "setuptools.build_meta"

[project]
name = "Appium-Flutter-Finder"
version = "0.8.1"
description = "An extension of finder for Appium flutter"
readme = "README.md"
license = "MIT"
authors = [
{name = "Kazuaki Matsuo", email = "fly.49.89.over@gmail.com"},
]
keywords = [
"appium",
"flutter",
"python client",
"mobile automation",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Environment :: Console",
"Environment :: MacOS X",
"Environment :: Win32 (MS Windows)",
"Intended Audience :: Developers",
"Intended Audience :: Other Audience",
"Operating System :: OS Independent",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
]
dependencies = [
"Appium-Python-Client>=2.0.0,<7",
]

[project.urls]
Homepage = "https://github.com/appium/appium-flutter-driver"

[tool.setuptools.packages.find]
include = ["appium_flutter_finder*"]
42 changes: 0 additions & 42 deletions finder/python/setup.py

This file was deleted.

Loading