Skip to content

Commit 7647c35

Browse files
committed
Build aboutcode.hashid as a package
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 9a5f070 commit 7647c35

File tree

3 files changed

+90
-0
lines changed

3 files changed

+90
-0
lines changed

aboutcode/hashid/README.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
aboutcode.hashid
2+
==================
3+
4+
This is a library of utilities to compute ids and file paths for AboutCode using VCID and PURLs.
5+
6+
License
7+
-------
8+
9+
Copyright (c) nexB Inc. and others. All rights reserved.
10+
11+
SPDX-License-Identifier: Apache-2.0
12+
13+
See https://github.com/aboutcode-org/vulnerablecode for support or download.
14+
15+
See https://aboutcode.org for more information about AboutCode OSS projects.

pyproject-aboutcode.hashid.toml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
[build-system]
2+
requires = [ "flot>=0.7.0" ]
3+
build-backend = "flot.buildapi"
4+
5+
[project]
6+
name = "aboutcode.hashid"
7+
version = "0.1.0"
8+
description = "A library for aboutcode hash-based identifiers for VCID, and PURLs"
9+
readme = "aboutcode/hashid/README.rst"
10+
license = { text = "Apache-2.0 AND Python-2.0" }
11+
requires-python = ">=3.8"
12+
13+
authors = [
14+
{ name = "AboutCode, nexB Inc. and others", email = "[email protected]" },
15+
]
16+
17+
keywords = [
18+
"purl",
19+
"Package-URL",
20+
"open source",
21+
"package",
22+
"sca",
23+
"scan",
24+
"VCID",
25+
"hash",
26+
]
27+
28+
classifiers = [
29+
"Development Status :: 5 - Production/Stable",
30+
"Intended Audience :: Developers",
31+
"Programming Language :: Python :: 3",
32+
"Programming Language :: Python :: 3 :: Only",
33+
"Topic :: Software Development",
34+
"Topic :: Utilities",
35+
]
36+
37+
dependencies = [
38+
"packageurl_python >= 0.15.6",
39+
]
40+
41+
urls = { Homepage = "https://github.com/aboutcode-org/vulnerablecode" }
42+
43+
44+
[tool.bumpversion]
45+
current_version = "0.1.0"
46+
allow_dirty = true
47+
48+
files = [
49+
{ filename = "pyproject-aboutcode.hashid.toml" },
50+
]
51+
52+
[tool.flot]
53+
includes = [
54+
"aboutcode/**/*",
55+
]
56+
57+
excludes = [
58+
# Python compiled files
59+
"**/*.py[cod]",
60+
"**/*.egg-info",
61+
# Various junk and temp files
62+
"**/.DS_Store",
63+
"**/*~",
64+
"**/.*.sw[po]",
65+
"**/.ve",
66+
"**/*.bak",
67+
"**/.ipynb_checkpoints",
68+
"aboutcode/hashid/python.LICENSE",
69+
]
70+
71+
metadata_files = ["apache-2.0.LICENSE", "NOTICE", "aboutcode/hashid/python.LICENSE"]
72+
editable_paths = ["aboutcode"]
73+

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ dev =
121121
# debug
122122
django-debug-toolbar
123123
pyinstrument
124+
flot
125+
twine
124126

125127
[options.entry_points]
126128
console_scripts =

0 commit comments

Comments
 (0)