Skip to content
This repository was archived by the owner on Nov 24, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[report]
omit =
build_examples.py
runtests.py
setup.py
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: python

# Need +gcc4.8
sudo: required
dist: trusty

# Use container-based infrastructure
# sudo: false

python:
- "3.4"
- "3.5"

install:
- pip install --upgrade pip
- pip install -r requirements.txt
- pip install coveralls
script:
- python ./runtests.py
- coverage run --source=. runtests.py
after_success:
- coveralls
14 changes: 13 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
recursive-include react *
include MANIFEST.in
include LICENSE
include README.md
include CHANGELOG.md
include requirements.txt

graft react
graft tests
graft docs

prune docs/_build

global-exclude __pycache__
global-exclude *.py[co]
global-exclude .git*
global-exclude .DS_Store
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Python-React-V8

[![Build Status](https://img.shields.io/travis/nitely/python-react-v8.svg?style=flat-square)](https://travis-ci.org/nitely/python-react-v8)
[![Coverage Status](https://img.shields.io/coveralls/nitely/python-react-v8.svg?style=flat-square)](https://coveralls.io/r/nitely/python-react-v8)
[![pypi](https://img.shields.io/pypi/v/python-react-v8.svg?style=flat-square)](https://pypi.python.org/pypi/python-react-v8)
[![licence](https://img.shields.io/pypi/l/python-react-v8.svg?style=flat-square)](https://raw.githubusercontent.com/nitely/python-react-v8/master/LICENSE)

Thin wrapper around [v8-cffi](https://github.com/nitely/v8-cffi) to render React views server-side.


Expand Down Expand Up @@ -47,8 +52,8 @@ Read the [docs](http://python-react-v8.readthedocs.org/en/latest/).

## Examples

* [Flux](https://github.com/nitely/python-react-v8/tree/master/example/flux)
* [Simple](https://github.com/nitely/python-react-v8/tree/master/example/simple)
* [Flux](https://github.com/nitely/python-react-v8/tree/master/examples/flux)
* [Simple](https://github.com/nitely/python-react-v8/tree/master/examples/simple)


## License
Expand Down
4 changes: 4 additions & 0 deletions react/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# -*- coding: utf-8 -*-

from .react import React, set_up
from . import utils

__all__ = [
'set_up',
'React',
'utils']

__version__ = '0.1.0'
2 changes: 1 addition & 1 deletion runtests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import unittest
Expand Down
16 changes: 8 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@
import os
from setuptools import setup, find_packages

# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))

README = open(
os.path.join(os.path.dirname(__file__), 'README.md'),
encoding='utf-8').read()
REQUIREMENTS = open(
os.path.join(os.path.dirname(__file__), 'requirements.txt'),
encoding='utf-8').read()

# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
VERSION = __import__('react').__version__
URL = 'https://github.com/nitely/python-react-v8'
README = "For more info, go to: %s" % URL

setup(
name='python-react-v8',
version='0.1.0',
version=VERSION,
description='Thin wrapper around v8-cffi to render React views server-side.',
author='Esteban Castro Borsani',
author_email='[email protected]',
long_description=README,
url='https://github.com/nitely/python-react-v8',
url=URL,
packages=find_packages(exclude=['examples']),
test_suite="runtests.start",
zip_safe=False,
include_package_data=True,
install_requires=REQUIREMENTS,
setup_requires=REQUIREMENTS,
license='MIT License',
Expand Down