Skip to content

Commit

Permalink
nstemplate.py -> nstemplate, installed json2yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
vokimon committed Apr 1, 2022
1 parent 93367c0 commit 15eff3f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## unreleased

- `json2yaml`: new script to have a yaml based pretty printed view on json data
- Renamed script `nstemplate.py` as `nstemplate` (removed `.py`)
- pytest utils documented

## yamlns 0.10.0 (2022-03-23)

- pytest utils:
Expand Down
10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
long_description_content_type = 'text/markdown',
license = 'GNU General Public License v3 or later (GPLv3+)',
packages=find_packages(exclude=['*_[tT]est*']),
scripts=[
'yamlns/nstemplate.py',
],
entry_points=dict(
console_scripts = [
'json2yaml = yamlns.json2yaml:main',
'nstemplate = yamlns.nstemplate:main',
'nstemplate.py = yamlns.nstemplate:deprecated', # backwards compatibility
],
pytest11 = [
"yamlns_tests = yamlns.pytestutils",
'yamlns_tests = yamlns.pytestutils',
],
),
install_requires=[
Expand Down
7 changes: 7 additions & 0 deletions yamlns/nstemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ def main(args=sys.argv) : # pragma: no cover
parser.print_help()
return -1

def deprecated(): # pragma: no cover
print(
"The script nstemplate.py is deprecated. "
"Use nstemplate instead (without the .py extension)"
)
sys.exit(-1)


if __name__ == '__main__': # pragma: no cover
sys.exit(main())
Expand Down

0 comments on commit 15eff3f

Please sign in to comment.