This commit is contained in:
Daniel Tsvetkov 2020-04-23 11:24:50 +02:00
parent 361904c9b7
commit 85fcf2d6b5
26 changed files with 49 additions and 45 deletions

View File

@ -1,48 +1,7 @@
from setuptools import setup
from setuptools import setup, find_packages
def gen_from_file():
# return [
# 'backcall==0.1.0',
# 'chardet==3.0.4',
# 'Click==7.0',
# 'dateparser==0.7.2',
# 'DateTimeRange==0.6.1',
# 'decorator==4.4.1',
# 'Flask==1.1.1',
# 'freezegun==0.3.14',
# 'fuzzywuzzy==0.18.0',
# 'geographiclib==1.50',
# 'geopy==1.21.0',
# 'importlib-resources==1.0.2',
# 'ipython==7.12.0',
# 'ipython-genutils==0.2.0',
# 'isodate==0.6.0',
# 'itsdangerous==1.1.0',
# 'jedi==0.16.0',
# 'Jinja2==2.11.1',
# 'MarkupSafe==1.1.1',
# 'mbstrdecoder==0.8.4',
# 'numpy==1.18.1',
# 'parso==0.6.1',
# 'pexpect==4.8.0',
# 'pickleshare==0.7.5',
# 'prompt-toolkit==3.0.3',
# 'ptyprocess==0.6.0',
# 'Pygments==2.5.2',
# 'python-dateutil==2.8.1',
# 'python-Levenshtein==0.12.0',
# 'pytz==2019.3',
# 'regex==2020.1.8',
# 'six==1.14.0',
# 'timezonefinder==4.2.0',
# 'traitlets==4.3.3',
# 'typepy==0.6.5',
# 'tzlocal==2.0.0',
# 'wcwidth==0.1.8',
# 'Werkzeug==1.0.0',
# 'word2number==1.1',
# ]
with open("requirements.txt") as f:
return [line.strip() for line in f.readlines()]
@ -55,7 +14,5 @@ setup(name='tww',
install_requires=gen_from_file(),
author_email='',
license='MIT',
packages=['tww'],
package_dir={'tww': 'src/tww'},
package_data={'tww': ['data/*.csv']},
packages=find_packages(),
zip_safe=False)

View File

47
tww/data/.cache.csv Normal file
View File

@ -0,0 +1,47 @@
sofia,42.6975135,23.3241463
india,20.0,77.0
is,64.9841821,-18.1059013
u,42.6384261,12.674297
i,22.3511148,78.6677428
ut,39.4225192,-111.7143584
so,8.3676771,49.083416
sofi,42.6975135,23.3241463
z,-48.5693327,-70.1606767
zu,47.1666667,8.5166664
zur,47.1666667,8.5166664
zuri,47.1666667,8.5166664
zuric,47.3666667,8.5500002
zurich,47.3666667,8.5500002
gl,77.6192349,-42.8125967
gla,37.08034,14.2306747
glas,37.08034,14.2306747
glasg,37.08034,14.2306747
glasgow,55.8333333,-4.25
L,33.7680065,66.2385139
lo,-17.6394444,-71.3375015
L,33.7680065,66.2385139
lond,31.9513889,34.8952789
londo,51.5084153,-0.1255327
london,51.5084153,-0.1255327
london ,51.5084153,-0.1255327
ne,6.9833333,171.6999969
n,64.5731537,11.52803643954819
new,6.9833333,171.6999969
new ,6.9833333,171.6999969
new yo,6.9833333,171.6999969
new yor,6.9833333,171.6999969
new york,6.9833333,171.6999969
new york ,6.9833333,171.6999969
mo,14.1194444,15.3133335
M,-13.2687204,33.9301963
mou,14.1194444,15.3133335
mount,14.1194444,15.3133335
M,-13.2687204,33.9301963
mounta,14.1194444,15.3133335
mountai,14.1194444,15.3133335
mountain ,14.1194444,15.3133335
mountain vi,14.1194444,15.3133335
mountain view,14.1194444,15.3133335
in,6.9833333,171.6999969
ind,20.0,77.0
indi,20.0,77.0
1 sofia 42.6975135 23.3241463
2 india 20.0 77.0
3 is 64.9841821 -18.1059013
4 u 42.6384261 12.674297
5 i 22.3511148 78.6677428
6 ut 39.4225192 -111.7143584
7 so 8.3676771 49.083416
8 sofi 42.6975135 23.3241463
9 z -48.5693327 -70.1606767
10 zu 47.1666667 8.5166664
11 zur 47.1666667 8.5166664
12 zuri 47.1666667 8.5166664
13 zuric 47.3666667 8.5500002
14 zurich 47.3666667 8.5500002
15 gl 77.6192349 -42.8125967
16 gla 37.08034 14.2306747
17 glas 37.08034 14.2306747
18 glasg 37.08034 14.2306747
19 glasgow 55.8333333 -4.25
20 L 33.7680065 66.2385139
21 lo -17.6394444 -71.3375015
22 L 33.7680065 66.2385139
23 lond 31.9513889 34.8952789
24 londo 51.5084153 -0.1255327
25 london 51.5084153 -0.1255327
26 london 51.5084153 -0.1255327
27 ne 6.9833333 171.6999969
28 n 64.5731537 11.52803643954819
29 new 6.9833333 171.6999969
30 new 6.9833333 171.6999969
31 new yo 6.9833333 171.6999969
32 new yor 6.9833333 171.6999969
33 new york 6.9833333 171.6999969
34 new york 6.9833333 171.6999969
35 mo 14.1194444 15.3133335
36 M -13.2687204 33.9301963
37 mou 14.1194444 15.3133335
38 mount 14.1194444 15.3133335
39 M -13.2687204 33.9301963
40 mounta 14.1194444 15.3133335
41 mountai 14.1194444 15.3133335
42 mountain 14.1194444 15.3133335
43 mountain vi 14.1194444 15.3133335
44 mountain view 14.1194444 15.3133335
45 in 6.9833333 171.6999969
46 ind 20.0 77.0
47 indi 20.0 77.0