Skip to content

Commit

Permalink
Merge pull request #20 from Bernardo-MG/release
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
Bernardo-MG authored Mar 28, 2020
2 parents 6345ea4 + c9fd4f1 commit ceb0763
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ addons:
- sshpass

before_install:
# Upgrades pip
- pip install --upgrade pip
# Gets scripts
- git clone -b v1.2.2 --single-branch https://github.com/Bernardo-MG/ci-shell-scripts.git ~/.scripts
# Sets scripts as executable
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ operating with it on any Python application.
Features
--------

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

Documentation
Expand Down
2 changes: 1 addition & 1 deletion dice_notation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
:license: MIT, see LICENSE for more details.
"""

__version__ = '1.1.0'
__version__ = '1.1.1'
__license__ = 'MIT'
13 changes: 13 additions & 0 deletions dice_notation/algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,16 @@ def __repr__(self):

def roll(self):
return self._value

@property
def value(self):
"""
The numeric value.
:return: the numeric value
"""
return self._value

@value.setter
def value(self, value):
self._value = value
4 changes: 2 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ add the number five to the result”.
Features
--------

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

.. toctree::
Expand Down
2 changes: 1 addition & 1 deletion docs/source/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ It is possible to run just one of the test profiles, in this case the py36 profi

.. code::
$ python setup.py test -p "py36"
$ python setup.py test -p "py38"
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Installation and deployment
setuptools==46.1.1
twine==3.1.1
bernardomg.tox-test-command==1.1.5
bernardomg.version-extractor==1.0.2
bernardomg.tox-test-command==1.1.6
bernardomg.version-extractor==1.0.3

# Testing
tox==3.14.5

# Documentation
Sphinx==2.4.4
sphinx-docs-theme==0.2.3
sphinx-docs-theme==1.0.3
Pygments==2.6.1

# Parsing
Expand Down
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[bdist_wheel]
universal = 1

[flake8]
max-line-length = 80
exclude = tests/*
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ def read(*names, **kwargs):
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Games/Entertainment :: Role-Playing'
],
long_description=read('README.rst'),
install_requires=[
'ply',
'antlr4-python3-runtime',
'bernardomg.tox-test-command',
'bernardomg.version-extractor'
],
Expand All @@ -71,4 +71,5 @@ def read(*names, **kwargs):
'build_docs': BuildDoc,
'test': ToxTestCommand
},
python_requires='>=3.6',
)

0 comments on commit ceb0763

Please sign in to comment.