Skip to content

Commit

Permalink
Switch to pyproject.toml + setuptools_scm
Browse files Browse the repository at this point in the history
This switches to using a pyproject.toml with setuptools_scm to package
Honcho. With this configuration, MANIFEST.in is no longer needed, as
setuptools_scm automatically finds SCM-tracked package data files.
  • Loading branch information
nickstenning committed Oct 6, 2024
1 parent 9eeb9b4 commit 37e02cd
Showing 8 changed files with 61 additions and 88 deletions.
3 changes: 3 additions & 0 deletions .git_archival.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node: $Format:%H$
node-date: $Format:%cI$
describe-name: $Format:%(describe:tags=true,match=*[0-9]*)$
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git_archival.txt export-subst
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -7,3 +7,4 @@
/.tox
/build
/dist
/honcho/_version.py
7 changes: 0 additions & 7 deletions MANIFEST.in

This file was deleted.

5 changes: 4 additions & 1 deletion honcho/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
__version__ = '1.1.0'
try:
from ._version import __version__
except ImportError:
__version__ = '0.0.0+unknown'
52 changes: 52 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[build-system]
requires = ["setuptools", "setuptools_scm[toml]"]
build-backend = "setuptools.build_meta"

[project]
name = "honcho"
description = "Honcho: a Python clone of Foreman. For managing Procfile-based applications."
readme = "README.rst"
authors = [
{name = "Nick Stenning", email = "nick@whiteink.com"}
]
license.file = "LICENSE"
keywords = ["sysadmin", "process", "procfile"]
urls."Source" = "https://github.com/nickstenning/honcho"
classifiers = [
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
dependencies = [
'colorama; sys_platform=="win32"',
]
dynamic = ["version"]

[project.optional-dependencies]
export = ["jinja2>=3.1.2,<4"]
docs = ["sphinx"]

[project.scripts]
honcho = "honcho.command:main"

[project.entry-points.honcho_exporters]
runit = "honcho.export.runit:Export"
supervisord = "honcho.export.supervisord:Export"
systemd = "honcho.export.systemd:Export"
upstart = "honcho.export.upstart:Export"

[tool.setuptools.packages.find]
where = ["."]
include = ["honcho*"]
exclude = ["tests*"]

[tool.setuptools_scm]
write_to = "honcho/_version.py"
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

78 changes: 0 additions & 78 deletions setup.py

This file was deleted.

0 comments on commit 37e02cd

Please sign in to comment.