Skip to content

Commit 889d5f3

Browse files
author
Preetham Kamidi
authored
Merge pull request #25 from kamidipreetham/develop
Release v0.6.0
2 parents 6521fcb + 3d32de2 commit 889d5f3

File tree

10 files changed

+921
-9
lines changed

10 files changed

+921
-9
lines changed

Pipfile

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
[[source]]
2+
name = "pypi"
3+
url = "https://pypi.org/simple"
4+
verify_ssl = true
5+
6+
[dev-packages]
7+
8+
[packages]
9+
aiodns = "==2.0.0"
10+
aiohttp-socks = "==0.2.2"
11+
aiohttp = "==3.5.4"
12+
async-timeout = "==3.0.1"
13+
attrs = "==19.1.0"
14+
beautifulsoup4 = "==4.7.1"
15+
cchardet = "==2.1.4"
16+
certifi = "==2019.6.16"
17+
cffi = "==1.12.3"
18+
chardet = "==3.0.4"
19+
click = "==7.0"
20+
decorator = "==4.4.0"
21+
dnspython = "==1.16.0"
22+
elasticsearch = "==7.0.2"
23+
eventlet = "==0.25.0"
24+
fake-useragent = "==0.1.11"
25+
geographiclib = "==1.49"
26+
geopy = "==1.20.0"
27+
greenlet = "==0.4.15"
28+
gunicorn = "==19.9.0"
29+
idna-ssl = "==1.1.0"
30+
idna = "==2.8"
31+
imageio = "==2.5.0"
32+
itsdangerous = "==1.1.0"
33+
joblib = "==0.13.2"
34+
kiwisolver = "==1.1.0"
35+
monotonic = "==1.5"
36+
multidict = "==4.5.2"
37+
networkx = "==2.3"
38+
nltk = ">=3.4.5"
39+
numpy = "==1.16.4"
40+
pandas = "==0.24.2"
41+
pycares = "==3.0.0"
42+
pycodestyle = "==2.5.0"
43+
pycparser = "==2.19"
44+
pyparsing = "==2.4.0"
45+
pytesseract = "==0.2.7"
46+
python-dateutil = "==2.8.0"
47+
pytz = "==2019.1"
48+
regex = "==2019.6.8"
49+
requests = "==2.22.0"
50+
schedule = "==0.6.0"
51+
scikit-learn = "==0.21.2"
52+
scipy = "==1.3.0"
53+
six = "==1.12.0"
54+
soupsieve = "==1.9.2"
55+
twint = "==2.1.13"
56+
typing-extensions = "==3.7.4"
57+
typing = "==3.7.4"
58+
urllib3 = "==1.25.3"
59+
yapf = "==0.27.0"
60+
yarl = "==1.3.0"
61+
Cycler = "==0.10.0"
62+
Flask-Cors = "==3.0.8"
63+
Flask = "==1.1.1"
64+
Jinja2 = "==2.10.1"
65+
MarkupSafe = "==1.1.1"
66+
Pillow = ">=6.2.0"
67+
PySocks = "==1.7.0"
68+
PyWavelets = "==1.0.3"
69+
Werkzeug = "==0.15.4"
70+
71+
[requires]
72+
python_version = "3.7"

Pipfile.lock

Lines changed: 831 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ Verify Tweet attempts to resolve the problem by letting users upload such tweet
2121
Installing via pip:
2222

2323
```sh
24-
pip install -U git+https://github.com/kamidipreetham/verifytweet.git@origin/master#egg=verifytweet
24+
pip install verifytweet
2525
```
2626

2727
Or via pipenv:
2828

2929
```sh
30-
pipenv install -e git+https://github.com/kamidipreetham/verifytweet.git@origin/master#egg=verifytweet
30+
pipenv install verifytweet
3131
```
3232

3333
## Usage

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@
5959
include_package_data=True,
6060
python_requires=">=3.6.*",
6161
install_requires=[
62-
"click>=5.1", "Pillow==6.0.0", "pytesseract==0.2.6",
63-
"requests==2.22.0", "scikit-learn==0.21.2", "nltk>=3.4.3",
62+
"click>=5.1", "Pillow>=6.2.0", "pytesseract==0.2.6",
63+
"requests==2.22.0", "scikit-learn==0.21.2", "nltk>=3.4.5",
6464
"python-dateutil==2.8.0", "werkzeug==0.15.4",
65-
"twint @ git+https://github.com/twintproject/twint.git"
65+
"twint==2.1.13"
6666
],
6767
entry_points={
6868
"console_scripts": ["verifytweet = verifytweet.cli:run_as_command"]

verifytweet/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@
2929
from .util import validator
3030
from .util import common
3131

32-
__version__ = "0.5.2"
32+
__version__ = "0.6.0"

verifytweet/app.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@
3434
cors = CORS(router, resources={r'/api/*': {'origins': '*'}})
3535

3636

37+
@router.route('/', methods=['GET'])
38+
def root():
39+
logger.info('Health Check log')
40+
return jsonify({'status': 0})
41+
42+
3743
@router.route('/health', methods=['GET'])
3844
def health():
3945
logger.info('Health Check log')

verifytweet/config/__init__.py

Whitespace-only changes.

verifytweet/config/settings.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ class WebConfig(Config):
6767
"""Configuration for running as web service
6868
"""
6969

70-
APP_HOST = os.getenv('APP_HOST')
71-
APP_PORT = os.getenv('APP_PORT')
70+
APP_HOST = os.getenv('APP_HOST') or '0.0.0.0'
71+
APP_PORT = os.getenv('APP_PORT') or '8000'
7272
TIMEOUT = 2000
7373
MAX_CONTENT_LENGTH_KEY = "MAX_CONTENT_LENGTH"
7474
MAX_CONTENT_LENGTH = 2097152
@@ -78,6 +78,9 @@ class WebConfig(Config):
7878

7979
run_method = "web" if "VERIFYTWEET_RUN_FOR_WEB" in os.environ else "cli"
8080
Config.RUN_METHOD = run_method
81-
configurations = {"web": WebConfig, "cli": Config}
81+
configurations = dict({
82+
"cli": Config,
83+
"web": WebConfig,
84+
})
8285

8386
app_config = configurations[run_method]

verifytweet/services/__init__.py

Whitespace-only changes.

verifytweet/util/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)