Skip to content

Commit eca1ed8

Browse files
committed
Update package metadata
Signed-off-by: Ofek Lev <[email protected]>
1 parent 248dabd commit eca1ed8

File tree

8 files changed

+92
-80
lines changed

8 files changed

+92
-80
lines changed

.gitignore

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# root level directories
2-
dist/*
3-
build/*
4-
env/*
2+
dist/
3+
build/
4+
env/
55

66
# docs build directory
7-
docs/build/*
7+
docs/build/
88

99
# global file patterns
1010
*.log
@@ -14,20 +14,20 @@ docs/build/*
1414
*.swp
1515
*.egg-info
1616
.coverage
17-
.tox/*
18-
tests/htmlcov/*
17+
.tox/
18+
tests/htmlcov/
1919
.DS_Store
20-
.pybuild/*
20+
.pybuild/
2121
.python-version
2222
*~
2323
*.tmp
2424
.pre-commit-config.yaml
2525
.vscode
2626

2727
# Debian generated files
28-
debian/.debhelper/*
28+
debian/.debhelper/
2929
debian/*-stamp
3030
debian/files
3131
debian/*.debhelper
3232
debian/*.substvars
33-
debian/python*-tuf/*
33+
debian/python*-tuf/

.readthedocs.yaml

+7-5
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@ version: 2
77

88
# Build documentation with Sphinx
99
sphinx:
10-
builder: html
11-
configuration: docs/conf.py
12-
fail_on_warning: true
10+
builder: html
11+
configuration: docs/conf.py
12+
fail_on_warning: true
1313

1414
# Optionally build your docs in additional formats such as PDF
1515
formats: []
1616

1717
# Optionally set the version of Python and requirements required to build your docs
1818
python:
19-
install:
20-
- requirements: requirements-docs.txt
19+
install:
20+
- requirements: requirements-docs.txt
21+
- method: pip
22+
path: .

MANIFEST.in

-11
This file was deleted.

docs/MAINTAINERS.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
The project is currently managed by Justin Cappos at New York University.
22
Please see GOVERNANCE.md for the project's governance and maintainership.
33

4+
Keep in sync with /pyproject.toml at all times.
5+
46
Consensus Builder:
57

68
Justin Cappos

pyproject.toml

+73-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,78 @@
11
# Build-system section
22
[build-system]
3-
requires = ["setuptools>=40.8.0", "wheel"]
4-
build-backend = "setuptools.build_meta"
3+
requires = ["hatchling>=0.18.0"]
4+
build-backend = "hatchling.build"
5+
6+
[project]
7+
name = "tuf"
8+
description = "A secure updater framework for Python"
9+
readme = "README.md"
10+
license = "MIT OR Apache-2.0"
11+
requires-python = "~=3.7"
12+
authors = [
13+
{ email = "[email protected]" },
14+
]
15+
# Keep in sync with /docs/MAINTAINERS.txt
16+
maintainers = [
17+
{ name = "Justin Cappos", email = "[email protected]" },
18+
{ name = "Marina Moore", email = "[email protected]" },
19+
{ name = "Trishank Karthik Kuppusamy", email = "[email protected]" },
20+
{ name = "Lukas Puehringer", email = "[email protected]" },
21+
{ name = "Joshua Lock", email = "[email protected]" },
22+
{ name = "Jussi Kukkonen", email = "[email protected]" },
23+
]
24+
keywords = [
25+
"authentication",
26+
"compromise",
27+
"key",
28+
"revocation",
29+
"secure",
30+
"update",
31+
"updater",
32+
]
33+
classifiers = [
34+
"Development Status :: 4 - Beta",
35+
"Intended Audience :: Developers",
36+
"License :: OSI Approved :: Apache Software License",
37+
"License :: OSI Approved :: MIT License",
38+
"Natural Language :: English",
39+
"Operating System :: MacOS :: MacOS X",
40+
"Operating System :: Microsoft :: Windows",
41+
"Operating System :: POSIX",
42+
"Operating System :: POSIX :: Linux",
43+
"Programming Language :: Python",
44+
"Programming Language :: Python :: 3",
45+
"Programming Language :: Python :: 3.7",
46+
"Programming Language :: Python :: 3.8",
47+
"Programming Language :: Python :: 3.9",
48+
"Programming Language :: Python :: 3.10",
49+
"Programming Language :: Python :: Implementation :: CPython",
50+
"Topic :: Security",
51+
"Topic :: Software Development",
52+
]
53+
dependencies = [
54+
"requests>=2.19.1",
55+
"securesystemslib>=0.22.0",
56+
]
57+
dynamic = ["version"]
58+
59+
[project.urls]
60+
Documentation = "https://theupdateframework.readthedocs.io/en/stable/"
61+
Homepage = "https://www.updateframework.com"
62+
Issues = "https://github.com/theupdateframework/python-tuf/issues"
63+
Source = "https://github.com/in-toto/in-toto"
64+
65+
[tool.hatch.version]
66+
path = "tuf/__init__.py"
67+
68+
[tool.hatch.build.targets.sdist]
69+
include = [
70+
"/docs",
71+
"/tests",
72+
"/tuf",
73+
"/requirements*.txt",
74+
"/tox.ini",
75+
]
576

677
# Black section
778
# Read more here: https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-via-a-file

setup.cfg

-50
This file was deleted.

tox.ini

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7+
isolated_build = true
78
envlist = lint,docs,py
89
skipsdist = true
910

tuf/__init__.py

-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,4 @@
55
"""
66

77
# This value is used in the requests user agent.
8-
# setup.cfg has it hard-coded separately.
9-
# Currently, when the version is changed, it must be set in both locations.
10-
# TODO: Single-source the version number.
118
__version__ = "1.0.0"

0 commit comments

Comments
 (0)