386
by Leonard Richardson
Change setup.py to focus on creating wheels. |
1 |
from setuptools import ( |
2 |
setup, |
|
3 |
find_packages, |
|
4 |
)
|
|
565
by Leonard Richardson
Set up a different soupsieve dependency for Python 2. |
5 |
import sys |
386
by Leonard Richardson
Change setup.py to focus on creating wheels. |
6 |
|
606
by Leonard Richardson
Goodbye, Python 2. [bug=1942919] |
7 |
from bs4 import __version__ |
8 |
||
475
by Leonard Richardson
Converted README to Markdown format. |
9 |
with open("README.md", "r") as fh: |
10 |
long_description = fh.read() |
|
11 |
||
386
by Leonard Richardson
Change setup.py to focus on creating wheels. |
12 |
setup( |
13 |
name="beautifulsoup4", |
|
606
by Leonard Richardson
Goodbye, Python 2. [bug=1942919] |
14 |
version = __version__, |
386
by Leonard Richardson
Change setup.py to focus on creating wheels. |
15 |
author="Leonard Richardson", |
16 |
author_email='leonardr@segfault.org', |
|
609
by Leonard Richardson
Changed HTTP URLs to HTTPS. |
17 |
url="https://www.crummy.com/software/BeautifulSoup/bs4/", |
18 |
download_url = "https://www.crummy.com/software/BeautifulSoup/bs4/download/", |
|
387
by Leonard Richardson
Turns out setup.py requiring lxml was never in a released version which is a big relief as we don't need that anymore. |
19 |
description="Screen-scraping library", |
608
by Leonard Richardson
Ported unit tests to use pytest. |
20 |
python_requires='>=3.6.0', |
584.1.1
by Mike Nerone
Correct PyPI dep metadata (PEP 508 env markers instead of a condition in setup.py) |
21 |
install_requires=[ |
606
by Leonard Richardson
Goodbye, Python 2. [bug=1942919] |
22 |
"soupsieve >1.2", |
584.1.1
by Mike Nerone
Correct PyPI dep metadata (PEP 508 env markers instead of a condition in setup.py) |
23 |
],
|
608
by Leonard Richardson
Ported unit tests to use pytest. |
24 |
tests_require=['pytest'], |
475
by Leonard Richardson
Converted README to Markdown format. |
25 |
long_description=long_description, |
26 |
long_description_content_type="text/markdown", |
|
386
by Leonard Richardson
Change setup.py to focus on creating wheels. |
27 |
license="MIT", |
593.1.1
by Ville Skyttä
Fix tests install exclusion |
28 |
packages=find_packages(exclude=['tests*', '*.tests*']), |
386
by Leonard Richardson
Change setup.py to focus on creating wheels. |
29 |
extras_require = { |
30 |
'lxml' : [ 'lxml'], |
|
31 |
'html5lib' : ['html5lib'], |
|
32 |
},
|
|
33 |
classifiers=["Development Status :: 5 - Production/Stable", |
|
34 |
"Intended Audience :: Developers", |
|
35 |
"License :: OSI Approved :: MIT License", |
|
36 |
"Programming Language :: Python", |
|
37 |
'Programming Language :: Python :: 3', |
|
38 |
"Topic :: Text Processing :: Markup :: HTML", |
|
39 |
"Topic :: Text Processing :: Markup :: XML", |
|
40 |
"Topic :: Text Processing :: Markup :: SGML", |
|
41 |
"Topic :: Software Development :: Libraries :: Python Modules", |
|
42 |
],
|
|
90.1.1
by Thomas Kluyver
Add simple setup file. |
43 |
)
|