Skip to content

Commit

Permalink
upload to pypi, support pip install
Browse files Browse the repository at this point in the history
  • Loading branch information
hellock committed Apr 8, 2016
1 parent f49d3e3 commit 713c647
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ __pycache__
*.egg

# Setuptools distribution folder.
/dist/
dist/
build/

# Requirements
requirements.in
Expand Down
12 changes: 8 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,17 @@ Quick start
Installation
~~~~~~~~~~~~

This package is under development and not available at PyPI currently,
so you can NOT install it using the command ``pip install icrawler``.
Instead, you can install it by
For quick install, just use pip.

::

python setup.py develop
pip install icrawler

You can also manually install it by

::

python setup.py install

Then you should have all the dependency installed. If there is any
problem with it, you can install the dependency manually.
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
beautifulsoup4
lxml
requests>=2.9.1
six>=1.10.0
Pillow
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[bdist_wheel]
universal=1
19 changes: 13 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,34 +1,41 @@
from setuptools import setup
from setuptools import find_packages


def readme():
with open('README.rst') as f:
return f.read()

setup(name='icrawler',
version='0.1.0',
version='0.1.1',
description='A mini framework of image crawlers',
long_description='This package is a mini framework for multi-thread image'
' crawler. It also provides some useful built-in'
' crawlers such as google, bing, baidu, flickr image'
' crawlers and a greedy website crawler.',
keywords='image crawler spider',
packages=find_packages(),
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Topic :: Utilities',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
],
keywords='image crawler spider',
url='https://github.com/hellock/icrawler',
author='Kai Chen',
author_email='chenkaidev@gmail.com',
license='MIT',
packages=['icrawler'],
install_requires=[
'beautifulsoup4',
'beautifulsoup4>=4.4.1',
'lxml',
'Pillow',
'requests',
'six'
'requests>=2.9.1',
'six>=1.10.0'
],
zip_safe=False)

0 comments on commit 713c647

Please sign in to comment.