Skip to content

Commit ceb0763

Browse files
authored
Merge pull request #20 from Bernardo-MG/release
Release
2 parents 6345ea4 + c9fd4f1 commit ceb0763

9 files changed

Lines changed: 32 additions & 13 deletions

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ addons:
1717
- sshpass
1818

1919
before_install:
20+
# Upgrades pip
21+
- pip install --upgrade pip
2022
# Gets scripts
2123
- git clone -b v1.2.2 --single-branch https://github.com/Bernardo-MG/ci-shell-scripts.git ~/.scripts
2224
# Sets scripts as executable

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ operating with it on any Python application.
2828
Features
2929
--------
3030

31-
- Ply-based parser to generate objects for dice notation
32-
- Easy-to-use objects to handle the notation, just call the 'roll' method
31+
- ANTLR-based parser generates objects from dice notation (BNF grammar included)
32+
- Easy-to-use model, just call the 'roll' method
3333
- Classes to support plain dice
3434

3535
Documentation

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.1.0'
10+
__version__ = '1.1.1'
1111
__license__ = 'MIT'

dice_notation/algebra.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,16 @@ def __repr__(self):
9292

9393
def roll(self):
9494
return self._value
95+
96+
@property
97+
def value(self):
98+
"""
99+
The numeric value.
100+
101+
:return: the numeric value
102+
"""
103+
return self._value
104+
105+
@value.setter
106+
def value(self, value):
107+
self._value = value

docs/source/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ add the number five to the result”.
1313
Features
1414
--------
1515

16-
- Ply-based parser to generate objects for dice notation
17-
- Easy-to-use objects to handle the notation, just call the 'roll' method
16+
- ANTLR-based parser generates objects from dice notation (BNF grammar included)
17+
- Easy-to-use model, just call the 'roll' method
1818
- Classes to support plain dice
1919

2020
.. toctree::

docs/source/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ It is possible to run just one of the test profiles, in this case the py36 profi
3333

3434
.. code::
3535
36-
$ python setup.py test -p "py36"
36+
$ python setup.py test -p "py38"
3737

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Installation and deployment
22
setuptools==46.1.1
33
twine==3.1.1
4-
bernardomg.tox-test-command==1.1.5
5-
bernardomg.version-extractor==1.0.2
4+
bernardomg.tox-test-command==1.1.6
5+
bernardomg.version-extractor==1.0.3
66

77
# Testing
88
tox==3.14.5
99

1010
# Documentation
1111
Sphinx==2.4.4
12-
sphinx-docs-theme==0.2.3
12+
sphinx-docs-theme==1.0.3
1313
Pygments==2.6.1
1414

1515
# Parsing

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[bdist_wheel]
2+
universal = 1
3+
14
[flake8]
25
max-line-length = 80
36
exclude = tests/*

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ def read(*names, **kwargs):
5454
'License :: OSI Approved :: MIT License',
5555
'Programming Language :: Python',
5656
'Programming Language :: Python :: 3',
57-
'Programming Language :: Python :: 3.3',
58-
'Programming Language :: Python :: 3.4',
59-
'Programming Language :: Python :: 3.5',
57+
'Programming Language :: Python :: 3.6',
58+
'Programming Language :: Python :: 3.7',
59+
'Programming Language :: Python :: 3.8',
6060
'Topic :: Games/Entertainment :: Role-Playing'
6161
],
6262
long_description=read('README.rst'),
6363
install_requires=[
64-
'ply',
64+
'antlr4-python3-runtime',
6565
'bernardomg.tox-test-command',
6666
'bernardomg.version-extractor'
6767
],
@@ -71,4 +71,5 @@ def read(*names, **kwargs):
7171
'build_docs': BuildDoc,
7272
'test': ToxTestCommand
7373
},
74+
python_requires='>=3.6',
7475
)

0 commit comments

Comments
 (0)