diff --git a/pyproject.toml b/pyproject.toml index 411bae8..736a702 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,45 @@ [build-system] -requires = ["setuptools>=42.2.0", "setuptools_scm[toml]>=3.4.3"] +requires = ["setuptools>=61.2", "setuptools_scm[toml]>=3.4.3"] build-backend = "setuptools.build_meta" +[project] +name = "markdownify" +authors = [{name = "Matthew Tretter", email = "m@tthewwithanm.com"}] +description = "Convert HTML to markdown." +readme = "README.rst" +classifiers = [ + "Environment :: Web Environment", + "Framework :: Django", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + "Programming Language :: Python :: 2.5", + "Programming Language :: Python :: 2.6", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Topic :: Utilities", +] +dependencies = [ + "beautifulsoup4>=4.9,<5", + "six>=1.15,<2" +] +dynamic = ["version"] + +[project.urls] +Homepage = "http://github.com/matthewwithanm/python-markdownify" +Download = "http://github.com/matthewwithanm/python-markdownify/tarball/master" + +[project.scripts] +markdownify = "markdownify.main:main" + +[tool.setuptools] +zip-safe = false +include-package-data = true + +[tool.setuptools.packages.find] +include = ["markdownify", "markdownify.*"] +namespaces = false + [tool.setuptools_scm] diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index ebace18..0000000 --- a/setup.cfg +++ /dev/null @@ -1,33 +0,0 @@ -[metadata] -name = markdownify -author = Matthew Tretter -author_email = m@tthewwithanm.com -description = Convert HTML to markdown. -url = http://github.com/matthewwithanm/python-markdownify -download_url = http://github.com/matthewwithanm/python-markdownify/tarball/master -long_description = file: README.rst -classifiers = - Environment :: Web Environment - Framework :: Django - Intended Audience :: Developers - License :: OSI Approved :: MIT License - Operating System :: OS Independent - Programming Language :: Python :: 2.5 - Programming Language :: Python :: 2.6 - Programming Language :: Python :: 2.7 - Programming Language :: Python :: 3.6 - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Topic :: Utilities - -[options] -packages = find: -zip_safe = False -install_requires = beautifulsoup4>=4.9,<5; six>=1.15,<2 -include_package_data = True - -[options.packages.find] -include = markdownify, markdownify.* - -[options.entry_points] -console_scripts = markdownify = markdownify.main:main