Skip to content

Commit

Permalink
Fix an issue with publish to pypi (#119)
Browse files Browse the repository at this point in the history
* FIX

* fix

* add comment
  • Loading branch information
shmuel44 authored Sep 26, 2023
1 parent 26cd534 commit b6efa0a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
18 changes: 16 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ references:
name: Build Package
command: |
poetry build
version_tag_regex: &version_tag_regex
/^v\d+\.\d+\.\d+$/ # version regex vx.x.x (i.e. v1.2.3)

# step only run if is match the filter
# the step run on all branches
tag_filter: &tag_filter
filters:
tags:
only: *version_tag_regex


jobs:
run-unit-tests:
parameters:
Expand Down Expand Up @@ -88,11 +100,13 @@ workflows:
build_and_release:
jobs:
- run-unit-tests:
<<: *tag_filter # we add it for the publish-to-pypi step
matrix:
parameters:
pythonversion: ["3.8", "3.9", "3.10"]
name: run-unit-tests-<< matrix.pythonversion >>
- verify
- verify:
<<: *tag_filter # we add it for the publish-to-pypi step
- publish-to-test-pypi:
requires:
- run-unit-tests
Expand All @@ -106,7 +120,7 @@ workflows:
- verify
filters:
tags:
only: /^v\d+\.\d+\.\d+$/ # only run on tags [e.g. v0.0.0]
only: *version_tag_regex
branches:
ignore: /.*/

1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

## Unreleased

## 3.2.13
* Changed package management from pip to Poetry for better dependency handling and packaging.

## 3.2.12
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "demisto-py"
version = "3.2.12"
version = "3.2.13"
description = "\"A Python library for the Demisto API\""
authors = ["Demisto"]
license = "Apache-2.0"
Expand Down

0 comments on commit b6efa0a

Please sign in to comment.