Skip to content

Update requirements_dev.txt to improve contributor workflow #1766

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

Closed
wants to merge 4 commits into from

Conversation

juliusgeo
Copy link
Contributor

@juliusgeo juliusgeo commented May 4, 2023

This change makes it so that you can get from cloning the repo to running the tests in only 3 commands:

pip install -r requirements_dev.txt 
python setup.py develop --tiledb=<tile-db path>
python -m pytest tiledb

The version numbers that I put in are just the latest version, as I am not sure what the correct minimum version is.

@@ -44,5 +51,5 @@ Thanks for your interest in TileDB-Py. The notes below give some pointers for fi

- Make changes locally, then rebuild with `python setup.py develop [--tiledb=<>]`
- Make sure to run `pytest` to verify changes against tests (add new tests where applicable).
- Execute the tests as `pytest tiledb` from the top-level directory or `pytest` in the `tiledb/` directory.
- Execute the tests as `python -m pytest tiledb` from the top-level directory or `python -m pytest` in the `tiledb/` directory.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you don't do python -m you can potentially get path conflict issues.

@johnkerl
Copy link
Contributor

johnkerl commented May 4, 2023

Can we get this stanza into a dev section in README.md?

pip install -r requirements_dev.txt 
python setup.py develop --tiledb=<tile-db path>
python -m pytest tiledb

@kounelisagis
Copy link
Member

Should be 2 commands after #1988:

pip install -e '.[test]' -C skbuild.cmake.define.TILEDB_PATH=/home/tiledb/dist
python -m pytest tiledb

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

Successfully merging this pull request may close these issues.

3 participants