Skip to content

Commit 3f5d0fa

Browse files
Merge pull request #3 from thewebscraping/dev
Dev
2 parents cef786d + ce8f872 commit 3f5d0fa

17 files changed

+371
-136
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
build-on-ubuntu:
1212
runs-on: ubuntu-latest
1313
strategy:
14-
fail-fast: false
1514
max-parallel: 3
1615
matrix:
1716
python-version: ['3.9', '3.10', '3.11']

MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
include LICENSE
22
include README.md
33
include CHANGELOG.md
4-
recursive-include gemma_template docs Makefile *.md *.rst
4+
include docs/*.md
5+
recursive-include gemma_template

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PROJECT=gemma_template
55

66

77
DEFAULT_GOAL: help
8-
.PHONY: help all install lint readme docs
8+
.PHONY: help all install lint readme docs test tox
99

1010
# Colors for echos
1111
bold = \033[0;32m\033[1m***
@@ -14,6 +14,8 @@ end_bold = *** \033[0m\033[0;0m
1414
all: ##@target >> Run all.
1515
@make install
1616
@make lint
17+
@make readme
18+
@make test
1719

1820
# And add help text after each target name starting with '\#\#'
1921
# A category can be added with @category
@@ -50,11 +52,14 @@ lint: ##@target >> Run Lint.
5052
@$(PYTHON) -m flake8 $(PROJECT)
5153

5254
test:
55+
python -m pytest tests
56+
57+
tox:
5358
tox -p
5459
rm -rf *.egg-info
5560

5661
readme:
57-
python setup.py check --restructuredtext --strict && ([ $$? -eq 0 ] && echo "README.rst and CHANGELOG.md ok") || echo "Invalid markup in README.md or CHANGELOG.md!"
62+
python setup.py check --restructuredtext --strict && ([ $$? -eq 0 ] && echo "README.md and CHANGELOG.md ok") || echo "Invalid markup in README.md or CHANGELOG.md!"
5863

5964
docs:
6065
mkdocs serve

gemma_template/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
from .__version__ import (__author__, __description__, __license__, __title__,
2+
__version__)
13
from .constants import *
24
from .exceptions import *
35
from .models import (StructureField, Template, gemma_template,
4-
vietnamese_template)
6+
vietnamese_gemma_template)
57
from .utils import get_frequently_words, get_language, get_n_grams

gemma_template/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
__url__ = "https://github.com/thewebscraping/gemma-template"
44
__author__ = "Tu Pham"
55
__author_email__ = "[email protected]"
6-
__version__ = "0.1.0"
6+
__version__ = "0.1.1"
77
__license__ = "Apache-2.0"

0 commit comments

Comments
 (0)