diff --git a/pyproject.toml b/pyproject.toml index 4e3f329..c38189f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,2 +1,51 @@ +[build-system] +requires = [ "setuptools",] +build-backend = "setuptools.build_meta" + +[project] +name = "check_link" +version = "0.0.10.post1" +description = "Check if URL is available" +classifiers = [ "Development Status :: 4 - Beta", "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10",] +keywords = [ "URL", "validator", "HTTP",] +requires-python = ">= 3.7" +dependencies = [ "httpx", "requests",] +authors = [ + {name = "DataShades", email = "datashades@linkdigital.com.au"}, + {name = "Sergey Motornyuk", email = "sergey.motornyuk@linkdigital.com.au"}, +] +maintainers = [ + {name = "DataShades", email = "datashades@linkdigital.com.au"}, +] + +[project.readme] +file = "README.md" +content-type = "text/markdown" + +[project.license] +text = "AGPL" + +[project.urls] +Homepage = "https://github.com/DataShades/check-link" + +[project.optional-dependencies] +faster = [] +cli = [ "click",] +dev = [ "pytest", "pytest-asyncio", "pytest-httpx", "pytest-cov", "aioresponses", "responses", "faker",] + +[project.scripts] +check-link = "check_link.cli:main" + +[tool.setuptools] +include-package-data = false + +[tool.pytest.ini_options] +testpaths = [ "tests",] +asyncio_mode = "auto" + +[tool.setuptools.packages.find] +exclude = [ "tests",] +namespaces = false + [tool.black] preview = true \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 3e7e464..e69de29 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,60 +0,0 @@ -[metadata] -name = check_link -version = 0.0.10 -description = Check if URL is available -long_description = file: README.md -long_description_content_type = text/markdown -url = https://github.com/DataShades/check-link -author = Sergey Motornyuk -author_email = sergey.motornyuk@linkdigital.com.au -license = AGPL -classifiers = - Development Status :: 4 - Beta - License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+) - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 -keywords = - URL - validator - HTTP - -[options] -python_requires = >= 3.7 -install_requires = - # aiohttp - httpx - requests - -packages = find: - -[options.extras_require] -faster = - # aiohttp[speedups] - # aiodns - -cli = - click - -dev = - pytest - pytest-asyncio - pytest-httpx - pytest-cov - aioresponses - responses - faker - -[options.entry_points] -console_scripts = - check-link = check_link.cli:main - -[options.packages.find] -exclude = - tests - - -[tool:pytest] -testpaths = tests -asyncio_mode = auto