Skip to content

Conversation

@shamrin
Copy link
Contributor

@shamrin shamrin commented Oct 23, 2025

Migrate to uv and pyproject.toml.

To upgrade local development environment, install uv and run:

# clean up old environment
rm -rf datacrunch.egg-info/ .venv/ datacrunch_env/

# initialize new environment and install dependencies
uv sync

# run examples
uv run python examples/simple_create_instance.py

Virtual environment changes:

  1. No need to to activate venv in the shell, simply prefix commands with uv run. But, if you must, activating is still possible.
  2. To select virtual environment in VSCode:Python: Select Intepreter -> ./.venv/bin/python

See changelog for more details.

TODO

  • migrate from setup.py / setuptools to pyproject.toml / uv / uv_build
  • uv-centric instructions
  • use uv in all workflows
  • migrate to Ruff
  • upgrade pytest and friends
  • update changelog
  • publish

Later:

@shamrin shamrin force-pushed the uv branch 6 times, most recently from 3071fca to 5fdd85b Compare October 23, 2025 16:42
authentication_service.authenticate()

x = responses.calls[0].request

Copy link
Contributor Author

@shamrin shamrin Oct 24, 2025

Choose a reason for hiding this comment

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

It's not used (pointed out by Ruff linter).

status=202,
match=[
responses.json_params_matcher({
matchers.json_params_matcher({
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixes a deprecation warning.

@shamrin shamrin changed the title uv uv and pyproject.toml Oct 24, 2025
@shamrin shamrin marked this pull request as ready for review October 24, 2025 11:53
@shamrin shamrin requested a review from tamirse October 24, 2025 11:53
@shamrin shamrin force-pushed the uv branch 2 times, most recently from e51c518 to 06face7 Compare October 24, 2025 12:12
Copy link
Contributor Author

@shamrin shamrin Oct 24, 2025

Choose a reason for hiding this comment

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

Module removed to prevent confusion with commonly expected: from datacrunch import __version__; print(__version__).


[tool.ruff]
# TODO(shamrin) fix these errors and stop ignoring them
lint.ignore = ["E721", "E711", "E712", "F401"]
Copy link
Contributor Author

@shamrin shamrin Oct 24, 2025

Choose a reason for hiding this comment

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

See next PR #50

@shamrin shamrin mentioned this pull request Oct 24, 2025
1 task
@shamrin shamrin requested a review from jaakkovarjo October 27, 2025 08:46
Copy link
Contributor

@jaakkovarjo jaakkovarjo left a comment

Choose a reason for hiding this comment

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

Looking good.

@shamrin shamrin merged commit 992c01b into master Oct 27, 2025
5 checks passed
@shamrin shamrin deleted the uv branch October 27, 2025 09:34
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.

3 participants