Skip to content

Conversation

@ki4070ma
Copy link
Collaborator

@ki4070ma ki4070ma commented May 9, 2019

Reorder mobilecommands

It would be easy to check api overview

Refer to https://github.com/appium/ruby_lib_core/blob/fd2cbde5466a144ce8dccfc6cf330b969bcc8fd3/lib/appium_lib_core/common/command/common.rb

Verified no missing api after reorder

➜ python-client git:(order-commands) ✗ grep -v '#' appium/webdriver/mobilecommand.py | grep ' ' | sort > mobilecommand-sort ➜ python-client git:(order-commands) ✗ grep -v '#' mobilecommand-old.py | grep ' ' | sort > mobilecommand-old-sort ➜ python-client git:(order-commands) ✗ diff mobilecommand-sort mobilecommand-old-sort 7c7 < CONTEXTS = 'getContexts' --- > CONTEXTS = 'getContexts', 16c16 < GET_CURRENT_CONTEXT = 'getCurrentContext' --- > GET_CURRENT_CONTEXT = 'getCurrentContext', 

Notice

Have to fix package for constants (e.g. Power.AC_OFF, GsmCallActions) before next release and take care of it after release

@KazuCocoa
Copy link
Member

You should add the package scope in https://github.com/appium/python-client/blob/master/setup.py#L38-L42 to include them in a package

setup.py Outdated
'appium.webdriver.common',
'appium.webdriver.extensions'
],
packages=find_packages(exclude=['test*', 'script*']),
Copy link
Collaborator Author

@ki4070ma ki4070ma May 11, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified in local as below and python setup.py install.

➜ python-client git:(order-commands) ✗ python3 >>> from setuptools import find_packages >>> find_packages(exclude=['test*', 'script*']) ['appium', 'appium.common', 'appium.webdriver', 'appium.webdriver.extensions', 'appium.webdriver.common', 'appium.webdriver.extensions.android'] ➜ python-client git:(order-commands) ✗ python2 >>> from setuptools import find_packages >>> find_packages(exclude=['test*', 'script*']) ['appium', 'appium.common', 'appium.webdriver', 'appium.webdriver.extensions', 'appium.webdriver.common', 'appium.webdriver.extensions.android'] 
author_email='isaac@saucelabs.com',
url='http://appium.io/',
packages=find_packages(exclude=['test*', 'script*']),
packages=find_packages(include=['appium*']),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ki4070ma ki4070ma merged commit bc7eb91 into appium:master May 12, 2019
@ki4070ma ki4070ma deleted the order-commands branch May 12, 2019 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants