Skip to content
Snippets Groups Projects
Commit 821e7acb authored by nimrod's avatar nimrod
Browse files

Python module scaffolding.

Just enough to build and install a wheel. Now all that's left is to
write the code. Easy, right?
parent 60072105
No related branches found
No related tags found
No related merge requests found
Pipeline #2542 passed
......@@ -2,3 +2,11 @@
include:
- project: shore/ci-stuff
file: templates/pre-commit.yml
- project: shore/ci-stuff
file: templates/python.yml
install-wheel:
extends: .install-wheel
script:
- python3 -m yamltool
- yt
......@@ -63,7 +63,7 @@ repos:
--line-length=79
- repo: https://github.com/PyCQA/prospector.git
rev: 1.5.1
rev: 1.5.3.1
hooks:
- id: prospector
args:
......
include *.rst
include *.txt
exclude .pre-commit-config.yaml
exclude .gitlab-ci.yml
exclude .gitignore
[bumpversion]
current_version = 0.0.1
commit = True
tag = True
[bdist_wheel]
universal = 1
[bumpversion:file:setup.py]
[bumpversion:glob:*/__init__.py]
setup.py 0 → 100644
from setuptools import setup, find_packages
import yamltool
with open("README.rst", "r", encoding="utf-8") as readme:
long_description = readme.read()
setup(
name="yamltool",
version=yamltool.__version__,
description=yamltool.__doc__.splitlines()[0],
long_description=long_description,
long_description_content_type="text/x-rst",
url="https://git.shore.co.il/nimrod/yamltool",
author="Nimrod Adar",
author_email="nimrod@shore.co.il",
license="MIT",
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development",
"Topic :: Software Development :: Debuggers",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Text Processing :: Markup",
"Topic :: Utilities",
],
keywords="yaml",
packages=find_packages(),
install_requires=[
"ruamel.yaml>=0.15.0",
],
entry_points={"console_scripts": ["yt=yamltool.__main__:main"]},
)
"""YAML tool, a clone of the json.tool Python module for YAML.
This tool provides a simple command line interface to validate and pretty-print
YAML documents while trying to preserve as much as possible from the original
documents (like comments and anchors).
"""
__version__ = "0.0.1"
"""YAML tool, a clone of the json.tool Python module for YAML.
This tool provides a simple command line interface to validate and pretty-print
YAML documents while trying to preserve as much as possible from the original
documents (like comments and anchors).
"""
def main():
"""Main entrypoint."""
return
if __name__ == "__main__":
main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment