diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..d99a459 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,44 @@ +[build-system] +requires = ["setuptools>=64.0.0", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "mailmerge" +version = "2.2.3" +description = "A simple, command line mail merge tool" +keywords = ["mail merge", "mailmerge", "email"] +authors = [{ email = "awdeorio@umich.edu" }, { name = "Andrew DeOrio" }] +license = {file = "LICENSE"} +readme = "README.md" +requires-python = ">=3.6" +dependencies = [ + "click", + "jinja2", + "markdown", + "html5lib" +] + +[project.optional-dependencies] +dev = [ + "twine", + "tox", +] +test = [ + "check-manifest", + "freezegun", + "pycodestyle", + "pydocstyle", + "pylint", + "pytest", + "pytest-cov", + "pytest-mock", +] + +[project.scripts] +mailmerge = "mailmerge.__main__:main" + +[project.urls] +homepage = "https://github.com/awdeorio/mailmerge/" + +[tool.setuptools] +packages = ["mailmerge"] diff --git a/setup.py b/setup.py index 855bd1f..d037f14 100644 --- a/setup.py +++ b/setup.py @@ -1,53 +1,5 @@ -"""Mailmerge build and install configuration.""" -from pathlib import Path -import setuptools +"""Support legacy tools.""" +from setuptools import setup -# Read the contents of README file -PROJECT_DIR = Path(__file__).parent -README = PROJECT_DIR/"README.md" -LONG_DESCRIPTION = README.open(encoding="utf8").read() - - -setuptools.setup( - name="mailmerge", - description="A simple, command line mail merge tool", - long_description=LONG_DESCRIPTION, - long_description_content_type="text/markdown", - version="2.2.3", - author="Andrew DeOrio", - author_email="awdeorio@umich.edu", - url="https://github.com/awdeorio/mailmerge/", - license="MIT", - packages=["mailmerge"], - keywords=["mail merge", "mailmerge", "email"], - install_requires=[ - "click", - "jinja2", - "markdown", - "html5lib" - ], - extras_require={ - "dev": [ - "pdbpp", - "twine", - "tox", - ], - "test": [ - "check-manifest", - "freezegun", - "pycodestyle", - "pydocstyle", - "pylint", - "pytest", - "pytest-cov", - "pytest-mock", - ], - }, - python_requires='>=3.6', - entry_points={ - "console_scripts": [ - "mailmerge = mailmerge.__main__:main", - ] - }, -) +setup()