Skip to content

Commit

Permalink
Fix automated release
Browse files Browse the repository at this point in the history
  • Loading branch information
Joachim Jablon committed Nov 6, 2020
1 parent f838bb1 commit e5995b3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ jobs:
run: |
set -xeu
python -VV
pip install setuptools wheel
pip install build
- name: Build the wheel
run: python setup.py sdist bdist_wheel
run: python -m build --sdist --wheel
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build-system]
requires = ["setuptools >= 40.6.0", "wheel", "setuptools-scm[toml]>=3.4"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[metadata]
name = vault-cli
description = CLI tool for hashicorp vault
version = 1.5.0.dev0
author = PeopleDoc
author_email = [email protected]
url = https://github.com/peopledoc/vault-cli
Expand Down Expand Up @@ -43,6 +42,7 @@ dev =
twine
black
isort
build

test =
pytest
Expand Down
4 changes: 1 addition & 3 deletions tests/unit/test_metadata.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import re

from vault_cli import metadata


def test_extract_metadata():

result = metadata.extract_metadata()
assert re.match(r"\d+\.\d+\.\d+(\.dev0)?", result.pop("version"))
assert result.pop("version")

assert result == {
"author": "PeopleDoc",
Expand Down

0 comments on commit e5995b3

Please sign in to comment.