Skip to content

Commit

Permalink
Add requirements.txt (#106)
Browse files Browse the repository at this point in the history
* feat: add requirements and cache in actions
fix: 10s is not enough in ACTION

* fix: drop cache

* fix: delete useless info in README

Co-authored-by: laura-ding <48548375+laura-ding@users.noreply.github.com>
  • Loading branch information
yihong0618 and laura-ding authored May 20, 2021
1 parent c1c6882 commit e3e6e7a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 9 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/run_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install django-import-export future futures six gevent prettytable pytest
pip install -r requirements-dev.txt
- name: Test with pytest
run: |
mkdir tmp
Expand All @@ -32,9 +32,8 @@ jobs:
pushd nebula-docker-compose/
cp ../../tests/docker-compose.yaml ./
docker-compose up -d
sleep 10
sleep 60
popd
popd
cd tests
pytest -s -v
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ sudo python3 setup.py install

When your environment cannot access `pypi`, you need to install the following packages manually.

- django-import-export
- future
- six
- httplib2
- futures # python2.x is needed
```
pip install -r requirements.txt
```
dev version
```
pip install -r requirements.txt
```

### Option two: using pip

Expand Down Expand Up @@ -143,4 +145,3 @@ while resp.has_next():
| 2.0.0.post1 | 2.0.0beta |
| 2.0.0rc1 | 2.0.0-rc1 |
| 2.0.0 | >= 2.0.0 |

8 changes: 8 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
django-import-export
future
six
httplib2
futures; python_version < '3.0'
gevent
prettytable
pytest
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
django-import-export
future
six
httplib2
futures; python_version < '3.0'

0 comments on commit e3e6e7a

Please sign in to comment.