Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub actions poetry #27435

Merged
merged 44 commits into from
Jun 25, 2023
Merged

GitHub actions poetry #27435

merged 44 commits into from
Jun 25, 2023

Conversation

merit-maita
Copy link
Contributor

@merit-maita merit-maita commented Jun 14, 2023

Status

  • In Progress
  • Ready
  • In Hold - (Reason for hold)

Related Issues

fixes: https://jira-hq.paloaltonetworks.local/browse/CIAC-6069

Description

Switched to poetry instead of pipenv in some github actions.

pyproject.toml Outdated
@@ -13,6 +13,7 @@ defusedxml = "^0.7.1"
demisto_sdk = "1.16.0"
requests = "^2.22.0"
pre-commit = "^2.20.0"
flake8 = "^4.0.1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ilaner do we need it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as we discussed in the meeting yesterday , we'll add it, if it cause something to fail, then we can take it out

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it will work on both cases, as flake8 is installed as a part of demisto-sdk.
I think we can add this as dependency to the content, as we use it in content as well (if we someday plan to remove flake8 from demisto-sdk, it still should remain on content.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As none of the tasks here explicitly call flake8, please remove it.

pyproject.toml Outdated Show resolved Hide resolved
@merit-maita merit-maita requested a review from dorschw June 18, 2023 13:09
@merit-maita merit-maita requested a review from DeanArbel June 19, 2023 07:41
Copy link
Contributor

@ilaner ilaner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

pyproject.toml Outdated
@@ -13,6 +13,7 @@ defusedxml = "^0.7.1"
demisto_sdk = "1.16.0"
requests = "^2.22.0"
pre-commit = "^2.20.0"
flake8 = "^4.0.1"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ilaner do we need it?

pyproject.toml Outdated Show resolved Hide resolved
@content-bot content-bot added the Contribution Thank you! Contributions are always welcome! label Jun 22, 2023
@content-bot content-bot changed the base branch from master to contrib/demisto_github_actions_poetry June 22, 2023 11:24
@content-bot
Copy link
Collaborator

Thank you for your contribution. Your generosity and caring are unrivaled! Make sure to register your contribution by filling the Contribution Registration form, so our content wizard @michal-dagan will know the proposed changes are ready to be reviewed.

@content-bot content-bot requested a review from michal-dagan June 22, 2023 11:24
@merit-maita merit-maita removed the request for review from michal-dagan June 22, 2023 11:29
@merit-maita
Copy link
Contributor Author

merit-maita commented Jun 22, 2023

@merit-maita merit-maita changed the base branch from contrib/demisto_github_actions_poetry to master June 22, 2023 12:32
@merit-maita merit-maita removed the Contribution Thank you! Contributions are always welcome! label Jun 25, 2023
@merit-maita merit-maita merged commit d473b04 into master Jun 25, 2023
@merit-maita merit-maita deleted the github_actions_poetry branch June 25, 2023 11:47
MosheEichler pushed a commit that referenced this pull request Jul 2, 2023
* switched to poetry

* added dependencies to toml

* added --with ci flag

* edit after validation failed

* edit

* added dateparser

* locked the file

* removed pipfile

* returned files

* edit yml

* reverted changes

* reverted changes

* moved dateparser to dev

* locked poetry

* removed flake8

* edited poetry lock

* edited poetry lock

* fixed the action to run on this specific pr

* fixed the action to run on this specific pr

* edit

* edit

* edit

* reverted changes to filled form and handle external pr

* edited handle stale prs

* edited handle stale prs again

* edited handle stale prs with ci

* check sync-contrib-base-branch, and revert stale branches

* reverted the base branch, and check base branch on change

* reverted the base branch, and check base branch on change

* reverted the base branch, and check base branch on change

* test close pr

* test close pr
xsoar-bot pushed a commit to xsoar-contrib/content that referenced this pull request Jul 26, 2023
* switched to poetry

* added dependencies to toml

* added --with ci flag

* edit after validation failed

* edit

* added dateparser

* locked the file

* removed pipfile

* returned files

* edit yml

* reverted changes

* reverted changes

* moved dateparser to dev

* locked poetry

* removed flake8

* edited poetry lock

* edited poetry lock

* fixed the action to run on this specific pr

* fixed the action to run on this specific pr

* edit

* edit

* edit

* reverted changes to filled form and handle external pr

* edited handle stale prs

* edited handle stale prs again

* edited handle stale prs with ci

* check sync-contrib-base-branch, and revert stale branches

* reverted the base branch, and check base branch on change

* reverted the base branch, and check base branch on change

* reverted the base branch, and check base branch on change

* test close pr

* test close pr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants