Skip to content

Commit 8411b91

Browse files
authored
Merge pull request #11 from Bernardo-MG/develop
Develop
2 parents d91ee33 + 60de77f commit 8411b91

8 files changed

Lines changed: 27 additions & 35 deletions

File tree

.travis.yml

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,21 @@
44
# Using Python for the project
55
language: python
66
python:
7-
# Python 2.6 is obsolete
8-
#- "2.6"
9-
# Python 2.7 is set to test the docs in the configuration matrix
10-
#- "2.7"
11-
# Python 3.2 is obsolete
12-
#- "3.2"
13-
- "3.3"
7+
- "2.7"
148
- "3.4"
15-
# Python 3.5 is set to test and deploy the docs, and to run the coverage report, in the configuration matrix
16-
#- "3.5"
17-
- "pypy"
18-
- "pypy3"
9+
- "3.5"
10+
# Python 3.6 is set to test and deploy the docs in the configuration matrix
11+
#- "3.6"
12+
# PyPy currently is not working with the required dependencies
13+
#- "pypy"
14+
#- "pypy3"
15+
env:
16+
- TEST_DOCS=true
1917
matrix:
2018
include:
21-
# Tests docs
22-
- python: "2.7"
23-
env: TEST_DOCS=true
2419
# Tests and deploys docs, also runs coverage report
25-
- python: "3.5"
26-
env: COVERAGE=true TEST_DOCS=true DEPLOY_DOCS=true
20+
- python: "3.6"
21+
env: TEST_DOCS=true DEPLOY_DOCS=true
2722
addons:
2823
apt:
2924
packages:
@@ -36,7 +31,6 @@ before_install:
3631
- chmod -R +x ~/.scripts/*
3732
# Prepares CI environment
3833
- source ~/.scripts/travis/load-travis-environment.sh
39-
- source ~/.scripts/travis/load-travis-environment-python.sh
4034
install:
4135
# tox is required for the tests
4236
- pip install tox
@@ -45,14 +39,8 @@ install:
4539
# Dependencies
4640
- pip install --upgrade -r requirements.txt
4741
script:
48-
# Code is checked
49-
- ~/.scripts/python/run_tests.sh true check
50-
# Tests are run
51-
- ~/.scripts/python/run_tests.sh true $PYTHON_VERSION_TEST
5242
# Documentation tests are run
5343
- ~/.scripts/python/run_tests.sh $DO_TEST_DOCS docs
54-
# Documentation tests are run
55-
- ~/.scripts/python/run_tests.sh $DO_COVERAGE coverage
5644
after_success:
5745
# Documentation deployment
5846
- ~/.scripts/sphinx/build-html.sh $DO_DEPLOY_DOCS docs

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ operating with it on any Python application.
2222
:target: http://docs.wandrell.com/dice-notation-python
2323
:alt: Dice Notation Tools for Python latest documentation
2424
.. image:: https://img.shields.io/badge/docs-develop-blue.svg
25-
:target: http://docs.wandrell.com/development/dice-notation-python/
25+
:target: http://docs.wandrell.com/development/dice-notation-python
2626
:alt: Dice Notation Tools for Python development documentation
2727

2828
Features
@@ -51,9 +51,9 @@ Prerequisites
5151
The project has been tested in the following versions of the interpreter:
5252

5353
- Python 2.7
54-
- Python 3.3
5554
- Python 3.4
5655
- Python 3.5
56+
- Python 3.6
5757
- Pypy
5858
- Pypy 3
5959

@@ -124,8 +124,8 @@ License
124124
The project has been released under the `MIT License`_.
125125

126126
.. _GitHub project page: https://github.com/Bernardo-MG/dice-notation-python
127-
.. _latest docs: http://docs.wandrell.com/dice-notation-python/
128-
.. _development docs: http://docs.wandrell.com/development/dice-notation-python/
127+
.. _latest docs: http://docs.wandrell.com/dice-notation-python
128+
.. _development docs: http://docs.wandrell.com/development/dice-notation-python
129129
.. _Pypi package: https://pypi.python.org/pypi/dice-notation
130130
.. _MIT License: http://www.opensource.org/licenses/mit-license.php
131131
.. _project issues tracker: https://github.com/Bernardo-MG/dice-notation-python/issues

dice_notation/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
:license: MIT, see LICENSE for more details.
88
"""
99

10-
__version__ = '1.0.1'
10+
__version__ = '1.0.2'
1111
__license__ = 'MIT'

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797

9898
# Theme options.
9999
html_theme_options = {
100-
'keywords': '',
100+
'keywords': 'dice, dice notation, parser, Python, RPG',
101101
'author_name': ','.join(authors),
102102
'author_url': 'https://github.com/Bernardo-MG',
103103
'twitter_id': '@Wandrell_BMG',

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ twine==1.8.1
44

55
# Documentation
66
sphinx-docs-theme==0.2.3
7-
Pygments==2.1.3
7+
Pygments==2.2.0
88

99
# Parsing
10-
ply==3.9
10+
ply==3.10

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def run_tests(self):
7070
keywords=['dice', 'dice notation', 'rpg', 'parser'],
7171
platforms='any',
7272
classifiers=[
73-
'Development Status :: 3 - Alpha',
73+
'Development Status :: 5 - Production/Stable',
7474
'Intended Audience :: Developers',
7575
'License :: OSI Approved :: MIT License',
7676
'Programming Language :: Python',

tests/parser/test_dice_parser_invalid.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def setUp(self):
2323
"""
2424
self.parser = DiceParser()
2525

26-
def test_noNumbers(self):
26+
def test_onlySeparator(self):
2727
"""
2828
Tests that the dice separator can't be parsed.
2929
"""
@@ -71,7 +71,7 @@ def test_negativeQuantity(self):
7171

7272
def test_negativeSides(self):
7373
"""
74-
Tests that a expression with an incomplete dice can't be parsed.
74+
Tests that a dice with a negative side can't be parsed.
7575
"""
7676
result = self.parser.parse("1d-6")
7777

tox.ini

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
py{27,33,34,35},
3+
py{27,34,35,36},
44
pypy{,3},
55
check,
66
docs,
@@ -9,13 +9,15 @@ skip_missing_interpreters =
99
true
1010

1111
[testenv]
12+
# Default environment
1213
deps =
1314
-r{toxinidir}/requirements.txt
1415
nose
1516
commands =
1617
nosetests
1718

1819
[testenv:coverage]
20+
# Generates coverage report
1921
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
2022
deps =
2123
-r{toxinidir}/requirements.txt
@@ -27,6 +29,7 @@ commands =
2729
coveralls
2830

2931
[testenv:check]
32+
# Checks code rules
3033
deps =
3134
-r{toxinidir}/requirements.txt
3235
docutils
@@ -39,6 +42,7 @@ commands =
3942
flake8 dice_notation
4043

4144
[testenv:docs]
45+
# Validates the project docs
4246
changedir =
4347
docs/source
4448
deps =

0 commit comments

Comments
 (0)