Skip to content

add requirements.txt of different python versions #977

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

Merged
merged 4 commits into from
Sep 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/python_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
run: |
python -m venv venv
source venv/bin/activate
pip install -r python/requirements.txt
pip install -r python/requirements-39.txt
- name: Run Linters
run: |
source venv/bin/activate
Expand Down
26 changes: 19 additions & 7 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ df = df.aggregate(

```bash
pip install datafusion
# or
python -m pip install datafusion
```

## How to develop
Expand All @@ -130,14 +132,20 @@ Bootstrap:
```bash
# fetch this repo
git clone git@github.com:apache/arrow-datafusion.git

# change to python directory
cd arrow-datafusion/python

# prepare development environment (used to build wheel / install in development)
python3 -m venv venv
# activate the venv
source venv/bin/activate
pip install -r requirements.txt
# update pip itself if necessary
python -m pip install -U pip
# if python -V gives python 3.7
python -m pip install -r requirements-37.txt
# if python -V gives python 3.8
python -m pip install -r requirements-38.txt
# if python -V gives python 3.9
python -m pip install -r requirements-39.txt
```

Whenever rust code changes (your changes or via `git pull`):
Expand All @@ -154,16 +162,20 @@ To change test dependencies, change the `requirements.in` and run

```bash
# install pip-tools (this can be done only once), also consider running in venv
pip install pip-tools
python -m pip install pip-tools

# change requirements.in and then run
pip-compile --generate-hashes
python -m piptools compile --generate-hashes -o requirements-37.txt
# or run this is you are on python 3.8
python -m piptools compile --generate-hashes -o requirements-38.txt
# or run this is you are on python 3.9
python -m piptools compile --generate-hashes -o requirements-39.txt
```

To update dependencies, run
To update dependencies, run with `-U`

```bash
pip-compile update
python -m piptools compile -U --generate-hashes -o requirements-39.txt
```

More details [here](https://github.com/jazzband/pip-tools)
Loading