py3minepi / py3minepi-legacy

Original attempt to port Minecraft Pi to Python 3
https://github.com/py3minepi/py3minepi
Other
25 stars 7 forks source link

README

.. image:: https://secure.travis-ci.org/py3minepi/py3minepi.png?branch=master :alt: Build status :target: https://travis-ci.org/py3minepi/py3minepi

.. image:: https://coveralls.io/repos/py3minepi/py3minepi/badge.png?branch=master :alt: Coverage :target: https://coveralls.io/r/py3minepi/py3minepi

.. image:: https://landscape.io/github/py3minepi/py3minepi/master/landscape.png :alt: Code Health :target: https://landscape.io/github/py3minepi/py3minepi

Minecraft: Pi Edition <http://pi.minecraft.net/>__ is awesome.

However it uses Python 2. We're moving it to Python 3 (without any official approval) and offering it for download here.

We hope this makes people's lives easier.

Goals

Coding Guidelines

All code (except legacy API compatibility code) should adhere to PEP8 <http://legacy.python.org/dev/peps/pep-0008/>_ with some exceptions:

You can check the code style for example by using flake8 <https://pypi.python.org/pypi/flake8>_.

Some other things you should keep in mind:

For backwards compatibility with Python 2, please insert this header in every Python module::

# -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import, unicode_literals

Testing

Testing for py3minepi is set up using Tox <http://tox.readthedocs.org/> and pytest <http://pytest.org/>. Violations of the coding guidelines <#coding-guidelines>__ are counted as test fails.

The only requirement to run the tests is tox::

$ pip install tox

Running tests

To run the tests on all supported Python versions, simply issue ::

$ tox

To test only a single Python version, use the -e parameter::

$ tox -e py32

To see the test coverage, use the cov testenv (which uses Python 3.2 by default)::

$ tox -e cov

All Python versions you need to test on need to be installed of course.

Links