Skip to content

Commit 990c84e

Browse files
committed
📦 build(makefile): update build process to use python-build
- replace `setup.py` commands with `python -m build` - remove unnecessary `BUILD_DIR` variable - adjust echo outputs for clarity ✨ feat(pyproject): bump version to 0.7.1 - update version to 0.7.1 in `pyproject.toml` for release - ensure consistency across package metadata 🐛 fix(cicada): update version in `__init__.py` - synchronize `__version__` with package version 0.7.1
1 parent 819438a commit 990c84e

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

Makefile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,28 @@
11
# Makefile for cicada pip package
22

33
# Variables
4-
PACKAGE_NAME := $(shell python setup.py --name)
5-
VERSION := $(shell python setup.py --version)
4+
PACKAGE_NAME := cicada
65
DIST_DIR := dist
7-
BUILD_DIR := build
86

97
# Default target
108
all: build
119

1210
# Build the package
1311
build:
14-
@echo "Building $(PACKAGE_NAME) version $(VERSION)..."
15-
python setup.py sdist bdist_wheel
12+
@echo "Building $(PACKAGE_NAME) version ..."
13+
python -m build
1614
@echo "Build complete. Distribution files are in $(DIST_DIR)/"
1715

1816
# Push the package to PyPI
1917
push:
20-
@echo "Pushing $(PACKAGE_NAME) version $(VERSION) to PyPI..."
21-
twine upload $(DIST_DIR)/*
18+
@echo "Pushing $(PACKAGE_NAME) version to PyPI..."
19+
twine upload dist/*
2220
@echo "Package pushed to PyPI."
2321

2422
# Clean up build and distribution files
2523
clean:
2624
@echo "Cleaning up build and distribution files..."
27-
rm -rf $(BUILD_DIR) $(DIST_DIR) *.egg-info
25+
rm -rf $(DIST_DIR) *.egg-info
2826
@echo "Cleanup complete."
2927

3028
# Help target
@@ -35,4 +33,4 @@ help:
3533
@echo " clean - Clean up build and distribution files"
3634
@echo " help - Show this help message"
3735

38-
.PHONY: all build push clean help
36+
.PHONY: all build push clean help

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "cicada-agent"
7-
version = "0.7.0"
7+
version = "0.7.1"
88
authors = [{ name = "Oaklight", email = "[email protected]" }]
99
description = "A Python package for the Cicada project"
1010
readme = "README_en.md"

src/cicada/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
except ImportError:
1515
pass
1616

17-
__version__ = "0.7.0"
17+
__version__ = "0.7.1"

0 commit comments

Comments
 (0)