Skip to content

Commit 6dc8215

Browse files
authored
Add link to API doc in README and pyproject.toml (#41)
* Add link to API doc in README and pyproject.toml - Add API doc link to README - Update pyproject.toml - Add more project.urls, including API doc - Use hyphen in project name (PEP 503 normalized form of repository name) Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com> * Use spdx-python-model name everywhere Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com> --------- Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
1 parent 220bd4b commit 6dc8215

3 files changed

Lines changed: 18 additions & 12 deletions

File tree

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
1-
# SPDX Python model
1+
# spdx-python-model
22

33
[![PyPI - Version](https://img.shields.io/pypi/v/spdx-python-model)](https://pypi.org/project/spdx-python-model/)
44
![Apache-2.0 license](https://img.shields.io/github/license/spdx/spdx-python-model)
55

6-
Generated Python code for [SPDX specification version 3][spdx-spec].
6+
`spdx-python-model` is a Python library for working with the SPDX 3 data model.
77

8-
All bindings in this repository are generated using
9-
[shacl2code](https://github.com/JPEWdev/shacl2code) at the time the package is
10-
built.
8+
Read the [API documentation](https://spdx.github.io/spdx-python-model/).
9+
10+
All bindings in this repository are auto-generated from the RDF and SHACL
11+
definitions of the [SPDX specification version 3][spdx-spec] using
12+
[shacl2code](https://github.com/JPEWdev/shacl2code) during the package build
13+
process.
1114

1215
**NOTE:** The bindings are pretty low level, intended for more directly
1316
manipulating SPDX files. While they are fully functions, they lack higher level
1417
helper functions that may be useful for creating SPDX documents. If you want a
1518
higher level approach, please see the
1619
[SPDX Python Tools](https://github.com/spdx/tools-python) (however, it
17-
doesn't yet support SPDX 3)
20+
doesn't yet support SPDX 3).
1821

1922
[spdx-spec]: https://spdx.org/specifications
2023

pyproject.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "spdx_python_model"
2+
name = "spdx-python-model"
33
description = "SPDX Model Python Bindings"
44
dynamic = ["version"]
55
dependencies = []
@@ -29,6 +29,7 @@ classifiers = [
2929
"Programming Language :: Python :: 3.14",
3030
]
3131
license = "Apache-2.0"
32+
license-files = ["LICENSE"]
3233

3334
[project.optional-dependencies]
3435
dev = [
@@ -38,9 +39,11 @@ dev = [
3839
]
3940

4041
[project.urls]
41-
Homepage = "https://github.com/spdx/spdx-python-model"
42-
Repository = "https://github.com/spdx/spdx-python-model.git"
43-
Issues = "https://github.com/spdx/spdx-python-model/issues"
42+
homepage = "https://spdx.github.io/spdx-python-model/"
43+
repository = "https://github.com/spdx/spdx-python-model.git"
44+
download = "https://github.com/spdx/spdx-python-model/releases"
45+
documentation = "https://spdx.github.io/spdx-python-model/doc/"
46+
issues = "https://github.com/spdx/spdx-python-model/issues"
4447

4548
[build-system]
4649
requires = [

www/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7-
<title>SPDX Python Model</title>
7+
<title>spdx-python-model</title>
88
<meta name="description"
99
content="Python bindings for the SPDX 3 data model. Install instructions. API documentation.">
1010
<style>
@@ -44,7 +44,7 @@
4444
</head>
4545

4646
<body>
47-
<h1>SPDX Python Model</h1>
47+
<h1>spdx-python-model</h1>
4848
<p class="tagline">Python bindings for the SPDX 3 data model.</p>
4949

5050
<h2>Install</h2>

0 commit comments

Comments
 (0)