-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #149 from awdeorio/pyproject
Replace setup.py with pyproject.toml
- Loading branch information
Showing
2 changed files
with
47 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |