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

Improve Windows support #171

Merged

Conversation

Robert-Krajewski-Helsing
Copy link
Contributor

@Robert-Krajewski-Helsing Robert-Krajewski-Helsing commented Jan 16, 2024

  • Add support for pyenv-win
  • Make subprocess calls for tasks work
  • Avoid using dmypy due to non-zero exit code without any error message

@Robert-Krajewski-Helsing Robert-Krajewski-Helsing changed the title Add Windows support for pyenv Improve Windows support Jan 17, 2024
Copy link
Contributor

@NiklasRosenstein NiklasRosenstein left a comment

Choose a reason for hiding this comment

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

Thanks @Robert-Krajewski-Helsing ! Left a few comments. If you could also give this a changelog entry, this seems good to go!

kraken-build/src/kraken/std/python/tasks/mypy_task.py Outdated Show resolved Hide resolved
@@ -148,6 +148,13 @@ def get_candidates(
if re.match(r"\d+\.\d+\.\d+$", item.name) and item.is_dir():
yield {"path": str(item / "bin" / "python"), "exact_version": item.name}

# pyenv (Windows)
pyenv_versions = (Path(os.getenv('PYENV')) / "versions").expanduser()
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
pyenv_versions = (Path(os.getenv('PYENV')) / "versions").expanduser()
pyenv_versions = (Path(os.getenv("PYENV")) / "versions").expanduser()

Black will complain about this

@NiklasRosenstein NiklasRosenstein merged commit 3d53936 into kraken-build:develop Feb 27, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants