Skip to content

Commit

Permalink
virtual env?
Browse files Browse the repository at this point in the history
  • Loading branch information
jkobject committed Oct 8, 2024
1 parent db0ced6 commit d1f037d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install project
run: make install
run: make virtualenv
continue-on-error: false
- name: Run linter
run: make lint
Expand Down
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ show: ## Show the current environment.

.PHONY: install
install: ## Install the project in dev mode.
@if [ "$(USING_POETRY)" ]; then poetry install && exit; fi
@echo "Don't forget to run 'make virtualenv' if you got errors."
$(ENV_PREFIX)uv sync --all-extras --dev

Expand Down Expand Up @@ -67,10 +66,8 @@ virtualenv: ## Create a virtual environment.
@if [ "$(USING_POETRY)" ]; then poetry install && exit; fi
@echo "creating virtualenv ..."
@rm -rf .venv
@python3 -m venv .venv
@./.venv/bin/pip install -U pip
@./.venv/bin/pip install -e .[test]
@echo
@uv venv
@make install
@echo "!!! Please run 'source .venv/bin/activate' to enable the environment !!!"

.PHONY: release
Expand Down

0 comments on commit d1f037d

Please sign in to comment.