Skip to content

Commit

Permalink
Remove pipenv and update how requirements are specified
Browse files Browse the repository at this point in the history
  • Loading branch information
iandanforth committed Jan 11, 2019
1 parent 216cfa6 commit 939af6f
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 565 deletions.
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
language: python
sudo: required
dist: xenial
python:
- "3.6"
- "3.7-dev" # 3.7 development branch
- "3.7"
# command to install dependencies
install:
- pip install pipenv
- pipenv install
- pipenv install '-e .'
- pip install .
- pip install -r requirements-dev.txt
# command to run tests
script:
- pytest # or py.test for Python versions 3.5 and below
19 changes: 0 additions & 19 deletions Pipfile

This file was deleted.

511 changes: 0 additions & 511 deletions Pipfile.lock

This file was deleted.

31 changes: 3 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,36 +206,11 @@ Clone this repository
```
git clone [email protected]:iandanforth/pymuscle.git
cd pymuscle
pip install -r requirements-dev.txt
python setup.py develop
pytest
```

Install [pipenv](https://docs.pipenv.org/). (The modern combination of pip and
virtual environments.)

```
pip install pipenv
```

If this throws a permissions error you will need to to run this with 'sudo'

```
sudo pip install pipenv
```

Install dependencies and start a clean python environment

```
pipenv install
pipenv shell
```

To exit this python environment

```
exit
```

or close your terminal and start a new one.

# Performance

PyMuscle aims to be fast. We use Numpy to get fast vector computation. PyMuscle
Expand Down
2 changes: 1 addition & 1 deletion pymuscle/__version__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
PyMuscle Library
"""
VERSION = (0, 1, 0)
VERSION = (0, 1, 1)

__version__ = '.'.join(map(str, VERSION))
1 change: 0 additions & 1 deletion pymuscle/vis/potvin_charts.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import numpy as np
import plotly.graph_objs as go
import colorlover as cl
from numpy import ndarray
from plotly.offline import plot
Expand Down
11 changes: 11 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Why only a requirements-dev.txt?
# https://caremad.io/posts/2013/07/setup-vs-requirement/
# Standard install:
# `pip install pymuscle` # From PyPi
# `pip install .` # Locally
# `python setup.py install` # Same as above
pytest >= 3.6
pylint
coverage
pytest-cov
sphinx-rtd-theme
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@
VERSION = None

# What packages are required for this module to be executed?
# This should be kept in sync with *runtime* packages, but not
# *development* packages.
REQUIRED = [
'numpy',
'plotly'
'plotly',
'colorlover'
]

# The rest you shouldn't have to touch too much :)
Expand Down

0 comments on commit 939af6f

Please sign in to comment.