Browse Source

setup fix

queue_backend
Kamo Petrosyan 4 years ago
parent
commit
85165dd170
2 changed files with 10 additions and 2 deletions
  1. +2
    -2
      run.py
  2. +8
    -0
      setup.py

+ 2
- 2
run.py View File

@ -11,5 +11,5 @@ if __name__ == '__main__':
events.set_event_loop(el)
# root_url = sys.argv[1]
root_url = 'http://www.techelec.ru'
crawler(root_url, out_file='techelec.xml')
root_url = 'http://www.haikson.ru'
crawler(root_url, out_file='sitemap.xml')

+ 8
- 0
setup.py View File

@ -3,6 +3,12 @@ from version import VERSION
EXCLUDE_FROM_PACKAGES = ['tests',]
def get_long_description():
long_description = ""
with open("README.rst", "r") as fh:
long_description = fh.read()
return long_description
def get_requirements():
requirements = []
with open('requirements.txt', 'r') as df:
@ -20,6 +26,8 @@ setup(
author='Kamo Petrosyan',
author_email='kamo@haikson.com',
description='web crawler and sitemap generator.',
long_description=get_long_description(),
long_description_content_type="text/x-rst",
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',


Loading…
Cancel
Save