Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
added tests and coverage.
Browse files Browse the repository at this point in the history
added new badges.
  • Loading branch information
mostafa committed Apr 25, 2017
1 parent c06f3a5 commit d1b3c52
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@ install:
- pip install flask
- pip install flask_classful
- pip install pytest-flask
- pip install pytest-runner
- pip install coveralls
- python setup.py -q install

script:
- jdk_switcher use oraclejdk8
- py.test
- coverage run --source=grest setup.py test

after_success:
coveralls
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
Build REST APIs with Neo4j and Flask, as quickly as possible!

[![PyPI version](https://badge.fury.io/py/pygrest.svg)](https://badge.fury.io/py/pygrest)
[![GPL Licence](https://badges.frapsoft.com/os/gpl/gpl.svg?v=103)](https://opensource.org/licenses/GPL-3.0/)
[![GitHub license](https://img.shields.io/badge/license-GPLv3-blue.svg)](https://raw.githubusercontent.com/mostafa/grest/master/LICENSE)
[![Travis](https://img.shields.io/travis/rust-lang/rust.svg)](https://github.com/mostafa/grest)
[![Coveralls](https://img.shields.io/coveralls/jekyll/jekyll.svg)](https://github.com/mostafa/grest)
[![Join the chat at https://gitter.im/pygrest/Lobby](https://badges.gitter.im/pygrest/Lobby.svg)](https://gitter.im/pygrest/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

gREST (Graph-based REST API Framework) is a RESTful API development framework on top of Python, Flask, Neo4j and Neomodel. Its primary purpose is to ease development of RESTful APIs with little effort and miminum amount of code.
Expand Down
19 changes: 11 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

# Reading package version (the same way the sqlalchemy does)
with open(join(dirname(__file__), 'grest', '__init__.py')) as v_file:
package_version = re.compile(r".*__version__ = '(.*?)'", re.S).match(v_file.read()).group(1)
package_version = re.compile(
r".*__version__ = '(.*?)'", re.S).match(v_file.read()).group(1)


setup(name="pygrest",
Expand Down Expand Up @@ -37,13 +38,15 @@
"requests"
],
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Framework :: Flask",
"Topic :: Software Development :: Libraries",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7"
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Framework :: Flask",
"Topic :: Software Development :: Libraries",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7"
],
# keywords='',
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-flask'],
zip_safe=False)

0 comments on commit d1b3c52

Please sign in to comment.