Skip to content

Commit

Permalink
Rebase staging from master (#354)
Browse files Browse the repository at this point in the history
* Rebasing and add skip lint on github actions
  • Loading branch information
ralphrass authored Apr 25, 2024
1 parent 688a5b3 commit da91b49
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 39 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/skip_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This step is used only because we want to mark the runner-linter check as required
# for PRs to develop, but not for the merge queue to merge into develop,
# github does not have this functionality yet

name: 'Skip github-actions/runner-linter check at merge queue'

on:
merge_group:

jobs:
empty_job:
name: 'github-actions/runner-linter'
runs-on: github-actions-developers-runner
steps:
- name: Skip github-actions/runner-linter check at merge queue
run: |
echo "Done"
63 changes: 31 additions & 32 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: "Publish Dev Package"
on:
push:
paths:
- 'setup.py'

- "setup.py"

jobs:
Pipeline:
Expand All @@ -13,33 +12,33 @@ jobs:
container: quintoandar/python-3-7-java

steps:
- uses: actions/checkout@v2

- name: Install dependencies
run: make ci-install

- name: Get version
run: echo "version=$(grep __version__ setup.py | head -1 | cut -d \" -f2 | cut -d \' -f2 )" >> $GITHUB_ENV

- name: Build package
run: make package

- name: Create release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.version }}
release_name: Release ${{ env.version }}
prerelease: true

- name: Release already exist
if: ${{ failure() }}
run: echo Release already exist

- name: Publish release to pypi.org
if: ${{ success() }}
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: PYTHONPATH=./pip/deps python -m twine upload -u $PYPI_USERNAME -p $PYPI_PASSWORD --verbose dist/*
- uses: actions/checkout@v2

- name: Install dependencies
run: make ci-install

- name: Get version
run: echo "version=$(grep __version__ setup.py | head -1 | cut -d \" -f2 | cut -d \' -f2 )" >> $GITHUB_ENV

- name: Build package
run: make package

- name: Create release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.version }}
release_name: Release ${{ env.version }}
prerelease: true

- name: Release already exist
if: ${{ failure() }}
run: echo Release already exist

- name: Publish release to pypi.org
if: ${{ success() }}
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: PYTHONPATH=./pip/deps python -m twine upload -u $PYPI_USERNAME -p $PYPI_PASSWORD --verbose dist/*
15 changes: 9 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Preferably use **Added**, **Changed**, **Removed** and **Fixed** topics in each

## [Unreleased]

## [1.2.4](https://github.com/quintoandar/butterfree/releases/tag/1.2.4)
* Auto create feature sets ([#351](https://github.com/quintoandar/butterfree/pull/351))

## [1.2.3](https://github.com/quintoandar/butterfree/releases/tag/1.2.3)
* Optional params ([#347](https://github.com/quintoandar/butterfree/pull/347))

Expand Down Expand Up @@ -66,7 +69,7 @@ Preferably use **Added**, **Changed**, **Removed** and **Fixed** topics in each
* [MLOP-632] Butterfree dev workflow, automate release description ([#279](https://github.com/quintoandar/butterfree/commit/245eaa594846166972241b03fddc61ee5117b1f7))

### Fixed
* Change trigger for pipeline staging ([#287](https://github.com/quintoandar/butterfree/pull/287))
* Change trigger for pipeline staging ([#287](https://github.com/quintoandar/butterfree/pull/287))

## [1.1.2](https://github.com/quintoandar/butterfree/releases/tag/1.1.2)
### Fixed
Expand All @@ -89,11 +92,11 @@ Preferably use **Added**, **Changed**, **Removed** and **Fixed** topics in each
* Update README ([#257](https://github.com/quintoandar/butterfree/pull/257))

### Fixed
* Fix Butterfree's workflow ([#262](https://github.com/quintoandar/butterfree/pull/262))
* Fix Butterfree's workflow ([#262](https://github.com/quintoandar/butterfree/pull/262))
* [FIX] Downgrade Python Version in Pyenv ([#227](https://github.com/quintoandar/butterfree/pull/227))
* [FIX] Fix docs ([#229](https://github.com/quintoandar/butterfree/pull/229))
* [FIX] Fix docs ([#229](https://github.com/quintoandar/butterfree/pull/229))
* [FIX] Fix Docs - Add more dependencies ([#230](https://github.com/quintoandar/butterfree/pull/230))
* Fix broken notebook URL ([#236](https://github.com/quintoandar/butterfree/pull/236))
* Fix broken notebook URL ([#236](https://github.com/quintoandar/butterfree/pull/236))
* Issue #77 Fix ([#245](https://github.com/quintoandar/butterfree/pull/245))

## [1.0.2](https://github.com/quintoandar/butterfree/releases/tag/1.0.2)
Expand All @@ -104,7 +107,7 @@ Preferably use **Added**, **Changed**, **Removed** and **Fixed** topics in each
* [MLOP-426] Change branching strategy on butterfree to use only master branch ([#216](https://github.com/quintoandar/butterfree/pull/216))

### Fixed
* [MLOP-440] Python 3.7 bump and Fixing Dependencies ([#220](https://github.com/quintoandar/butterfree/pull/220))
* [MLOP-440] Python 3.7 bump and Fixing Dependencies ([#220](https://github.com/quintoandar/butterfree/pull/220))

## [1.0.1](https://github.com/quintoandar/butterfree/releases/tag/1.0.1)
### Added
Expand Down Expand Up @@ -303,4 +306,4 @@ Preferably use **Added**, **Changed**, **Removed** and **Fixed** topics in each
* [MLOP-143] Fix Bugs for HouseMain FeatureSet ([#62](https://github.com/quintoandar/butterfree/pull/62))

## [0.1.0](https://github.com/quintoandar/butterfree/releases/tag/0.1.0)
* First modules and entities of butterfree package.
* First modules and entities of butterfree package.
19 changes: 19 additions & 0 deletions docs/source/butterfree.automated.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
butterfree.automated package
============================

Submodules
----------


.. automodule:: butterfree.automated.feature_set_creation
:members:
:undoc-members:
:show-inheritance:

Module contents
---------------

.. automodule:: butterfree.automated
:members:
:undoc-members:
:show-inheritance:
1 change: 1 addition & 0 deletions docs/source/butterfree.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Subpackages
.. toctree::
:maxdepth: 4

butterfree.automated
butterfree.clients
butterfree.configs
butterfree.constants
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import find_packages, setup

__package_name__ = "butterfree"
__version__ = "1.2.3.dev0"
__version__ = "1.2.4"
__repository_url__ = "https://github.com/quintoandar/butterfree"

with open("requirements.txt") as f:
Expand Down

1 comment on commit da91b49

@chip-n-dale
Copy link

@chip-n-dale chip-n-dale bot commented on da91b49 Apr 25, 2024

Choose a reason for hiding this comment

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

Hi @ralphrass!

The GitLeaks SecTool reported some possibly exposed credentials/secrets, how about giving them a look?

GitLeaks Alert Sync
[
  {
    "line": "    webhook: REDACTED",
    "lineNumber": 141,
    "offender": "REDACTED",
    "offenderEntropy": -1,
    "commit": "b6a5daf28abc035f74b9685aab573d384680b9d1",
    "repo": "butterfree",
    "repoURL": "",
    "leakURL": "",
    "rule": "Slack Webhook",
    "commitMessage": "initial commit\n",
    "author": "Alvaro",
    "email": "[email protected]",
    "file": ".drone.yml",
    "date": "2020-01-03T14:21:51-03:00",
    "tags": "key, slack"
  },
  {
    "line": "    webhook: REDACTED",
    "lineNumber": 159,
    "offender": "REDACTED",
    "offenderEntropy": -1,
    "commit": "b6697aa708fec0c5a9e3af0b2713cee6f45ff675",
    "repo": "butterfree",
    "repoURL": "",
    "leakURL": "",
    "rule": "Slack Webhook",
    "commitMessage": "hail to the butterfree\n",
    "author": "Alvaro",
    "email": "[email protected]",
    "file": ".drone.yml",
    "date": "2020-01-03T11:07:44-03:00",
    "tags": "key, slack"
  }
]

In case of false-positives, more information is available on GitLeaks FAQ
If you had any other problem or question during this process, be sure to contact us on the Security space on GChat!

Please sign in to comment.