Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version and pypi package #28

Merged
merged 4 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,25 @@ jobs:
# - name: Conda list
# shell: pwsh
# run: conda list
- name: Build
- name: Build autogen
shell: pwsh
run: |
pip install twine
python setup.py sdist bdist_wheel
- name: Publish to PyPI
python setup.py sdist bdist_wheel --name "autogen"
- name: Build pyautogen
shell: pwsh
run: |
pip install twine
python setup.py sdist bdist_wheel --name "pyautogen"
- name: Publish autogen to PyPI
env:
TWINE_USERNAME: ${{ secrets.AUTOGEN_PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.AUTOGEN_PYPI_PASSWORD }}
shell: pwsh
run: twine upload dist/*autogen*
- name: Publish pyautogen to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
TWINE_USERNAME: ${{ secrets.PYAUTOGEN_PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYAUTOGEN_PYPI_PASSWORD }}
shell: pwsh
run: twine upload dist/*
run: twine upload dist/*pyautogen*
2 changes: 1 addition & 1 deletion autogen/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#
# Portions derived from https://github.com/microsoft/autogen are under the MIT License.
# SPDX-License-Identifier: MIT
__version__ = "0.2.35"
__version__ = "0.3.0b1"
12 changes: 11 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# SPDX-License-Identifier: MIT
import os
import platform
import sys

import setuptools

Expand Down Expand Up @@ -101,8 +102,17 @@
"bedrock": ["boto3>=1.34.149"],
}


if "--name" in sys.argv:
index = sys.argv.index("--name")
sys.argv.pop(index) # Removes --name
package_name = sys.argv.pop(index) # Removes the value after --name
else:
package_name = "autogen"


setuptools.setup(
name="pyautogen",
name=package_name,
version=__version__,
author="Chi Wang & Qingyun Wu",
author_email="auto-gen@outlook.com",
Expand Down
Loading