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

Added support for the uv package and project manager #408

Merged
merged 13 commits into from
Mar 5, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Minor simplifications to harness and virtualenv + Makefile
  • Loading branch information
GatlenCulp committed Dec 29, 2024
commit ebe2d4c78b81bcff918fefb8cc1b3449bd865886
14 changes: 3 additions & 11 deletions tests/uv_harness.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,11 @@ make create_environment

# Check if running on Windows and use appropriate activate path
if [[ "$OSTYPE" == "msys"* || "$OSTYPE" == "cygwin"* ]]; then
VENV_PATH=".venv/Scripts/activate"
source ".venv/Scripts/activate"
else
VENV_PATH=".venv/bin/activate"
source ".venv/bin/activate"
fi

make requirements

# Verify venv exists before attempting to activate
if [ ! -f "$VENV_PATH" ]; then
echo "Virtual environment activation script not found at $VENV_PATH"
exit 1
fi

# Activate the virtual environment
source "$VENV_PATH"

run_tests $PROJECT_NAME $MODULE_NAME
3 changes: 1 addition & 2 deletions tests/virtualenv_harness.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,4 @@ fi

make requirements

run_tests $PROJECT_NAME $MODULE_NAME

run_tests $PROJECT_NAME $MODULE_NAME
1 change: 1 addition & 0 deletions {{ cookiecutter.repo_name }}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ create_environment:
@echo ">>> New pipenv created. Activate with:\npipenv shell"
{% elif cookiecutter.environment_manager == 'uv' -%}
uv venv
@echo ">>> New uv virtual environment created. Activate with:\nsource ./.venv/source/activate"
{% endif %}
{% endif %}

Expand Down