Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 713c647

Browse files
committed
upload to pypi, support pip install
1 parent f49d3e3 commit 713c647

5 files changed

Lines changed: 27 additions & 11 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ __pycache__
1515
*.egg
1616

1717
# Setuptools distribution folder.
18-
/dist/
18+
dist/
19+
build/
1920

2021
# Requirements
2122
requirements.in

README.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,17 @@ Quick start
4141
Installation
4242
~~~~~~~~~~~~
4343

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

4846
::
4947

50-
python setup.py develop
48+
pip install icrawler
49+
50+
You can also manually install it by
51+
52+
::
53+
54+
python setup.py install
5155

5256
Then you should have all the dependency installed. If there is any
5357
problem with it, you can install the dependency manually.

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
beautifulsoup4
22
lxml
33
requests>=2.9.1
4+
six>=1.10.0
5+
Pillow

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[bdist_wheel]
2+
universal=1

setup.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,41 @@
11
from setuptools import setup
2+
from setuptools import find_packages
23

34

45
def readme():
56
with open('README.rst') as f:
67
return f.read()
78

89
setup(name='icrawler',
9-
version='0.1.0',
10+
version='0.1.1',
1011
description='A mini framework of image crawlers',
1112
long_description='This package is a mini framework for multi-thread image'
1213
' crawler. It also provides some useful built-in'
1314
' crawlers such as google, bing, baidu, flickr image'
1415
' crawlers and a greedy website crawler.',
16+
keywords='image crawler spider',
17+
packages=find_packages(),
1518
classifiers=[
1619
'Development Status :: 3 - Alpha',
1720
'License :: OSI Approved :: MIT License',
21+
'Operating System :: OS Independent',
22+
'Programming Language :: Python :: 2',
23+
'Programming Language :: Python :: 2.7',
24+
'Programming Language :: Python :: 3',
1825
'Programming Language :: Python :: 3.5',
1926
'Topic :: Utilities',
27+
'Topic :: Internet :: WWW/HTTP',
28+
'Topic :: Software Development :: Libraries :: Python Modules',
2029
],
21-
keywords='image crawler spider',
2230
url='https://github.com/hellock/icrawler',
2331
author='Kai Chen',
2432
author_email='[email protected]',
2533
license='MIT',
26-
packages=['icrawler'],
2734
install_requires=[
28-
'beautifulsoup4',
35+
'beautifulsoup4>=4.4.1',
2936
'lxml',
3037
'Pillow',
31-
'requests',
32-
'six'
38+
'requests>=2.9.1',
39+
'six>=1.10.0'
3340
],
3441
zip_safe=False)

0 commit comments

Comments
 (0)