Skip to content

Commit 6d57354

Browse files
authored
AJustando para fazer relase no pypi quando fechar uma release pelo gi… (#53)
* AJustando para fazer relase no pypi quando fechar uma release pelo github * Importando a versão direto do pacote
1 parent abce7c7 commit 6d57354

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

{{cookiecutter.project_name}}/.github/workflows/release.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ on:
44
push:
55
tags:
66
- '[0-9]+.[0-9]+.[0-9]+'
7-
7+
release:
8+
types: [published, created]
89

910
jobs:
1011
publish:
@@ -26,7 +27,7 @@ jobs:
2627
run: pip install twine==3.2.0
2728

2829
- name: Generate Packages
29-
run: python setup.py sdist wheel
30+
run: python setup.py sdist bdist_wheel
3031

3132
- name: Twine check
3233
run: twine check dist/*

{{cookiecutter.project_name}}/setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@
77
setup,
88
)
99

10+
# Local application imports
11+
from {{cookiecutter.project_name}} import __version__
12+
1013
here = path.abspath(path.dirname(__file__))
1114

1215
setup(
1316
name="{{cookiecutter.project_name}}",
14-
version="{{cookiecutter.package_version}}",
17+
version=__version__,
1518
description="{{cookiecutter.short_description}}",
1619
long_description="",
1720
url="{{cookiecutter.url}}",

0 commit comments

Comments
 (0)