diff --git a/MANIFEST.IN b/MANIFEST.IN index 2cb742c..c0e2373 100644 --- a/MANIFEST.IN +++ b/MANIFEST.IN @@ -1,3 +1,5 @@ include ada_url/ada_c.h -include ada_url/ada.h include ada_url/ada.cpp +include ada_url/ada.h +include ada_url/ada.o +include ada_url/py.typed diff --git a/pyproject.toml b/pyproject.toml index 24610b8..68e5970 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,34 @@ [build-system] -requires = ["cffi", "setuptools", "urllib3>=2.0.2", "wheel"] +requires = ["cffi", "setuptools", "urllib3", "wheel"] build-backend = "setuptools.build_meta" +[project] +name = "ada-url" +version = "1.14.0" +authors = [ + {name = "Bo Bayles", email = "bo@bbayles.com"}, +] +description = 'URL parser and manipulator based on the WHAT WG URL standard' +readme = "README.rst" +requires-python = ">=3.8" +license = {text = "Apache 2.0"} +classifiers = [ + "License :: OSI Approved :: Apache Software License", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", +] +dependencies = [ + "cffi", +] + +[project.urls] +Homepage = "https://www.ada-url.com/" +Documentation = "https://ada-url.readthedocs.io" +Repository = "https://github.com/ada-url/ada-python" + +[tool.setuptools.packages.find] +exclude = ["tests"] + [tool.black] line-length = 88 target-version = ['py38'] @@ -22,6 +49,11 @@ quote-style = "single" select = ["E", "F"] ignore = ["E501"] +[tool.coverage.run] +include = [ + "ada_url/**", +] + [tool.cibuildwheel] build = [ "cp38-*", diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index d46d3b8..0000000 --- a/setup.cfg +++ /dev/null @@ -1,45 +0,0 @@ -[metadata] -name = ada-url -version = 1.14.0 -description = 'URL parser and manipulator based on the WHAT WG URL standard' -long_description = file: README.rst -long_description_content_type = text/x-rst -author = Bo Bayles -author_email = bo@bbayles.com -license = Apache 2.0 -license_files = - LICENSE -classifiers = - License :: OSI Approved :: Apache Software License - Programming Language :: Python :: 3 - Programming Language :: Python :: 3 :: Only -project_urls = - homepage = https://github.com/ada-url/ada-python - -[options] -packages = find: -python_requires = >=3.8 -include_package_data = True -install_requires = - cffi - -[options.packages.find] -exclude = - tests - -[options.package_data] -ada_url = - *.c - *.cpp - *.o - *.so - *.h - py.typed - -[coverage:run] -include = - ada_url/** - -[coverage:report] -exclude_lines = - if __name__ == .__main__.: