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

Developing on Mac (and potentially windows) #1163

Open
programatt opened this issue Jan 20, 2022 · 0 comments
Open

Developing on Mac (and potentially windows) #1163

programatt opened this issue Jan 20, 2022 · 0 comments

Comments

@programatt
Copy link

In order to reduce the friction to developing on POCS on OSX, I have figured out how to install the dependencies for POCS on a mac in a reproducible and isolated way and how to modify the test setup to work.

Describe the solution you'd like
Setup Steps on a Mac

# Create a virtualenv
python3 -m venv <path/to/venv>
source <path/to/venv>/bin/activate
# wherever the root of the repo is on your machine
cd $POCS_HOME 
pip install .[google,focuser,testing,sensors]

Combined with a change to conftest.py to address multiprocessing using spawn on windows and osx instead of fork by default
Should allow you to run pytest as usual.

Describe alternatives you've considered
Since we are moving away from docker, this is the 2nd best option in my opinion to make it really easy for contributors to be able to do the common pattern with open source projects. Which is to clone a repo, make a change, run tests to validate the change is working as expected, create a PR. Without having to jump through hoops or have intimate knowledge of how the project works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant