Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
move create env to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Nov 10, 2023
1 parent 20499a4 commit 6b78024
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 30 deletions.
17 changes: 15 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,19 @@ clean-test: ## remove test and coverage artifacts
rm -fr htmlcov/
rm -fr .pytest_cache

env:
mkdir -p .env
# Create a virtual environment
python3 -m venv .env
# Activate the virtual environment
source .env/$name/bin/activate
# Create a temporary requirements file
# Read the contents of the file into a variable and write it to a file.
echo $(cat requirements.txt) > requirements.tmp
# Install the required dependencies from the temporary file
pip install -r requirements.tmp
rm requirements.tmp

test: ## run tests quickly with the default Python
pytest

Expand Down Expand Up @@ -76,5 +89,5 @@ dist: clean ## builds source and wheel package
python setup.py bdist_wheel
ls -l dist

install: clean ## install the package to the active Python's site-packages
python setup.py install
install: clean env ## install the package to the active Python's site-packages
pip install -e .[dev]
28 changes: 0 additions & 28 deletions setup_env.sh

This file was deleted.

0 comments on commit 6b78024

Please sign in to comment.