Skip to content

Commit

Permalink
add documentation for testing against release candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-J-Ward committed Oct 1, 2024
1 parent 2c04ae2 commit 5e048b0
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions dev/release/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,29 @@ Send the email to start the vote.

## Verifying a Release

Install the release from testpypi:
Running the unit tests against a testpypi release candidate:

```bash
pip install --extra-index-url https://test.pypi.org/simple/ datafusion==0.7.0
# clone a fresh repo
git clone https://github.com/apache/datafusion-python.git
cd datafusion-python

# checkout the release commit
git fetch --tags
git checkout 40.0.0-rc1

# create the env
python3 -m venv venv
source venv/bin/activate

# install release candidate
pip install --extra-index-url https://test.pypi.org/simple/ datafusion==40.0.0

# only dep needed to run tests is pytest
pip install pytest

# run the tests
pytest --import-mode=importlib python/tests
```

Try running one of the examples from the top-level README, or write some custom Python code to query some available
Expand Down

0 comments on commit 5e048b0

Please sign in to comment.