Skip to content

Commit 94165fa

Browse files
committed
Merge branch 'develop' into feat/high-level-imports
* develop: fix: correct env var name for publish to pypi test (#69) chore: version bump (#68)
2 parents 68d9e52 + 967d86e commit 94165fa

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

Diff for: .github/workflows/publish.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ name: Publish to PyPi
2121

2222
on:
2323
release:
24-
types: [published]
24+
types: [published]
2525

2626
jobs:
2727
upload:
@@ -50,13 +50,13 @@ jobs:
5050
run: make release-test
5151
env:
5252
PYPI_USERNAME: __token__
53-
PYPI_TOKEN: ${{ secrets.PYPI_TEST_TOKEN }}
53+
PYPI_TEST_TOKEN: ${{ secrets.PYPI_TEST_TOKEN }}
5454
- name: Upload to PyPi prod
5555
run: make release-prod
5656
env:
5757
PYPI_USERNAME: __token__
5858
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
59-
59+
6060
sync_master:
6161
needs: upload
6262
runs-on: ubuntu-latest
@@ -66,5 +66,5 @@ jobs:
6666
# If version matches CHANGELOG and pyproject.toml
6767
# If it passes all checks, successfully releases to test and prod
6868
# Then sync up master with latest source code release
69-
# where commit message will be Release notes title
69+
# where commit message will be Release notes title
7070
run: git push origin HEAD:refs/heads/master --force

Diff for: CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.10.0] - 2020-06-08
10+
### Added
11+
- **Metrics**: `capture_cold_start_metric` parameter added to `log_metrics` decorator
12+
- **Metrics**: Optional `namespace` and `service` parameters added to Metrics constructor to more closely resemble other core utils
13+
14+
### Changed
15+
- **Metrics**: Default dimension is now created based on `service` parameter or `POWERTOOLS_SERVICE_NAME` env var
16+
17+
### Deprecated
18+
- **Metrics**: `add_namespace` method deprecated in favor of using `namespace` parameter to Metrics constructor or `POWERTOOLS_METRICS_NAMESPACE` env var
19+
920
## [0.9.5] - 2020-06-02
1021
### Fixed
1122
- **Metrics**: Coerce non-string dimension values to string

Diff for: aws_lambda_powertools/metrics/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def add_namespace(self, name: str):
7171
Metric namespace
7272
"""
7373
warnings.warn(
74-
"add_namespace method is deprecated. Pass service to Metrics constructor instead", DeprecationWarning
74+
"add_namespace method is deprecated. Pass namespace to Metrics constructor instead", DeprecationWarning
7575
)
7676
if self.namespace is not None:
7777
raise UniqueNamespaceError(

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "aws_lambda_powertools"
3-
version = "0.9.5"
3+
version = "0.10.0"
44
description = "Python utilities for AWS Lambda functions including but not limited to tracing, logging and custom metric"
55
authors = ["Amazon Web Services"]
66
classifiers=[

0 commit comments

Comments
 (0)