-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from small-thinking/decouple-pypi-build
Add local test package build script
- Loading branch information
Showing
3 changed files
with
24 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
from .core.tool import BaseTool | ||
from .core.message import Message | ||
from .core.task import BaseTask, CompositeTask, SequentialTask | ||
from .core.agent import Agent, ThoughtProcess |
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,22 @@ | ||
#!/bin/bash | ||
|
||
# Exit in case of error | ||
set -e | ||
|
||
# Ensure the script is run from the project root directory | ||
if [ ! -f "setup.py" ] && [ ! -f "pyproject.toml" ]; then | ||
echo "Error: setup.py or pyproject.toml not found. Are you in the right directory?" | ||
exit 1 | ||
fi | ||
|
||
# Step 1: Build the package | ||
echo "Building the package..." | ||
python -m pip install --upgrade pip setuptools wheel twine | ||
python setup.py sdist bdist_wheel | ||
|
||
# Step 2: Upload the package to Test PyPI | ||
# Make sure the password is in the .pypirc file | ||
echo "Uploading the package to Test PyPI..." | ||
twine upload --repository testpypi dist/* | ||
|
||
echo "Package uploaded successfully." |