-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
89 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Publish release to PyPI | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
|
||
jobs: | ||
pypi-publish: | ||
name: Build and upload release to PyPI | ||
runs-on: ubuntu-latest | ||
environment: release | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
- run: pip install build | ||
- run: python -m build | ||
- name: Publish package distributions to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,66 @@ | ||
[project] | ||
name = "yq" | ||
description = "Command-line YAML/XML processor - jq wrapper for YAML/XML documents" | ||
readme = "README.rst" | ||
requires-python = ">=3.8" | ||
license = { text = "Apache Software License" } | ||
authors = [{ name = "Andrey Kislyuk"}, {email = "[email protected]" }] | ||
maintainers = [{ name = "Andrey Kislyuk"}, {email = "[email protected]" }] | ||
dynamic = ["version"] | ||
classifiers = [ | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Operating System :: POSIX", | ||
"Programming Language :: Python", | ||
"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", | ||
"Programming Language :: Python :: 3.13", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Development Status :: 5 - Production/Stable", | ||
"Topic :: Software Development", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
] | ||
dependencies = [ | ||
"PyYAML >= 5.3.1", | ||
"xmltodict >= 0.11.0", | ||
"tomlkit >= 0.11.6", | ||
"argcomplete >= 1.8.1", | ||
] | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"ruff", | ||
"coverage", | ||
"build", | ||
"wheel", | ||
"mypy", | ||
] | ||
|
||
[project.urls] | ||
"Homepage"= "https://github.com/kislyuk/yq" | ||
"Documentation"= "https://xml-security.github.io/yq/" | ||
"Source Code"= "https://github.com/kislyuk/yq" | ||
"Issue Tracker"= "https://github.com/kislyuk/yq/issues" | ||
"Change Log"= "https://github.com/kislyuk/yq/blob/main/Changes.rst" | ||
|
||
[project.scripts] | ||
yq = "yq:cli" | ||
xq = "yq:xq_cli" | ||
tomlq = "yq:tq_cli" | ||
|
||
[build-system] | ||
requires = ["hatchling", "hatch-vcs"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.hatch.version] | ||
source = "vcs" | ||
|
||
[tool.black] | ||
line-length = 120 | ||
|
||
|
@@ -8,6 +71,8 @@ skip_gitignore = true | |
|
||
[tool.ruff] | ||
line-length = 120 | ||
|
||
[tool.ruff.lint] | ||
per-file-ignores = {"yq/__init__.py" = ["F401"]} | ||
|
||
[tool.mypy] | ||
|
@@ -28,6 +93,3 @@ ignore_missing_imports = true | |
[[tool.mypy.overrides]] | ||
module = "yq.version" | ||
ignore_missing_imports = true | ||
|
||
[tool.setuptools_scm] | ||
version_file = "yq/version.py" |
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