Skip to content

Commit

Permalink
Switch to hatchling build system
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Oct 18, 2024
1 parent 2838f12 commit 0f91d12
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 77 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ traceback*txt
.coverage
coverage.xml
tags

doc/_build
doc/README.rst
15 changes: 0 additions & 15 deletions MANIFEST.in

This file was deleted.

2 changes: 0 additions & 2 deletions doc/.gitignore

This file was deleted.

8 changes: 6 additions & 2 deletions pudb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@
"""


import re
import sys
from importlib import metadata

from pudb.settings import load_config


NUM_VERSION = (2024, 1, 2)
VERSION = ".".join(str(nv) for nv in NUM_VERSION)
VERSION = metadata.version("pudb")
_ver_match = re.match("^([0-9.]+)([a-z0-9]*?)$", VERSION)
assert _ver_match
NUM_VERSION = tuple(int(nr) for nr in _ver_match.group(1).split("."))
__version__ = VERSION


Expand Down
58 changes: 58 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,61 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "pudb"
version = "2024.1.2"
description = "A full-screen, console-based Python debugger"
readme = "README.rst"
license = "MIT"
requires-python = "~=3.8"
authors = [
{ name = "Andreas Kloeckner", email = "inform@tiker.net" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: Console :: Curses",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Software Development",
"Topic :: Software Development :: Debuggers",
"Topic :: Software Development :: Quality Assurance",
"Topic :: System :: Recovery Tools",
"Topic :: System :: Software Distribution",
"Topic :: Terminals",
"Topic :: Utilities",
]
dependencies = [
"jedi>=0.18,<1",
"packaging>=20.0",
"pygments>=2.7.4",
"urwid>=2.4",
"urwid_readline",
]

[project.optional-dependencies]
completion = [
"shtab",
]

[project.scripts]
pudb = "pudb.run:main"

[tool.hatch.build.targets.sdist]
include = [
"/pudb",
"/doc",
"/try-the-debugger.sh",
"/debug_me.py",
"/examples",
]

[tool.ruff]
preview = true

Expand Down
58 changes: 0 additions & 58 deletions setup.py

This file was deleted.

0 comments on commit 0f91d12

Please sign in to comment.