Skip to content

Commit

Permalink
Merge pull request #59 from elfosardo/remove_requirements.txt
Browse files Browse the repository at this point in the history
removing requirements to use pipenv only
  • Loading branch information
liadmagen committed Oct 4, 2018
2 parents 2976167 + ce3a878 commit 7f829b6
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 83 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ install:
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
- source activate test-environment
# python setup.py install
- pip install -r requirements.txt
- pip install pipenv
- pipenv install
# command to run the tests:
script:
- py.test --cov=./
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ WORKDIR /webminer
# Copies Everything
COPY . .
RUN CGO_ENABLED=0 GOOS=linux pip install --upgrade pip \
&& pip install -r requirements.txt
CMD [ "flask", "run", "--host=0.0.0.0" ]
&& pip install pipenv \
&& pipenv install
CMD [ "flask", "run", "--host=0.0.0.0" ]
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ gunicorn = "*"
Flask = "*"
Sphinx = "*"
requests = "*"
responses = "*"

[dev-packages]
pylint = "*"
Expand Down
95 changes: 48 additions & 47 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ conda create -q -n web-miner python=3.6 # create the environment

source activate web-miner # activate the environment

pip install -r requirements.txt # install the packages
pip install pipenv

pipenv install
```

and test your installation by running the web server:
Expand All @@ -88,7 +90,9 @@ virtualenv --python3 <targetDirectory> # create the environment

source <targetDirectory>/./bin/activate # activate the virtualenv

pip install -r requirements.txt # install the packages
pip install pipenv

pipenv install

flask run # start server
```
Expand Down
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

6 changes: 0 additions & 6 deletions requirements/dev.txt

This file was deleted.

12 changes: 0 additions & 12 deletions requirements/prod.txt

This file was deleted.

12 changes: 0 additions & 12 deletions requirements/test.txt

This file was deleted.

0 comments on commit 7f829b6

Please sign in to comment.