Skip to content

Commit 30cf1bc

Browse files
[py] Moved Rust binary settings to pyproject.toml from setup.py (SeleniumHQ#14837)
* Moved Rust binary settings to pyproject.toml from setup.py * Update Rakefile to remove py/setup.py --------- Co-authored-by: Viet Nguyen Duc <[email protected]>
1 parent 875f0a6 commit 30cf1bc

File tree

4 files changed

+4
-43
lines changed

4 files changed

+4
-43
lines changed

Rakefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,7 @@ namespace :py do
585585
nightly = ".#{Time.now.strftime('%Y%m%d%H%M')}"
586586
new_version = updated_version(old_version, arguments[:version], nightly)
587587

588-
['py/setup.py',
589-
'py/pyproject.toml',
588+
['py/pyproject.toml',
590589
'py/BUILD.bazel',
591590
'py/selenium/__init__.py',
592591
'py/selenium/webdriver/__init__.py',
@@ -1048,7 +1047,6 @@ namespace :all do
10481047
'py/selenium/webdriver/__init__.py',
10491048
'py/selenium/__init__.py',
10501049
'py/BUILD.bazel',
1051-
'py/setup.py',
10521050
'rb/lib/selenium/webdriver/version.rb',
10531051
'rb/Gemfile.lock'])
10541052

@@ -1110,7 +1108,6 @@ namespace :all do
11101108
'py/selenium/webdriver/__init__.py',
11111109
'py/BUILD.bazel',
11121110
'py/CHANGES',
1113-
'py/setup.py',
11141111
'rb/lib/selenium/webdriver/version.rb',
11151112
'rb/CHANGES',
11161113
'rb/Gemfile.lock',

py/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ pkg_files(
231231
"CHANGES",
232232
"README.rst",
233233
"pyproject.toml",
234-
"setup.py",
235234
":license",
236235
":selenium-pkg",
237236
":selenium-pkginfo",

py/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ exclude = ["test*"]
4444
namespaces = false
4545
# include-package-data is `true` by default in pyproject.toml
4646

47+
[[tool.setuptools-rust.bins]]
48+
target = "selenium.webdriver.common.selenium-manager"
49+
4750
[project.urls]
4851
Repository = "https://github.com/SeleniumHQ/selenium/"
4952
BugTracker = "https://github.com/SeleniumHQ/selenium/issues"

py/setup.py

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

0 commit comments

Comments
 (0)