Skip to content

Commit

Permalink
release: v0.1.0a2 (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
eonu authored Dec 4, 2023
2 parents 512a139 + 7bca97f commit e2922a0
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 31 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/create-github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Build and release on GitHub
uses: "marvinpinto/action-automatic-releases@1.2.1"
uses: "marvinpinto/action-automatic-releases@v1.2.1"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true # change this back once tested
prerelease: false
2 changes: 2 additions & 0 deletions .github/workflows/create-pypi-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Build and publish to PyPI
uses: JRubics/poetry-publish@v1.17
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ on:

jobs:
create-pull-request:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: dev
fetch-depth: 0
- name: Install Python
uses: actions/setup-python@v4
with:
Expand All @@ -25,15 +27,13 @@ jobs:
poetry-version: 1.7.1
- name: Install base dependencies
run: poetry install --sync --only base
- name: Bump version and changelog
run: poetry run invoke release.install release.build -- -v ${{ github.event.inputs.version }}
- name: Bump version
run: |
poetry run -q invoke release.build -- -v ${{ github.event.inputs.version }}
- name: Create pull request
uses: peter-evans/create-pull-request@v5.0.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "release: v${{ github.event.inputs.version }}"
title: "release: v${{ github.event.inputs.version }}"
body: >
This PR is auto-generated by
[create-pull-request](https://github.com/peter-evans/create-pull-request).
branch: release/${{ github.event.inputs.version }}
6 changes: 4 additions & 2 deletions .github/workflows/semantic-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,19 @@ jobs:
chore
feat
fix
misc
refactor
release
revert
scopes: |
build
ci
deps
docs
git
perf
pkg
tests
test
style
#\d+
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 3 additions & 2 deletions .github/workflows/tag-version-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ on:

jobs:
tag:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Check out repository code
uses: actions/checkout@v4
- name: Generate tag
uses: christophebedard/tag-version-commit@v1
with:
Expand Down
1 change: 0 additions & 1 deletion CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
project = "feud"
copyright = "2023-2025, Feud Developers" # noqa: A001
author = "Edwin Onuonga (eonu)"
release = "0.1.0a1"
release = "0.1.0a2"

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
2 changes: 1 addition & 1 deletion feud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Not all arguments are bad.
"""

__version__ = "0.1.0a1"
__version__ = "0.1.0a2"

from feud import click as click
from feud import exceptions as exceptions
Expand Down
13 changes: 2 additions & 11 deletions make/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: MIT
# This source code is part of the Feud project (https://feud.wiki).

"""Tasks for bumping the package version and updating CHANGELOG.md."""
"""Tasks for bumping the package version."""

import os
import re
Expand All @@ -13,12 +13,6 @@
from invoke.tasks import task


@task
def install(c: Config) -> None:
"""Install package with core and release dependencies."""
c.run("poetry install --sync --only base,release")


@task
def build(c: Config, *, v: str) -> None:
"""Build release."""
Expand All @@ -39,7 +33,4 @@ def build(c: Config, *, v: str) -> None:
f.write(re.sub(r'__version__ = ".*"', f'__version__ = "{v}"', init))

# bump project version - pyproject.toml
c.run(f"poetry version {v}")

# auto-generate CHANGELOG.md entry
c.run("poetry run auto-changelog -- --tag-prefix v --github")
c.run(f"poetry version -q {v}")
6 changes: 1 addition & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "feud"
version = "0.1.0a1"
version = "0.1.0a2"
license = "MIT"
authors = ["Edwin Onuonga <ed@eonu.net>"]
maintainers = ["Edwin Onuonga <ed@eonu.net>"]
Expand Down Expand Up @@ -45,7 +45,6 @@ include = [
"feud",
"make",
"tests",
"CHANGELOG.md",
"LICENSE",
"Makefile",
"pyproject.toml",
Expand Down Expand Up @@ -95,9 +94,6 @@ autodoc-pydantic = { version = ">=2.0.0" }
pytest = { version = "^7.4.0" }
pytest-cov = { version = "^4.1.0" }

[tool.poetry.group.release.dependencies]
auto-changelog = { version = "^0.6.0" }

[tool.ruff]
required-version = "0.1.3"
select = [
Expand Down

0 comments on commit e2922a0

Please sign in to comment.