aws-mp-utils 0.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- aws_mp_utils-0.0.1/CHANGES.md +4 -0
- aws_mp_utils-0.0.1/CONTRIBUTING.md +89 -0
- aws_mp_utils-0.0.1/LICENSE +674 -0
- aws_mp_utils-0.0.1/MANIFEST.in +12 -0
- aws_mp_utils-0.0.1/PKG-INFO +55 -0
- aws_mp_utils-0.0.1/README.md +2 -0
- aws_mp_utils-0.0.1/aws_mp_utils/__init__.py +26 -0
- aws_mp_utils-0.0.1/aws_mp_utils/auth.py +64 -0
- aws_mp_utils-0.0.1/aws_mp_utils/changeset.py +128 -0
- aws_mp_utils-0.0.1/aws_mp_utils/container.py +219 -0
- aws_mp_utils-0.0.1/aws_mp_utils/exceptions.py +38 -0
- aws_mp_utils-0.0.1/aws_mp_utils/image.py +162 -0
- aws_mp_utils-0.0.1/aws_mp_utils/offer.py +63 -0
- aws_mp_utils-0.0.1/aws_mp_utils/scripts/__init__.py +0 -0
- aws_mp_utils-0.0.1/aws_mp_utils/scripts/cli.py +160 -0
- aws_mp_utils-0.0.1/aws_mp_utils/scripts/cli_utils.py +294 -0
- aws_mp_utils-0.0.1/aws_mp_utils/scripts/container.py +434 -0
- aws_mp_utils-0.0.1/aws_mp_utils/scripts/image.py +303 -0
- aws_mp_utils-0.0.1/aws_mp_utils/scripts/offer.py +147 -0
- aws_mp_utils-0.0.1/aws_mp_utils.egg-info/PKG-INFO +55 -0
- aws_mp_utils-0.0.1/aws_mp_utils.egg-info/SOURCES.txt +42 -0
- aws_mp_utils-0.0.1/aws_mp_utils.egg-info/dependency_links.txt +1 -0
- aws_mp_utils-0.0.1/aws_mp_utils.egg-info/entry_points.txt +2 -0
- aws_mp_utils-0.0.1/aws_mp_utils.egg-info/not-zip-safe +1 -0
- aws_mp_utils-0.0.1/aws_mp_utils.egg-info/requires.txt +17 -0
- aws_mp_utils-0.0.1/aws_mp_utils.egg-info/top_level.txt +1 -0
- aws_mp_utils-0.0.1/requirements-dev.txt +3 -0
- aws_mp_utils-0.0.1/requirements-test.txt +6 -0
- aws_mp_utils-0.0.1/requirements.txt +4 -0
- aws_mp_utils-0.0.1/setup.cfg +24 -0
- aws_mp_utils-0.0.1/setup.py +84 -0
- aws_mp_utils-0.0.1/tests/data/config.yaml +1 -0
- aws_mp_utils-0.0.1/tests/data/invalidconfig.yaml +1 -0
- aws_mp_utils-0.0.1/tests/test_auth.py +39 -0
- aws_mp_utils-0.0.1/tests/test_changeset.py +267 -0
- aws_mp_utils-0.0.1/tests/test_cli.py +107 -0
- aws_mp_utils-0.0.1/tests/test_cli_container.py +142 -0
- aws_mp_utils-0.0.1/tests/test_cli_image.py +112 -0
- aws_mp_utils-0.0.1/tests/test_cli_offer.py +42 -0
- aws_mp_utils-0.0.1/tests/test_cli_utils.py +33 -0
- aws_mp_utils-0.0.1/tests/test_container.py +115 -0
- aws_mp_utils-0.0.1/tests/test_image.py +70 -0
- aws_mp_utils-0.0.1/tests/test_offer.py +32 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
Installation
|
|
2
|
+
============
|
|
3
|
+
|
|
4
|
+
```shell
|
|
5
|
+
$ git clone https://github.com/SUSE-Enceladus/aws-mp-utils.git
|
|
6
|
+
$ cd aws-mp-utils
|
|
7
|
+
|
|
8
|
+
# Activate virtual Environment then install
|
|
9
|
+
# aws-mp-utils and dev dependences in editable mode
|
|
10
|
+
$ pip install -e .[dev]
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
aws-mp-utils is now installed in the active virtual environment in
|
|
14
|
+
development mode.
|
|
15
|
+
|
|
16
|
+
Dev Requirements
|
|
17
|
+
================
|
|
18
|
+
|
|
19
|
+
- bumpversion
|
|
20
|
+
|
|
21
|
+
Testing Requirements
|
|
22
|
+
====================
|
|
23
|
+
|
|
24
|
+
- coverage
|
|
25
|
+
- flake8
|
|
26
|
+
- pytest
|
|
27
|
+
- pytest-cov
|
|
28
|
+
|
|
29
|
+
Contribution Checklist
|
|
30
|
+
======================
|
|
31
|
+
|
|
32
|
+
- All patches must be signed. [Signing Commits](#signing-commits)
|
|
33
|
+
- All contributed code must conform to flake8. [Code Style](#code-style)
|
|
34
|
+
- All new code contributions must be accompanied by a test.
|
|
35
|
+
- Tests must pass and coverage remain above 90%. [Unit & Integration Tests](#unit-&-integration-tests)
|
|
36
|
+
- Follow Semantic Versioning. [Versions & Releases](#versions-&-releases)
|
|
37
|
+
|
|
38
|
+
Versions & Releases
|
|
39
|
+
===================
|
|
40
|
+
|
|
41
|
+
**aws-mp-utils** adheres to Semantic versioning; see <http://semver.org/> for
|
|
42
|
+
details.
|
|
43
|
+
|
|
44
|
+
[bumpversion](https://pypi.python.org/pypi/bumpversion/) is used for
|
|
45
|
+
release version management, and is configured in `setup.cfg`:
|
|
46
|
+
|
|
47
|
+
```shell
|
|
48
|
+
$ bumpversion major|minor|patch
|
|
49
|
+
$ git push
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Bumpversion will create a commit with version updated in all locations.
|
|
53
|
+
The annotated tag is created separately.
|
|
54
|
+
|
|
55
|
+
```shell
|
|
56
|
+
$ git tag -a v{version}
|
|
57
|
+
# git tag -a v0.0.1
|
|
58
|
+
|
|
59
|
+
# Create a message with the changes since last release and push tags.
|
|
60
|
+
$ git push --tags
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Unit & Integration Tests
|
|
64
|
+
========================
|
|
65
|
+
|
|
66
|
+
All tests should pass and test coverage should remain above 90%.
|
|
67
|
+
|
|
68
|
+
The tests and coverage can be run directly via pytest.
|
|
69
|
+
|
|
70
|
+
```shell
|
|
71
|
+
$ pytest --cov=aws_mp_utils
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Code Style
|
|
75
|
+
==========
|
|
76
|
+
|
|
77
|
+
Source should pass flake8 and pep8 standards.
|
|
78
|
+
|
|
79
|
+
```shell
|
|
80
|
+
$ flake8 aws-mp-utils
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Signing Commits
|
|
84
|
+
===============
|
|
85
|
+
|
|
86
|
+
The repository and the code base patches sent for inclusion must be GPG
|
|
87
|
+
signed. See the GitHub article, [Signing commits using
|
|
88
|
+
GPG](https://help.github.com/articles/signing-commits-using-gpg/), for
|
|
89
|
+
more information.
|