Skip to content

Commit

Permalink
Merge pull request #149 from awdeorio/pyproject
Browse files Browse the repository at this point in the history
Replace setup.py with pyproject.toml
  • Loading branch information
awdeorio authored Feb 2, 2024
2 parents 17f7a40 + 6204e9c commit d64a637
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 51 deletions.
44 changes: 44 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 = "[email protected]" }, { 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"]
54 changes: 3 additions & 51 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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="[email protected]",
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()

0 comments on commit d64a637

Please sign in to comment.