Giter Site home page Giter Site logo

moijes12 / ion-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amazon-ion/ion-python

0.0 2.0 0.0 217 KB

A Python Implementation of Amazon Ion.

Home Page: http://amznlabs.github.io/ion-docs/

License: Apache License 2.0

Python 100.00%

ion-python's Introduction

Amazon Ion Python

An implementation of Amazon Ion for Python.

Build Status

This package is designed to work with Python 2.6+ and Python 3.3+

Development

It is recommended to use virtualenv to create a clean environment to build/test Ion Python.

$ virtualenv venv
...
$ . venv/bin/activate
$ pip install -r requirements.txt
$ pip install -e .

You can also run the tests through setup.py or py.test directly.

$ python setup.py test

Tox Setup

In order to verify that all platforms we support work with Ion Python, we use a combination of tox with pyenv.

Install relevant versions of Python:

$ for V in 2.6.9 2.7.12 3.3.6 3.4.5 3.5.2 pypy-5.3.1; do pyenv install $V; done

Note that on Mac OS X, you may need to change the CFLAGS:

$ for V in 2.6.9 2.7.12 3.3.6 3.4.5 3.5.2 pypy-5.3.1; do
    CFLAGS="-I$(xcrun --show-sdk-path)/usr/include" pyenv install $V; done

Once you have these installations, add them as a local pyenv configuration

$ pyenv local 2.6.9 2.7.12 3.3.6 3.4.5 3.5.2 pypy-5.3.1

At the time of this writing, on Mac OS X, you may have problems with pyenv and pypy. On this platform, it is probably easier to have pypy not managed by pyenv and install and use it directly from brew.

Assuming you have pyenv properly set up (making sure pyenv init is evaluated into your shell), you can now run tox:

# Run tox for all versions of python which executes py.test.
$ tox

# Run tox for just Python 2.7 and 3.5.
$ tox -e py27,py35

# Run tox for a specific version and run py.test with high verbosity
$ tox -e py27 -- py.test -vv

# Run tox for a specific version and just the virtual env REPL.
$ tox -e py27 -- python

TODO

The following build, deployment, or release tasks are required:

  • Add support for code coverage reporting.
  • Provide proper documentation generation via Sphinx.
    • Add good surrounding documentation around setup/development/contribution/getting started.
    • Publish documentation to Read the Docs.
  • Consider using something like PyPy.js to build an interactive shell for playing with Ion python and provide a client-side Ion playground.

ion-python's People

Contributors

almann avatar mijamo911 avatar tgregg avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.