Skip to content

Commit

Permalink
Update to pyproject.toml/hatch for builds
Browse files Browse the repository at this point in the history
  • Loading branch information
firecat53 committed Oct 13, 2022
1 parent 57f6686 commit 4ea5852
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 47 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
build
dist
test_emails/
urlscan/_version.py
MANIFEST
File renamed without changes.
3 changes: 0 additions & 3 deletions MANIFEST.in

This file was deleted.

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

[project]
name = "urlscan"
dynamic = ["version"]
description = "View/select the URLs in an email message or file"
readme = "README.md"
license = "GPL-2.0"
authors = [
{ name = "Scott Hansen", email = "[email protected]" },
]
keywords = [
"email",
"mutt",
"tmux",
"urlscan",
"urlview",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Console :: Curses",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Utilities",
]
dependencies = [
"urwid>=1.2.1",
]

[project.scripts]
urlscan = "urlscan.__main__:main"

[project.urls]
Homepage = "https://github.com/firecat53/urlscan"

[tool.hatch.version]
source = "vcs"

[tool.hatch.build.hooks.vcs]
version-file = "urlscan/_version.py"

[tool.hatch.build.targets.wheel.shared-data]
LICENSE = "share/doc/urlscan/LICENSE"
"README.md" = "share/doc/urlscan/README.md"
"urlscan.1" = "share/man/man1/urlscan.1"

[tool.hatch.build.targets.sdist]
include = [
"/urlscan",
]
44 changes: 0 additions & 44 deletions setup.py

This file was deleted.

0 comments on commit 4ea5852

Please sign in to comment.