Skip to content

Commit 0f549c3

Browse files
authored
chore: Remove setup.py (appium#1218)
BREAKING CHANGE: remove legacy setup.py
1 parent 9034ad6 commit 0f549c3

4 files changed

Lines changed: 4 additions & 59 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ download and unarchive the source tarball (Appium-Python-Client-X.X.tar.gz).
2626
```shell
2727
tar -xvf Appium-Python-Client-X.X.tar.gz
2828
cd Appium-Python-Client-X.X
29-
python setup.py install
29+
pip install .
3030
```
3131

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

3434
```shell
3535
git clone git@github.com:appium/python-client.git
3636
cd python-client
37-
python setup.py install
37+
pip install .
3838
```
3939

4040
## Compatibility Matrix

appium/version.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from importlib import metadata
15+
from importlib.metadata import version as _metadata_version
1616

17-
18-
def _get_version():
19-
return metadata.version('Appium-Python-Client')
20-
21-
22-
version = _get_version()
17+
version = _metadata_version('Appium-Python-Client')

pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,6 @@ dev = [
6464
requires = ["hatchling"]
6565
build-backend = "hatchling.build"
6666

67-
[tool.hatch.version]
68-
source = "regex"
69-
path = "appium/version.py"
70-
pattern = "(?P<version>\\d+\\.\\d+\\.\\d+)"
71-
7267
[tool.hatch.build]
7368
exclude = [
7469
"test/",

setup.py

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)