diff --git a/README.md b/README.md index a5d25c0..edd7ee4 100644 --- a/README.md +++ b/README.md @@ -27,4 +27,8 @@ Python application that can operate with FIAS (Russian Address Object DB) 2. Установить sphinxapi последней версии: `python -m pip install https://github.com/Romamo/sphinxapi/zipball/master` - \ No newline at end of file + +### Debian Linux +1. Установить sphinxapi последней версии: + +`$pip install https://github.com/Romamo/sphinxapi/zipball/master` \ No newline at end of file diff --git a/aore/config/common.py b/aore/config/common.py index fbadf2c..328fccb 100644 --- a/aore/config/common.py +++ b/aore/config/common.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- + class sphinx_conf: host_name = "localhost" port = 9312 diff --git a/aore/updater/aorar.py b/aore/updater/aorar.py index 48c9938..3407df8 100644 --- a/aore/updater/aorar.py +++ b/aore/updater/aorar.py @@ -23,7 +23,6 @@ class AoRar: # TODO: UNCOMMENT os.remove(local_filename) return local_filename - request = requests.get(url, stream=True) with open(local_filename, 'wb') as f: for chunk in request.iter_content(chunk_size=1024): diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..5e2f55a --- /dev/null +++ b/setup.py @@ -0,0 +1,18 @@ +from distutils.core import setup + +setup( + name='py-phias', + version='0.0.1', + packages=['aore', 'aore.fias', 'aore.config', 'aore.dbutils', 'aore.updater', 'aore.miscutils'], + url='https://github.com/jar3b/py-phias', + license='', + author='hellotan', + author_email='hellotan@live.ru', + description='Python application that can operate with FIAS (Russian Address Object DB)', requires=['lxml', + 'bottle', + 'pysimplesoap', + 'python-Levenshtein', + 'enum34', + 'rarfile', + 'requests'] +)