-
Notifications
You must be signed in to change notification settings - Fork 572
chore: use uv build to build the package #1159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
43dd4f0
ebbf8a7
98d4b04
7ef0b71
f32d3d5
0fa55a4
97172e5
1eb2f8d
cc6bd5d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,44 +11,37 @@ | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| import io | ||
| import os | ||
|
|
||
| # FIXME: Remove this setup.py completely. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we also have a TODO to remove release.py? I assume all uv-specific steps could be moved to a makefile script instead
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume release.py itself can be removed without major version update. I'm still modifying for it so still haven't ended with comment |
||
| # Then, we should bump the major version since the package will not include setup.py. | ||
|
|
||
| try: | ||
| # Python 3.11+ | ||
| import tomllib | ||
| except Exception: | ||
KazuCocoa marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| # for older versions | ||
| import tomli as tomllib | ||
|
|
||
| with open('pyproject.toml', 'rb') as f: | ||
| pyproject = tomllib.load(f) | ||
| project = pyproject['project'] | ||
|
|
||
| from setuptools import find_packages, setup | ||
|
|
||
| from appium.common.helper import library_version | ||
|
|
||
| setup( | ||
| name='Appium-Python-Client', | ||
| name=project['name'], | ||
| version=library_version(), | ||
| description='Python client for Appium', | ||
| long_description=io.open(os.path.join(os.path.dirname('__file__'), 'README.md'), encoding='utf-8').read(), | ||
mykola-mokhnach marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| long_description_content_type='text/markdown', | ||
| keywords=['appium', 'selenium', 'selenium 4', 'python client', 'mobile automation'], | ||
| author='Isaac Murchie', | ||
| author_email='isaac@saucelabs.com', | ||
| maintainer='Kazuaki Matsuo, Mykola Mokhnach, Mori Atsushi', | ||
| url='http://appium.io/', | ||
| description=project['description'], | ||
| keywords=project['keywords'], | ||
| author=project['authors'][0]['name'], | ||
| author_email=project['authors'][0]['email'], | ||
| maintainer=', '.join([maintainer['name'] for maintainer in project['maintainers']]), | ||
| url=project['urls']['Homepage'], | ||
| package_data={'appium': ['py.typed']}, | ||
| packages=find_packages(include=['appium*']), | ||
| license='Apache 2.0', | ||
| classifiers=[ | ||
| 'Development Status :: 5 - Production/Stable', | ||
| 'Programming Language :: Python', | ||
| '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', | ||
| 'Environment :: Console', | ||
| 'Environment :: MacOS X', | ||
| 'Environment :: Win32 (MS Windows)', | ||
| 'Intended Audience :: Developers', | ||
| 'Intended Audience :: Other Audience', | ||
| 'License :: OSI Approved :: Apache Software License', | ||
| 'Operating System :: OS Independent', | ||
| 'Topic :: Software Development :: Quality Assurance', | ||
| 'Topic :: Software Development :: Testing', | ||
| ], | ||
| install_requires=['selenium ~= 4.26, < 5.0'], | ||
| license=project['license']['text'], | ||
| classifiers=project['classifiers'], | ||
| install_requires=project['dependencies'], | ||
| ) | ||
Uh oh!
There was an error while loading. Please reload this page.