Skip to content

Commit

Permalink
Merge pull request #36 from yoeo/v2.2.1
Browse files Browse the repository at this point in the history
V2.2.1
  • Loading branch information
yoeo authored Aug 1, 2021
2 parents f4ceb1d + 0ab306c commit 92cd9f9
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
mypy --strict --ignore-missing-imports guesslang/
- name: Check code quality
run: |
flake8 guesslang/
flake8 .
- name: Check package installation
run: |
pip install .
4 changes: 0 additions & 4 deletions bin/guesslang

This file was deleted.

2 changes: 0 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
import re
import sys

import sphinx_rtd_theme


# Add Guesslang path for autodoc
sys.path.insert(0, str(Path(__file__).parent.parent.absolute()))
Expand Down
11 changes: 10 additions & 1 deletion guesslang/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@
"""

import os


# Do not let Tensorflow print its numerous warning messages on startup.
# Unless the user asked to see them by setting Tensorflow logging level.
if 'TF_CPP_MIN_LOG_LEVEL' not in os.environ:
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'


from guesslang.guess import Guess, GuesslangError # noqa: F401


__version__ = '2.2.1.dev0'
__version__ = '2.2.1'
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ def long_description(filename: str, end_tag: str, doc_url: str) -> str:
install_requires=Path('requirements.txt').read_text(),
zip_safe=False,
include_package_data=True,
scripts=['bin/guesslang'],
# Test setup
entry_points={'console_scripts': ['guesslang = guesslang.__main__:main']},
tests_require=Path('requirements-dev.txt').read_text(),
setup_requires=['pytest-runner']
)

0 comments on commit 92cd9f9

Please sign in to comment.