-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert to build as a module using hatchling
Converts the project to be structured so that it can be built into wheels using `python3 -m build`. The build system chosen is hatchling, because it is very simple to use. Note that now instead of using ./main.py to invoke the script, the module installs a command called `spec-parser` that is used instead
- Loading branch information
Showing
21 changed files
with
82 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[project] | ||
name = "spec-parser" | ||
description = "Parse SPDX Spec Markdown Files" | ||
dynamic = ["version"] | ||
dependencies = [ | ||
"Jinja2 == 3.1.2", | ||
"jsonpickle == 3.0.2", | ||
"rdflib == 7.0.0", | ||
] | ||
required-python = ">= 3.8" | ||
authors = [ | ||
{name = "Joshua Watt", email = "[email protected]"}, | ||
] | ||
readme = "README.md" | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"Topic :: Software Development :: Build Tools", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/spdx/spec-parser" | ||
Repository = "https://github.com/spdx/spec-parser.git" | ||
Issues = "https://github.com/spdx/spec-parser/issues" | ||
|
||
[project.scripts] | ||
spec-parser = "spec_parser.main:main" | ||
|
||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.hatch.version] | ||
path = "src/spec_parser/__init__.py" |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#! /usr/bin/env python3 | ||
# | ||
# Copyright (c) 2024 Joshua Watt | ||
# | ||
# SPDX-License-Identifier: MIT | ||
|
||
import sys | ||
|
||
from .main import main | ||
|
||
if __name__ == "__main__": | ||
sys.exit(main()) |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.