Switch README to RST and add lint
The default readme had an issue when publishing to pypi, so let's clean up the readme and add it to the linters so we won't have to clean it up later. Change-Id: I3c9ef884f166fe6714ac297a20add2259f1f9f46
This commit is contained in:
parent
39e4b415c2
commit
38442259c3
71
ansible-role-tripleo-{{cookiecutter.project_name}}/.gitignore
vendored
Normal file
71
ansible-role-tripleo-{{cookiecutter.project_name}}/.gitignore
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
|
||||
# C extensions
|
||||
*.so
|
||||
|
||||
# Distribution / packaging
|
||||
.Python
|
||||
env/
|
||||
develop-eggs/
|
||||
dist/
|
||||
downloads/
|
||||
eggs/
|
||||
.eggs/
|
||||
lib/
|
||||
lib64/
|
||||
sdist/
|
||||
var/
|
||||
container_registry.egg-info/
|
||||
.installed.cfg
|
||||
*.egg
|
||||
|
||||
# PyInstaller
|
||||
# Usually these files are written by a python script from a template
|
||||
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
||||
*.manifest
|
||||
*.spec
|
||||
|
||||
# Installer logs
|
||||
pip-log.txt
|
||||
pip-delete-this-directory.txt
|
||||
|
||||
# Unit test / coverage reports
|
||||
htmlcov/
|
||||
.tox/
|
||||
.coverage
|
||||
.coverage.*
|
||||
.cache
|
||||
nosetests.xml
|
||||
coverage.xml
|
||||
*,cover
|
||||
|
||||
# Translations
|
||||
*.mo
|
||||
*.pot
|
||||
|
||||
# Django stuff:
|
||||
*.log
|
||||
|
||||
# Sphinx documentation
|
||||
doc/build/
|
||||
|
||||
# PyBuilder
|
||||
target/
|
||||
|
||||
# virtualenv
|
||||
.venv/
|
||||
|
||||
# jenkins config
|
||||
jenkins/config.ini
|
||||
playbooks/debug.yml
|
||||
|
||||
# Files created by releasenotes build
|
||||
releasenotes/build
|
||||
|
||||
# Editors
|
||||
.*.sw[klmnop]
|
||||
|
||||
# ansible retry files
|
||||
*.retry
|
@ -1,29 +0,0 @@
|
||||
# TripleO {{ cookiecutter.project_name }}#
|
||||
|
||||
A role to manage {{ cookiecutter.project_name }} tasks for TripleO
|
||||
|
||||
## Role Variables ##
|
||||
|
||||
**Variables used for {{ cookiecutter.project_name }}**
|
||||
|
||||
| Name | Default Value | Description |
|
||||
|-------------------|---------------------|----------------------|
|
||||
| | | |
|
||||
|
||||
|
||||
## Requirements ##
|
||||
|
||||
- ansible >= 2.4
|
||||
- python >= 2.6
|
||||
|
||||
## Dependencies ##
|
||||
|
||||
None
|
||||
|
||||
## Example Playbooks ##
|
||||
|
||||
|
||||
|
||||
## License ##
|
||||
|
||||
Apache 2.0
|
@ -0,0 +1,44 @@
|
||||
TripleO {{ cookiecutter.project_name }}
|
||||
=======================================
|
||||
|
||||
A role to manage {{ cookiecutter.project_name }} tasks for TripleO
|
||||
|
||||
Role Variables
|
||||
--------------
|
||||
|
||||
.. list-table:: Variables used for {{ cookiecutter.project_name }}
|
||||
:widths: auto
|
||||
:header-rows: 1
|
||||
|
||||
* - Name
|
||||
- Default Value
|
||||
- Description
|
||||
* - `{{ cookiecutter.project_name|lower|replace('-', '_') }}_debug`
|
||||
- `False`
|
||||
- Enable debug option in {{ cookiecutter.project_name }}
|
||||
|
||||
Requirements
|
||||
------------
|
||||
|
||||
- ansible >= 2.4
|
||||
- python >= 2.6
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
None
|
||||
|
||||
Example Playbooks
|
||||
-----------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
- hosts: localhost
|
||||
become: true
|
||||
roles:
|
||||
- {{ cookiecutter.project_name }}
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
Apache 2.0
|
@ -1 +1,2 @@
|
||||
---
|
||||
{{ cookiecutter.project_name|lower|replace('-', '_') }}_debug: False
|
||||
|
@ -2,7 +2,7 @@
|
||||
name = ansible-role-tripleo-{{ cookiecutter.project_name }}
|
||||
summary = ansible-role-tripleo-{{ cookiecutter.project_name }} - Ansible {{ cookiecutter.project_name }} role for the TripleO project.
|
||||
description-file =
|
||||
README.md
|
||||
README.rst
|
||||
author = TripleO Team
|
||||
author-email = {{ cookiecutter.author_email }}
|
||||
home-page = https://git.openstack.org/cgit/openstack/ansible-role-tripleo-{{ cookiecutter.project_name }}
|
||||
|
@ -1 +1,2 @@
|
||||
docutils # OSI-Approved Open Source, Public Domain
|
||||
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
|
||||
|
@ -20,6 +20,8 @@ commands = bindep test
|
||||
|
||||
[testenv:pep8]
|
||||
commands =
|
||||
# Check the readme for python release
|
||||
python setup.py check --strict -r
|
||||
# Run hacking/flake8 check for all python files
|
||||
bash -c "git ls-files | grep -v releasenotes | xargs grep --binary-files=without-match \
|
||||
--files-with-match '^.!.*python$' \
|
||||
|
Loading…
Reference in New Issue
Block a user