Skip to content

Commit b8892fb

Browse files
authored
Merge pull request #14 from Bernardo-MG/develop
Develop
2 parents d6cab7c + dfd9d5c commit b8892fb

16 files changed

Lines changed: 101 additions & 315 deletions

File tree

.gitattributes

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Known text files
5+
*.css text diff=css
6+
*.js text
7+
*.json text
8+
*.htm text diff=html
9+
*.html text diff=html
10+
*.properties text
11+
*.sh text
12+
*.md text
13+
*.txt text
14+
*.xml text
15+
*.yml text
16+
17+
# Known source files
18+
*.pxd text diff=python
19+
*.py text diff=python
20+
*.py3 text diff=python
21+
*.pyw text diff=python
22+
*.pyx text diff=python
23+
24+
# Known binary files
25+
*.db binary
26+
*.p binary
27+
*.pkl binary
28+
*.pyc binary
29+
*.pyd binary
30+
*.pyo binary

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,13 @@ addons:
2525

2626
before_install:
2727
# Gets scripts
28-
- git clone -b v1.1.3 --single-branch https://github.com/Bernardo-MG/ci-shell-scripts.git ~/.scripts
28+
- git clone -b v1.2.0 --single-branch https://github.com/Bernardo-MG/ci-shell-scripts.git ~/.scripts
2929
# Sets scripts as executable
3030
- chmod -R +x ~/.scripts/*
3131
# Prepares CI environment
3232
- source ~/.scripts/travis/load-travis-environment.sh
33+
- source ~/.scripts/travis/load-travis-environment-python.sh
3334
install:
34-
# tox is required for the tests
35-
- pip install tox
36-
# sphinx is required for the docs
37-
- pip install sphinx
3835
# Dependencies
3936
- pip install --upgrade -r requirements.txt
4037
script:

MANIFEST.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Miscellany files
22
include LICENSE
33
include README.rst
4-
include Makefile
5-
include make.bat
64
include tox.ini
75
include requirements.txt
86
include .coveragerc

Makefile

Lines changed: 0 additions & 89 deletions
This file was deleted.

README.rst

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ The project has been tested in the following versions of the interpreter:
5555
- Python 3.6
5656

5757
All other dependencies are indicated on the requirements.txt file.
58-
The included makefile can install them with the command:
5958

60-
``$ make requirements``
59+
These can be installed with:
60+
61+
``$ pip install --upgrade -r requirements.txt``
6162

6263
Installing
6364
~~~~~~~~~~
@@ -67,11 +68,9 @@ to install it. For this use the following command;
6768

6869
``$ pip install dice-notation``
6970

70-
If manual installation is required, the project includes a setup.py file, along
71-
a makefile allowing direct installation of the library, which can be done with
72-
the following command:
71+
If needed, manual installation is possible:
7372

74-
``$ make install``
73+
``$ python setup.py install``
7574

7675
Usage
7776
-----
@@ -94,6 +93,19 @@ needed, which will generate a new random value each time it is called::
9493
print(dice.roll())
9594
print(dice.roll())
9695

96+
Testing
97+
-------
98+
99+
The tests included with the project can be run with:
100+
101+
``$ python setup.py test``
102+
103+
This will delegate the execution to tox.
104+
105+
It is possible to run just one of the test profiles, in this case the py36 profile:
106+
107+
``$ python setup.py test -p "py36"``
108+
97109
Collaborate
98110
-----------
99111

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

dice_notation/parser/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
from dice_notation.parser.dice import DiceParser
44

5-
__all__ = ['DiceParser']
5+
__all__ = ['DiceParser']

dice_notation/parser/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ def __init__(self, **kw):
6464
tabmodule=self.tabmodule)
6565

6666
def parse(self, value):
67-
return yacc.parse(value)
67+
return yacc.parse(value)

dice_notation/parser/dice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ def p_error(self, p):
9090
if p:
9191
self._logger.error("Syntax error at '%s'", p.value)
9292
else:
93-
self._logger.error("Syntax error at EOF")
93+
self._logger.error("Syntax error at EOF")

dice_notation/parser/notation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,4 +256,4 @@ def operate(self):
256256
return result
257257

258258
def roll(self):
259-
return self.operate()
259+
return self.operate()

0 commit comments

Comments
 (0)