Skip to content
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

uv run foo.pyc should run python foo.pyc #6635

Closed
charliermarsh opened this issue Aug 26, 2024 · 1 comment
Closed

uv run foo.pyc should run python foo.pyc #6635

charliermarsh opened this issue Aug 26, 2024 · 1 comment
Labels
cli Related to the command line interface good first issue Good for newcomers

Comments

@charliermarsh
Copy link
Member

Just like uv run foo.py runs python foo.py.

See: #6360.

@charliermarsh charliermarsh added cli Related to the command line interface good first issue Good for newcomers labels Aug 26, 2024
charliermarsh pushed a commit that referenced this issue Aug 30, 2024
## Summary
- The change relates to #6635 is to include compiled python files (.pyc)
in the uv run command.
- After this change `uv run foo.pyc` should spawn `python foo.pyc`.


## Test Plan
- There is a test that uses TestContext to compile and run a simple
python file that prints "Hello World".
- I built the project locally and tried the same with a simple python
file that I had compiled.
@charliermarsh
Copy link
Member Author

Closed by #6886.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to the command line interface good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants
@charliermarsh and others