Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

Commit

Permalink
py3 support is fixed, test infrastructure is added
Browse files Browse the repository at this point in the history
* fix py3 support
* add tox
* add editorconfig
* add venv and ide ignore
  • Loading branch information
akhomchenko committed Aug 2, 2015
1 parent 97a17a1 commit db62539
Show file tree
Hide file tree
Showing 10 changed files with 57 additions and 9 deletions.
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.py]
indent_style = space
indent_size = 4

[*.md]
trim_trailing_whitespace = false
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,9 @@ nosetests.xml
.mr.developer.cfg
.project
.pydevproject

# Virtual env
venv

# IDE
.idea
13 changes: 7 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "pypy"
- "3.3"
# command to install dependencies
install: "pip install -r requirements.txt"
# command to run tests
- "3.4"

install:
- pip install tox

script:
- python setup.py install
- python setup.py test
- tox -e $(echo py$TRAVIS_PYTHON_VERSION)
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include README.md
3 changes: 3 additions & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tox
pytest
-e .
2 changes: 1 addition & 1 deletion moves/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
from _moves import *
from ._moves import *
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.

9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,22 @@
url='https://github.com/lysol/moves',
download_url='http://github.com/lysol/moves/archive/v0.1.tar.gz',
packages=['moves'],
install_requires=open('requirements.txt').read(),
install_requires=[
'requests>=0.11'
],
long_description=open('README.md').read(),
include_package_data=True,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Software Development :: Libraries :: Python Modules',
],
license='MIT'
Expand Down
4 changes: 4 additions & 0 deletions tests/test_moves.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# coding: utf-8


import moves # TODO: write tests, this one checks compatibility
13 changes: 13 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[tox]
envlist = py26, py27, pypy, py33, py34

[testenv]
deps =
pytest
responses

commands =
py.test []

[pytest]
norecursedirs = venv .tox examples *.egg-info

0 comments on commit db62539

Please sign in to comment.