Commit 1fb99a8d authored by Petrus J.v.Rensburg's avatar Petrus J.v.Rensburg

Rename dev requirements file. Add Sphinx & Nose.

parent ef65fcb9
...@@ -19,7 +19,7 @@ before_script: ...@@ -19,7 +19,7 @@ before_script:
install: install:
- pip install "wtforms<$WTFORMS_VERSION.99" - pip install "wtforms<$WTFORMS_VERSION.99"
- pip install -r dev-requirements.txt - pip install -r requirements-dev.txt
script: nosetests flask_admin/tests script: nosetests flask_admin/tests
...@@ -54,13 +54,12 @@ Flask-Admin is extensively documented, you can find all of the documentation at ...@@ -54,13 +54,12 @@ Flask-Admin is extensively documented, you can find all of the documentation at
The docs are auto-generated from the *.rst* files in the */doc* folder. So if you come across any errors, or The docs are auto-generated from the *.rst* files in the */doc* folder. So if you come across any errors, or
if you think of anything else that should be included, then please make the changes and submit them as a *pull-request*. if you think of anything else that should be included, then please make the changes and submit them as a *pull-request*.
To build the docs in your local environment:: To build the docs in your local environment, from the project directory::
sudo pip install sphinx pip install -r requirements-dev.txt
cd flask-admin
sudo make html sudo make html
Or, if you want to preview any *.rst* snippets that you may want to contribute, go to `http://rst.ninjs.org/ <http://rst.ninjs.org/>`_. And if you want to preview any *.rst* snippets that you may want to contribute, go to `http://rst.ninjs.org/ <http://rst.ninjs.org/>`_.
Installation Installation
------------ ------------
...@@ -78,14 +77,9 @@ Tests ...@@ -78,14 +77,9 @@ Tests
----- -----
Test are run with *nose*. If you are not familiar with this package you can get some more info from `their website <http://nose.readthedocs.org/>`_. Test are run with *nose*. If you are not familiar with this package you can get some more info from `their website <http://nose.readthedocs.org/>`_.
To run the tests, simply:: To run the tests, from the project directory, simply::
pip install nose
pip install -r dev-requirements.txt
and then:: pip install -r requirements-dev.txt
cd flask-admin
nosetests nosetests
You should see output similar to:: You should see output similar to::
......
...@@ -10,3 +10,5 @@ flask-babelex ...@@ -10,3 +10,5 @@ flask-babelex
shapely shapely
geoalchemy2 geoalchemy2
psycopg2 psycopg2
nose
sphinx
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment