Skip to content

Commit ebcd37e

Browse files
committed
Prepare to start releasing v5.0
1 parent 92cb9aa commit ebcd37e

3 files changed

Lines changed: 17 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,18 @@ jobs:
120120
user: __token__
121121
password: ${{ secrets.PYPI_TOKEN }}
122122

123+
- name: Check if pre-release
124+
id: check_prerelease
125+
run: |
126+
if echo "${{ github.ref_name }}" | grep -qE '(a|b|rc)[0-9]+$'; then
127+
echo "prerelease=true" >> "$GITHUB_OUTPUT"
128+
else
129+
echo "prerelease=false" >> "$GITHUB_OUTPUT"
130+
fi
131+
123132
- name: Create the release
124-
id: create_release
125-
uses: actions/create-release@v1
126-
env:
127-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
133+
uses: softprops/action-gh-release@v2
128134
with:
129-
tag_name: ${{ github.ref }}
130-
release_name: Release ${{ github.ref }}
135+
generate_release_notes: true
136+
prerelease: ${{ steps.check_prerelease.outputs.prerelease == 'true' }}
131137

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
VERSION := $(shell ./setup.py --version)
1+
VERSION := $(shell uv run python -c "import rule_engine; print(rule_engine.__version__)")
22

33
.PHONY: build
44
build:
5-
python setup.py build sdist
5+
uv build
66

77
.PHONY: clean
88
clean:
99
rm -rf build dist
1010

1111
.PHONY: docs
1212
docs:
13-
pipenv install --dev
14-
pipenv run sphinx-build -b html -a -E -v docs/source docs/html
13+
uv sync --group dev
14+
uv run sphinx-build -b html -a -E -v docs/source docs/html
1515

1616
.PHONY: release
1717
release: build

lib/rule_engine/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3131
#
3232

33-
__version__ = '5.0.0-alpha'
33+
__version__ = '5.0.0a1'
3434

3535
from .engine import resolve_attribute
3636
from .engine import resolve_item

0 commit comments

Comments
 (0)