-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67393b6
commit df9f097
Showing
10 changed files
with
242 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[bumpversion] | ||
current_version = 0.0.11 | ||
commit = True | ||
tag = True | ||
|
||
[bumpversion:file:setup.py] | ||
search = version='{current_version}' | ||
replace = version='{new_version}' | ||
|
||
[bumpversion:file:piel/__init__.py] | ||
search = __version__ = '{current_version}' | ||
replace = __version__ = '{new_version}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
* piel version: | ||
* Python version: | ||
* Operating System: | ||
|
||
### Description | ||
|
||
Describe what you were trying to get done. | ||
Tell us what happened, what went wrong, and what you expected to happen. | ||
|
||
### What I Did | ||
|
||
``` | ||
Paste the command(s) you ran and the output. | ||
If there was a crash, please include the traceback here. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
name: Create Release | ||
|
||
permissions: | ||
contents: write | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install bump2version bumpversion # Install bump2version if not already installed | ||
- name: Bump version | ||
env: | ||
GITHUB_USERNAME: daquintero | ||
GITHUB_EMAIL: [email protected] | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
# Use the appropriate bumpversion command for your project | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
bump2version patch # Minor increase | ||
export VERSION=$(bumpversion --dry-run --list setup.py | grep '^new_version=' | sed -r 's/^new_version=//') | ||
echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
git tag -d v$VERSION | ||
git tag v$VERSION | ||
# - name: Bump version and push tag | ||
# uses: jaumann/[email protected] | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Set version as environment variable | ||
# run: | | ||
# export VERSION=$(bumpversion --list setup.py | grep '^new_version=' | sed -r 's/^new_version=//') | ||
# echo $VERSION | ||
|
||
# - name: Commit files | ||
# env: | ||
# GITHUB_USERNAME: daquintero | ||
# GITHUB_EMAIL: [email protected] | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# run: | | ||
# git config --local user.email "[email protected]" | ||
# git config --local user.name "daquintero" | ||
# git commit -am "UP: BumpVersion v${{ env.VERSION }}" | ||
# | ||
# - name: Commit files | ||
# run: | | ||
# git tag v$VERSION | ||
# git commit -a -m "PYPI: v$VERSION" | ||
# git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
# git config --local user.name "github-actions[bot]" | ||
|
||
- name: Push changes | ||
env: | ||
GITHUB_USERNAME: daquintero | ||
GITHUB_EMAIL: [email protected] | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
tags: true | ||
|
||
- name: Create release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: v${{ env.VERSION }} # Use the incremented version as the tag name | ||
release_name: ${{ env.VERSION }} # Customize the release name | ||
body: | | ||
Update PYPI ${{ env.VERSION }} | ||
draft: false | ||
release: true | ||
|
||
#name: Create Release | ||
# | ||
#on: | ||
# push: | ||
# branches: | ||
# - master | ||
# | ||
#permissions: | ||
# contents: write | ||
# | ||
#jobs: | ||
# create_release: | ||
# runs-on: ubuntu-latest | ||
# | ||
# steps: | ||
# - name: Checkout code | ||
# uses: actions/checkout@v2 | ||
# | ||
# - name: Set up Python | ||
# uses: actions/setup-python@v2 | ||
# with: | ||
# python-version: 3.x | ||
# | ||
# - name: Install dependencies | ||
# run: | | ||
# python -m pip install --upgrade pip | ||
# pip install bumpversion # Install bumpversion if not already installed | ||
# | ||
# - name: Bump version | ||
# env: | ||
# GITHUB_USERNAME: daquintero | ||
# GITHUB_EMAIL: [email protected] | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# run: | | ||
# # Use the appropriate bumpversion command for your project | ||
# bumpversion patch # Minor increase | ||
# | ||
# - name: Set version as environment variable | ||
# run: | | ||
# export VERSION=$(bumpversion --dry-run --list | grep '^new_version=' | sed -r 's/^new_version=//') | ||
# | ||
# - name: Create release | ||
# uses: actions/create-release@v1 | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# with: | ||
# tag_name: v${{ env.VERSION }} # Use the incremented version as the tag name | ||
# release_name: Release ${{ env.VERSION }} # Customize the release name | ||
# body: | | ||
# Update PYPI v${{ env.VERSION }} | ||
# draft: false | ||
# prerelease: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: ca84e500209b3757213759d4d522f8ed307cd638 | ||
hooks: | ||
- id: check-yaml | ||
exclude: ^(conda\.recipe/meta\.yaml|conda_build/templates/.*\.yaml|docs/click/meta\.yaml|conda/meta\.yaml|conda/construct.yaml|.*\.pic\.yml|conda/constructor/Miniforge3/construct.yaml) | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black | ||
|
||
- repo: https://github.com/asottile/blacken-docs | ||
rev: 7b71075ceb458be255e24da587c0275818b51faa | ||
hooks: | ||
- id: blacken-docs | ||
additional_dependencies: [black==23.3.0] | ||
|
||
- repo: https://github.com/codespell-project/codespell | ||
rev: ad3ff374e97e29ca87c94b5dc7eccdd29adc6296 | ||
hooks: | ||
- id: codespell | ||
args: ["-L TE,TE/TM,te,ba,FPR,fpr_spacing,ro,nd,donot,schem"] | ||
additional_dependencies: | ||
- tomli | ||
|
||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: "7c149cf0b9d2c4f7558de1ea5d2c137ca074d9d0" | ||
hooks: | ||
- id: ruff | ||
|
||
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks | ||
rev: d2425a62376c2197448cce2f825d5a0c3926b862 | ||
hooks: | ||
- id: pretty-format-toml | ||
args: [--autofix] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
__author__ = """Dario Quintero""" | ||
__email__ = '[email protected]' | ||
__version__ = '0.0.1' | ||
__version__ = '0.0.11' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters