-
Notifications
You must be signed in to change notification settings - Fork 307
Begin transitioning to uv #2081
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
base: main
Are you sure you want to change the base?
Conversation
"xmltodict", | ||
] | ||
openstack = [ | ||
"openstacksdk", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After the teuthology-openstack revived
merged the openstacksdk
became required default dependency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to confirm that when using pip install from this branch I've got this:
$ teuthology --version
Traceback (most recent call last):
File "/***/v/teuthology-uv/bin/teuthology", line 3, in <module>
from scripts.run import main
File "/****/teuthology/scripts/run.py", line 33, in <module>
import teuthology.run
File "/****/teuthology/teuthology/run.py", line 8, in <module>
from teuthology import report
File "/****/teuthology/teuthology/report.py", line 12, in <module>
import teuthology.exporter
File "/****/teuthology/teuthology/exporter.py", line 11, in <module>
import teuthology.dispatcher
File "/****/teuthology/teuthology/dispatcher/__init__.py", line 22, in <module>
from teuthology.dispatcher import supervisor
File "/****/teuthology/teuthology/dispatcher/supervisor.py", line 11, in <module>
from teuthology import exporter, dispatcher, kill, report, safepath
File "/****/teuthology/teuthology/kill.py", line 17, in <module>
from teuthology.lock import ops as lock_ops
File "/****/teuthology/teuthology/lock/ops.py", line 11, in <module>
import teuthology.orchestra.remote
File "/****/teuthology/teuthology/orchestra/remote.py", line 6, in <module>
import teuthology.lock.util
File "/****/teuthology/teuthology/lock/util.py", line 6, in <module>
import teuthology.provision.downburst
File "/****/teuthology/teuthology/provision/__init__.py", line 11, in <module>
from teuthology.provision import openstack
File "/****/teuthology/teuthology/provision/openstack.py", line 14, in <module>
from teuthology.openstack import OpenStack, OpenStackInstance
File "/****/teuthology/teuthology/openstack/__init__.py", line 48, in <module>
from openstack import connection as openstack_connection
ModuleNotFoundError: No module named 'openstack'
Instead of the commit "scripts: Delay imports for performance" within this PR or as follow up PR, I would suggest to drop scripts by moving the argument parsing code to corresponding module and adjusting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks tasty, but several comments needs to be addressed, like openstacksdk dependency and some bootstrap bugs fixes.
Signed-off-by: Zack Cerza <[email protected]>
Signed-off-by: Zack Cerza <[email protected]>
Signed-off-by: Zack Cerza <[email protected]>
To a version that support python 3.13 Signed-off-by: Zack Cerza <[email protected]>
Much of this is simply removing things we don't have to be doing now that we're using uv. It also consolidates the different sections for RPM-based distros. Signed-off-by: Zack Cerza <[email protected]>
Signed-off-by: Zack Cerza <[email protected]>
Signed-off-by: Zack Cerza <[email protected]>
Signed-off-by: Zack Cerza <[email protected]>
For now, use a very narrow ruleset. We should expand to use more later. Signed-off-by: Zack Cerza <[email protected]>
Signed-off-by: Zack Cerza <[email protected]>
Signed-off-by: Zack Cerza <[email protected]>
Signed-off-by: Kyr Shatskyy <[email protected]>
Because the teuthology code is building in container after copying source code from local directory, but no corresponding git repo copied, the setuptools-scm cannot determine teuthology version. So in order to produce the package we just provide dummy version 0.0.0 using environment variable: SETUPTOOLS_SCM_PRETEND_VERSION_FOR_TEUTHOLOGY Signed-off-by: Kyr Shatskyy <[email protected]>
Signed-off-by: Kyr Shatskyy <[email protected]>
And also drop an unnecessary tr invocation. Signed-off-by: Zack Cerza <[email protected]>
Interesting idea - let's save that for a follow-up |
No description provided.