File tree 3 files changed +32
-6
lines changed
3 files changed +32
-6
lines changed Original file line number Diff line number Diff line change @@ -43,14 +43,30 @@ jobs:
43
43
# - name: Conda list
44
44
# shell: pwsh
45
45
# run: conda list
46
+ - name : Build autogen
47
+ shell : pwsh
48
+ run : |
49
+ pip install twine
50
+ python setup.py sdist bdist_wheel --name "autogen"
51
+ - name : Build pyautogen
52
+ shell : pwsh
53
+ run : |
54
+ pip install twine
55
+ python setup.py sdist bdist_wheel --name "pyautogen"
46
56
- name : Build
47
57
shell : pwsh
48
58
run : |
49
59
pip install twine
50
60
python setup.py sdist bdist_wheel
51
- - name : Publish to PyPI
61
+ - name : Publish autogen to PyPI
62
+ env :
63
+ TWINE_USERNAME : ${{ secrets.AUTOGEN_PYPI_USERNAME }}
64
+ TWINE_PASSWORD : ${{ secrets.AUTOGEN_PYPI_PASSWORD }}
65
+ shell : pwsh
66
+ run : twine upload dist/*autogen*
67
+ - name : Publish pyautogen to PyPI
52
68
env :
53
- TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
54
- TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
69
+ TWINE_USERNAME : ${{ secrets.PYAUTOGEN_PYPI_USERNAME }}
70
+ TWINE_PASSWORD : ${{ secrets.PYAUTOGEN_PYPI_PASSWORD }}
55
71
shell : pwsh
56
- run : twine upload dist/*
72
+ run : twine upload dist/*pyautogen*
Original file line number Diff line number Diff line change 4
4
#
5
5
# Portions derived from https://github.com/microsoft/autogen are under the MIT License.
6
6
# SPDX-License-Identifier: MIT
7
- __version__ = "0.2.35 "
7
+ __version__ = "0.3.0 "
Original file line number Diff line number Diff line change 6
6
# SPDX-License-Identifier: MIT
7
7
import os
8
8
import platform
9
+ import sys
9
10
10
11
import setuptools
11
12
101
102
"bedrock" : ["boto3>=1.34.149" ],
102
103
}
103
104
105
+
106
+ if "--name" in sys .argv :
107
+ index = sys .argv .index ("--name" )
108
+ sys .argv .pop (index ) # Removes --name
109
+ package_name = sys .argv .pop (index ) # Removes the value after --name
110
+ else :
111
+ package_name = "autogen"
112
+
113
+
104
114
setuptools .setup (
105
- name = "pyautogen" ,
115
+ name = package_name ,
106
116
version = __version__ ,
107
117
author = "Chi Wang & Qingyun Wu" ,
108
118
You can’t perform that action at this time.
0 commit comments