Skip to content

Commit ec37338

Browse files
committed
improv: move to poetry version
1 parent 8112737 commit ec37338

File tree

4 files changed

+22
-27
lines changed

4 files changed

+22
-27
lines changed

python/Makefile

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ format:
1111
poetry run black aws_lambda_powertools
1212
poetry run black tests
1313

14-
lint: format
14+
lint:
1515
poetry run flake8
1616

1717
test:
@@ -20,14 +20,23 @@ test:
2020
test-html:
2121
poetry run pytest --cov-report html
2222

23-
pr: lint test
24-
25-
release: pr
26-
python setup.py sdist bdist_wheel
27-
poetry run twine upload dist/* --verbose
28-
rm -rf dist build
29-
30-
release-test: pr
31-
python setup.py sdist bdist_wheel
32-
poetry run twine upload --repository testpypi dist/* --verbose
33-
rm -rf dist build
23+
pr: format lint test
24+
25+
build: pr
26+
poetry run build
27+
28+
#
29+
# Use `poetry version <major>/<minor></patch>` for version bump
30+
#
31+
release:
32+
poetry config pypi-token.pypi ${PYPI_TOKEN}
33+
@$(MAKE) build
34+
poetry publish
35+
rm -rf dist
36+
37+
release-test:
38+
poetry config repositories.testpypi https://test.pypi.org/legacy
39+
poetry config pypi-token.pypi ${PYPI_TEST_TOKEN}
40+
@$(MAKE) build
41+
poetry publish --repository testpypi
42+
rm -rf dist

python/aws_lambda_powertools/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@
33
"""Top-level package for Lambda Python Powertools."""
44

55
__author__ = """Amazon Web Services"""
6-
__version__ = "__version__ = '0.5.0'"

python/poetry.lock

Lines changed: 1 addition & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ isort = "^4.3.21"
3939
pre-commit = "^2.1.0"
4040
pytest-cov = "^2.8.1"
4141
pytest-mock = "^2.0.0"
42-
bumpversion = "^0.5.3"
4342

4443
[tool.coverage.run]
4544
source = ["aws_lambda_powertools"]

0 commit comments

Comments
 (0)