Skip to content

Latest commit

 

History

History
88 lines (63 loc) · 2.08 KB

CONTRIBUTING.md

File metadata and controls

88 lines (63 loc) · 2.08 KB

Installation

$ git clone https://github.com/SUSE-Enceladus/csp-billing-adapter-amazon.git
$ cd csp-billing-adapter-amazon

# Activate virtual Environment then install
# csp-billing-adapter-amazon and dev dependences in editable mode
$ pip install -e .[dev]

csp-billing-adapter-amazon is now installed in the active virtual environment in development mode.

Dev Requirements

  • bumpversion

Testing Requirements

  • coverage
  • flake8
  • pytest-cov

Contribution Checklist

Versions & Releases

csp-billing-adapter-amazon adheres to Semantic versioning; see http://semver.org/ for details.

bumpversion is used for release version management, and is configured in setup.cfg:

$ bumpversion major|minor|patch
$ git push

Bumpversion will create a commit with version updated in all locations. The annotated tag is created separately.

$ git tag -a v{version}
# git tag -a v0.0.1

# Create a message with the changes since last release and push tags.
$ git push --tags

Unit & Integration Tests

All tests should pass and test coverage should remain above 90%.

The tests and coverage can be run directly via pytest.

$ pytest --cov=csp_billing_adapter_amazon

Code Style

Source should pass flake8 and pep8 standards.

$ flake8 csp_billing_adapter_amazon

Signing Commits

The repository and the code base patches sent for inclusion must be GPG signed. See the GitHub article, Signing commits using GPG, for more information.