Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving to a more modern build system #247

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
[build-system]
requires = [
"setuptools >= 48",
"wheel >= 0.29.0"
]
build-backend = 'setuptools.build_meta'

[tool.isort]
multi_line_output = 3
include_trailing_comma = true
Expand Down
49 changes: 49 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,52 @@
[metadata]
name = webtraversallibrary
description = Abstractions of web interactions
long_description = file: README.md
long_description_content_type = text/markdown; charset=UTF-8
url = https://github.com/klarna-incubator/webtraversallibrary
author = Klarna Bank AB
author_email = [email protected],
license = Apache Software License
license_file = LICENSE
classifiers =
Development Status :: 5 - Production/Stable
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
project_urls =
Documentation = https://webtraversallibrary.readthedocs.io
Source = https://github.com/klarna-incubator/webtraversallibrary
Tracker = https://github.com/klarna-incubator/webtraversallibrary/issues

[options]
zip_safe = False
packages = find:
platforms = any
include_package_data = True
python_requires = >=3.7
setup_requires =
beautifulsoup4>=4.8
html5lib>=1.0.1
pillow>=7.1
requests>=2.24
selenium>=3.141
soupsieve>=2.0
tld
urllib3
prodict>=0.8

[options.extras_require]
test =
pylint
pytest >= 6.2.2
black
mypy
all =
%(test)s

[coverage:run]
branch = True
omit = */__init__.py
Expand Down
44 changes: 2 additions & 42 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,44 +1,4 @@
import re
import setuptools


with open("README.md", "r") as f:
long_description = f.read()


with open("webtraversallibrary/version.py", "r") as f:
version = re.search(r"__version__ = \"(.*?)\"", f.read()).group(1)


setuptools.setup(
name="webtraversallibrary",
version=version,
author="Klarna Bank AB",
author_email="[email protected]",
description="Abstractions of web interactions",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/klarna-incubator/webtraversallibrary",
python_requires=">=3.7",
packages=["webtraversallibrary", "webtraversallibrary.driver_check"],
include_package_data=True,
install_requires=[
"beautifulsoup4>=4.8",
"html5lib>=1.0.1",
"pillow>=7.1",
"requests>=2.24",
"selenium>=3.141",
"soupsieve>=2.0"
"tld",
"urllib3",
"prodict>=0.8"
],
classifiers=[
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
)
if __name__ == "__main__":
setuptools.setup()