diff --git a/extraction/__init__.py b/extraction/__init__.py index ed88b55..a7dd483 100644 --- a/extraction/__init__.py +++ b/extraction/__init__.py @@ -8,6 +8,8 @@ >>> resp = extr.extract(html) >>> print resp """ +__version__ = "0.2.1" + try: import urlparse except ImportError: diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..fb94f79 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,44 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[project] +name = "extraction" +dynamic = ["version"] +description = "Extract basic info from HTML webpages." +readme = "README.rst" +requires-python = ">= 3.9" +dependencies = [ + "beautifulsoup4 >= 4.1.3", + "html5lib", +] +authors = [ + { name = "Will Larson", email = "lethain@gmail.com" } +] +license = "MIT" +license-files = ["LICENSE.txt"] +classifiers = [ + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Operating System :: OS Independent", + "Topic :: Software Development :: Libraries", + "Topic :: Utilities", + "Environment :: Web Environment", +] + +[tool.setuptools] +packages = ["extraction"] + +[tool.setuptools.dynamic] +version = { attr = "extraction.__version__" } + +[tool.coverage.run] +omit = ["docs"] + +[tool.isort] +line_length = 119 +default_section = "THIRDPARTY" +import_headings = { firstparty = "our stuff" }