things formatted like this are terminal commands
Check if you have poetry:
which poetry
If nothing is printed, you don't have it.
#install poetry:
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
Check if you have virtualenv:
which virtualenv
If nothing is printed, you don't have it.
#install virtualenv
pip install virtualenv
pip install virtualenvwrapper
You'll need to log out and log back in (or add these to your path) to use virtualenv.
Virtualenv setup also requires some extra work. First, find out where the virtualenvwrapper.sh file is:
which virtualenvwrapper.sh
You'll use that path below, so copy it.
Add these lines at the bottom of the file ~/.bashrc
(you can create the file if it doesn't exist yet).
#using virtualenvwrapper workon command
export WORKON_HOME=~/Library/Caches/pypoetry/virtualenvs
source /INSERT/PATH/TO/virtualenvwrapper.sh
Then, to put these changes into effect immediately (instead of next time you log in) run
source ~/.bashrc
git clone [copy url from website]
This will copy the contents of the repository from the web to whatever directory you are currently in.
cd opensoundscape
git checkout develop
poetry install
(this will take a while as it sets up the environment with all packages)
lsvirtualenv -b
Copy the name of the poetry environment, which is the one with a bunch of random characters. This is the name of the environment that accompanies the package development.
first activate the environment (it has a pre-commit package installed):
workon [poetry environment name]
then run this command to set up pre-commit black hooks
pre-commit install
If necessary, you can use the -f
flag to clear any customized hooks you may have added
poetry add ipykernel
workon [name of poetry environment]
python -m ipykernel install --user --name=[name of poetry environment]
git checkout -b feature_branch_name
git push -u origin feature_branch_name
Use the github web-ui to create a Merge Request