Skip to content

Commit 336618a

Browse files
committed
Add pyproject.toml and remove setup.py
1 parent 263f92e commit 336618a

File tree

3 files changed

+75
-117
lines changed

3 files changed

+75
-117
lines changed

.github/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies:
1818
# Add any dependency files used.
1919
- .pre-commit-config.yaml
2020
- requirements*.txt
21-
- setup.py
21+
- pyproject.toml
2222
docker:
2323
- changed-files:
2424
- any-glob-to-any-file:

pyproject.toml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# For more information about configuring project metadata for the
2+
# hatch build backend, please see
3+
# https://hatch.pypa.io/latest/config/metadata/
4+
[build-system]
5+
build-backend = "hatchling.build"
6+
requires = ["hatchling"]
7+
8+
[project]
9+
authors = [
10+
{ name = "Cybersecurity and Infrastructure Security Agency", email = "github@cisa.dhs.gov" }
11+
]
12+
classifiers = [
13+
# How mature is this project? Common values are
14+
# 3 - Alpha
15+
# 4 - Beta
16+
# 5 - Production/Stable
17+
"Development Status :: 3 - Alpha",
18+
# Indicate who your project is intended for
19+
"Intended Audience :: Developers",
20+
# Pick your license as you wish (should match "license" above)
21+
"License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication",
22+
# Specify the Python versions you support here. In particular, ensure
23+
# that you indicate whether you support Python 2, Python 3 or both.
24+
"Programming Language :: Python :: 3",
25+
"Programming Language :: Python :: 3 :: Only",
26+
"Programming Language :: Python :: 3.9",
27+
"Programming Language :: Python :: 3.10",
28+
"Programming Language :: Python :: 3.11",
29+
"Programming Language :: Python :: 3.12",
30+
"Programming Language :: Python :: 3.13",
31+
"Programming Language :: Python :: 3.14",
32+
"Programming Language :: Python :: Implementation :: CPython",
33+
]
34+
dependencies = [
35+
"docopt",
36+
"schema",
37+
]
38+
description = "Example Python library"
39+
dynamic = ["version"]
40+
keywords = ["skeleton"]
41+
license = " CC-BY-1.0"
42+
name = "example"
43+
readme = "README.md"
44+
requires-python = ">=3.9"
45+
46+
[project.optional-dependencies]
47+
# IMPORTANT: Keep type hinting-related dependencies of the dev section
48+
# in sync with the mypy pre-commit hook configuration (see
49+
# .pre-commit-config.yaml). Any changes to type hinting-related
50+
# dependencies here should be reflected in the additional_dependencies
51+
# field of the mypy pre-commit hook to avoid discrepancies in type
52+
# checking between environments.
53+
dev = [
54+
"types-docopt",
55+
"types-setuptools",
56+
]
57+
test = [
58+
"coverage",
59+
"coveralls",
60+
"pre-commit",
61+
"pytest-cov",
62+
"pytest",
63+
]
64+
65+
[project.scripts]
66+
example = "example.example:main"
67+
68+
[project.urls]
69+
Mission = "https://www.cisa.gov/cybersecurity"
70+
Source = "https://github.com/cisagov/skeleton-python-library"
71+
Tracker = "https://github.com/cisagov/skeleton-python-library/issues"
72+
73+
[tool.hatch.version]
74+
path = "src/example/_version.py"

setup.py

Lines changed: 0 additions & 116 deletions
This file was deleted.

0 commit comments

Comments
 (0)