Repository: microsoft/autogen
Pull request: Update pyproject.toml for Poetry mismatch
<!-- Thank you for your contribution! Please review https://microsoft.github.io/autogen/docs/Contribute before opening a pull request. -->

<!-- Please add a reviewer to the assignee section when you create a PR. If you don't have the access to it, we will shortly find a reviewer and assign them to your PR. -->

## Why are these changes needed?

Poetry install fails without these changes.

## Related issue number

Fixes https://github.com/microsoft/autogen/issues/1426

## Checks

- [ ] I've included any doc changes needed for https://microsoft.github.io/autogen/. See https://microsoft.github.io/autogen/docs/Contribute#documentation to build and test documentation locally.
- [ ] I've added tests (if relevant) corresponding to the changes introduced in this PR.
- [ ] I've made sure all auto checks have passed.


Problem statement:
[Issue]: Poetry install python version missmatch (autogenstudio)
### Describe the issue

When trying to add autogen via `poetry add autogenstudio`, I get:
```
Using version ^0.0.37a0 for autogenstudio

Updating dependencies
Resolving dependencies... (0.1s)

The current project's Python requirement (>=3.9) is not compatible with some of the required packages Python requirement:
  - pyautogen requires Python >=3.8, <3.12, so it will not be satisfied for Python >=3.12
  - pyautogen requires Python >=3.8, <3.12, so it will not be satisfied for Python >=3.12
  - pyautogen requires Python >=3.8, <3.12, so it will not be satisfied for Python >=3.12
  - pyautogen requires Python >=3.8, <3.12, so it will not be satisfied for Python >=3.12
  - pyautogen requires Python >=3.8, <3.12, so it will not be satisfied for Python >=3.12
  - pyautogen requires Python >=3.8, <3.12, so it will not be satisfied for Python >=3.12
  - pyautogen requires Python >=3.8, <3.12, so it will not be satisfied for Python >=3.12
  - pyautogen requires Python >=3.8,<3.13, so it will not be satisfied for Python >=3.13
  - pyautogen requires Python >=3.8,<3.13, so it will not be satisfied for Python >=3.13

Because no versions of pyautogen match >0.2.0,<0.2.1 || >0.2.1,<0.2.2 || >0.2.2,<0.2.3 || >0.2.3,<0.2.4 || >0.2.4,<0.2.5 || >0.2.5,<0.2.6 || >0.2.6,<0.2.7 || >0.2.7,<0.2.8 || >0.2.8
 and pyautogen (0.2.0) requires Python >=3.8, <3.12, pyautogen is forbidden.
And because pyautogen (0.2.1) requires Python >=3.8, <3.12
 and pyautogen (0.2.2) requires Python >=3.8, <3.12, pyautogen is forbidden.
And because pyautogen (0.2.3) requires Python >=3.8, <3.12
 and pyautogen (0.2.4) requires Python >=3.8, <3.12, pyautogen is forbidden.
And because pyautogen (0.2.5) requires Python >=3.8, <3.12
 and pyautogen (0.2.6) requires Python >=3.8, <3.12, pyautogen is forbidden.
And because pyautogen (0.2.7) requires Python >=3.8,<3.13
 and pyautogen (0.2.8) requires Python >=3.8,<3.13, pyautogen is forbidden.
Because no versions of autogenstudio match >0.0.37a0,<0.0.38
 and autogenstudio (0.0.37a0) depends on pyautogen (>=0.2.0), autogenstudio (>=0.0.37a0,<0.0.38) requires pyautogen (>=0.2.0).
Thus, autogenstudio is forbidden.
So, because myproject depends on autogenstudio (^0.0.37a0), version solving failed.
```

### Steps to reproduce

1. `poetry add autogenstudio`

### Screenshots and logs

_No response_

### Additional Information

A solution I found was, changing the pyproject.toml to:
```
[tool.poetry.dependencies]
python = ">=3.9, <3.12"
```

Hints from issue discussion:
Thanks for this! 
Want to push a PR and tag me?  
A quick overview of the contrib guide for autogenstudio is [here](https://github.com/microsoft/autogen/tree/autogenstudio/samples/apps/autogen-studio#contribution-guide) 

@victordibia Which toml file exactly? (I changed it on my local one)
https://github.com/microsoft/autogen/blob/main/pyproject.toml maybe?
Does editing the [autogenstudio toml](https://github.com/microsoft/autogen/blob/main/samples/apps/autogen-studio/pyproject.toml ) file address the issue?  
I think it would be better to update autogenstudio to fit autogen dependency spec.

Commit message: Update pyproject.toml for Poetry mismatch

Patch to review:
diff --git a/samples/apps/autogen-studio/pyproject.toml b/samples/apps/autogen-studio/pyproject.toml
index 8be4e5e26bc9..ce6300bca37e 100644
--- a/samples/apps/autogen-studio/pyproject.toml
+++ b/samples/apps/autogen-studio/pyproject.toml
@@ -10,7 +10,7 @@ authors = [
 description = "AutoGen Studio"
 readme = "README.md"
 license = { file="LICENSE" }
-requires-python = ">=3.9"
+requires-python = ">=3.9, <3.12"
 classifiers = [
     "Programming Language :: Python :: 3",
     "License :: OSI Approved :: MIT License",


Code review comments:
diff_hunk: @@ -10,7 +10,7 @@ authors = [
 description = "AutoGen Studio"
 readme = "README.md"
 license = { file="LICENSE" }
-requires-python = ">=3.9"
+requires-python = ">=3.9, <3.12"
path: samples/apps/autogen-studio/pyproject.toml
text: @author:
```suggestion
requires-python = ">=3.9, <3.13"
```