-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move from setup.py to pyproject.toml for creation of zcbor packages
setup.py is deprecated. This involved restructuring a bit to also avoid the data_files feature which was used to include the src and include directories, but which is discouraged/deprecated, and needed lots of resolving logic in zcbor to locate in different types of installations.
- Loading branch information
1 parent
89a9d0f
commit b679ccf
Showing
13 changed files
with
85 additions
and
171 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
This file was deleted.
Oops, something went wrong.
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,14 @@ | ||
#!/usr/bin/env python3 | ||
# | ||
# Copyright (c) 2021 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
from pathlib import Path | ||
|
||
from .zcbor.zcbor import ( | ||
CddlValidationError, | ||
DataTranslator, | ||
main | ||
) |
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,40 @@ | ||
[build-system] | ||
requires = ['setuptools'] | ||
build-backend = 'setuptools.build_meta' | ||
|
||
[project] | ||
name = 'zcbor' | ||
description = 'Code generation and validation using CDDL schemas' | ||
readme = 'README.md' | ||
license = {text = 'Apache'} | ||
requires-python = ">=3.8" | ||
classifiers = [ | ||
'Development Status :: 4 - Beta', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: C', | ||
'Topic :: File Formats :: JSON :: JSON Schema', | ||
'Topic :: Software Development :: Build Tools', | ||
'Topic :: Software Development :: Code Generators', | ||
] | ||
authors = [{name = 'Nordic Semiconductor ASA'}] | ||
maintainers = [{name = 'Øyvind Rønningstad', email = '[email protected]'}] | ||
dynamic = ['dependencies', 'version'] | ||
|
||
[project.urls] | ||
Homepage = 'https://github.com/NordicSemiconductor/zcbor' | ||
|
||
[project.scripts] | ||
zcbor = 'zcbor:main' | ||
|
||
[tool.setuptools] | ||
packages = ['zcbor', 'zcbor.src', 'zcbor.include', 'zcbor.zcbor'] | ||
package-dir = {zcbor = '.'} | ||
|
||
[tool.setuptools.package-data] | ||
zcbor = ['src/*', 'include/*', 'zcbor/*'] | ||
|
||
[tool.setuptools.dynamic] | ||
version = {file = 'zcbor/VERSION'} | ||
dependencies = {file = ['scripts/requirements-base.txt']} |
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
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 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