From 62f22f258e19eb2448d0887cbcaf1d38b29edc3c Mon Sep 17 00:00:00 2001 From: Jack Stdin Date: Sun, 31 Jan 2016 23:55:00 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20setup.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++++- aore/config/common.py | 1 + aore/updater/aorar.py | 1 - setup.py | 18 ++++++++++++++++++ 4 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 setup.py 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'] +)