Skip to content

Commit

Permalink
Merge pull request #3 from thewebscraping/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
thewebscraping authored Dec 29, 2024
2 parents cef786d + ce8f872 commit 3f5d0fa
Show file tree
Hide file tree
Showing 17 changed files with 371 additions and 136 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
build-on-ubuntu:
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 3
matrix:
python-version: ['3.9', '3.10', '3.11']
Expand Down
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
include LICENSE
include README.md
include CHANGELOG.md
recursive-include gemma_template docs Makefile *.md *.rst
include docs/*.md
recursive-include gemma_template
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PROJECT=gemma_template


DEFAULT_GOAL: help
.PHONY: help all install lint readme docs
.PHONY: help all install lint readme docs test tox

# Colors for echos
bold = \033[0;32m\033[1m***
Expand All @@ -14,6 +14,8 @@ end_bold = *** \033[0m\033[0;0m
all: ##@target >> Run all.
@make install
@make lint
@make readme
@make test

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

test:
python -m pytest tests

tox:
tox -p
rm -rf *.egg-info

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

docs:
mkdocs serve
Expand Down
4 changes: 3 additions & 1 deletion gemma_template/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from .__version__ import (__author__, __description__, __license__, __title__,
__version__)
from .constants import *
from .exceptions import *
from .models import (StructureField, Template, gemma_template,
vietnamese_template)
vietnamese_gemma_template)
from .utils import get_frequently_words, get_language, get_n_grams
2 changes: 1 addition & 1 deletion gemma_template/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
__url__ = "https://github.com/thewebscraping/gemma-template"
__author__ = "Tu Pham"
__author_email__ = "thetwofarm@gmail.com"
__version__ = "0.1.0"
__version__ = "0.1.1"
__license__ = "Apache-2.0"
Loading

0 comments on commit 3f5d0fa

Please sign in to comment.