Skip to content

Commit 116f331

Browse files
authored
feat #7: refine scripts with makefile (#8)
1 parent b46537c commit 116f331

File tree

7 files changed

+38
-50
lines changed

7 files changed

+38
-50
lines changed

Makefile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
.PHONY: clean build publish publish-staging
2+
3+
clean:
4+
rm -rf dist
5+
rm -rf build
6+
rm -rf traa.egg-info
7+
8+
build: clean
9+
sh build_all.sh
10+
11+
# Prepare .pypirc for release
12+
prepare-release:
13+
cp ~/.pypirc.release ~/.pypirc
14+
@echo "Using ~/.pypirc.release for release"
15+
16+
# Prepare .pypirc for staging
17+
prepare-staging:
18+
cp ~/.pypirc.test ~/.pypirc
19+
@echo "Using ~/.pypirc.test for staging"
20+
21+
# Publish to main PyPI
22+
publish: build prepare-release
23+
twine upload dist/*
24+
25+
# Publish to TestPyPI
26+
publish-staging: build prepare-staging
27+
twine upload --repository testpypi dist/*
28+
29+
help:
30+
@echo "Available targets:"
31+
@echo " clean - Remove all build artifacts"
32+
@echo " build - Clean and build the package"
33+
@echo " publish - Build and publish to PyPI"
34+
@echo " publish-staging - Build and publish to TestPyPI"
35+
@echo " help - Show this help message"

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 = "traa"
7-
version = "0.1.4"
7+
version = "0.1.5"
88
description = "Python bindings for the TRAA (To Record Anything Anywhere) library - a high-performance, cross-platform solution for screen capture, window enumeration, and desktop recording. Supports Windows, macOS, and Linux with a clean, Pythonic API."
99
readme = "README.md"
1010
keywords = [

scripts/publish-prepare.sh

Lines changed: 0 additions & 14 deletions
This file was deleted.

scripts/publish-staging.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

scripts/publish.sh

Lines changed: 0 additions & 14 deletions
This file was deleted.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def get_platform_package_data(target_platform):
8484

8585
setup(
8686
name='traa',
87-
version='0.1.4',
87+
version='0.1.5',
8888
description='Python bindings for the TRAA (To Record Anything Anywhere) library - a high-performance, cross-platform solution for screen capture, window enumeration, and desktop recording. Supports Windows, macOS, and Linux with a clean, Pythonic API.',
8989
long_description=long_description,
9090
long_description_content_type='text/markdown',

traa/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
enum_screen_sources = _traa.enum_screen_sources
2323

2424
# Version information
25-
__version__ = "0.1.4" # Update with actual version
25+
__version__ = "0.1.5" # Update with actual version
2626

2727
# Export all public symbols
2828
__all__ = [

0 commit comments

Comments
 (0)