Skip to content

Commit e6c426c

Browse files
authored
Pre-release fixes (#110)
1. Remove `[project]` from root. We don't want to publish the root, so we don't need this section. 2. Move app -> apps to match TS and C#. 3. Remove a bunch of references from microsoft.teams.apps from apps folder. 4. Remove src/teams_py folder since it's not needed anymore 5. Only build the src folder, not tests.
1 parent efb2d31 commit e6c426c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+862
-1203
lines changed

packages/api/pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ authors = [
1212
requires-python = ">=3.12"
1313
dependencies = [
1414
"pydantic>=2.0.0",
15-
"microsoft-teams-common>=0.0.1-alpha.1",
16-
"microsoft-teams-cards>=0.0.1-alpha.1",
15+
"microsoft-teams-common",
16+
"microsoft-teams-cards",
1717
"pyjwt[crypto]>=2.10.0",
1818
]
1919

@@ -37,3 +37,6 @@ dev = [
3737

3838
[tool.hatch.build.targets.wheel]
3939
packages = ["src/microsoft"]
40+
41+
[tool.hatch.build.targets.sdist]
42+
include = ["src"]

packages/app/pyproject.toml renamed to packages/apps/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "microsoft-teams-app"
2+
name = "microsoft-teams-apps"
33
version = "0.0.1-alpha.1"
44
description = "The app package for a Microsoft Teams agent"
55
authors = [{ name = "Microsoft", email = "[email protected]" }]
@@ -11,8 +11,8 @@ license = "MIT"
1111

1212
dependencies = [
1313
"fastapi>=0.115.13",
14-
"microsoft-teams-api>=0.0.1-alpha.1",
15-
"microsoft-teams-common>=0.0.1-alpha.1",
14+
"microsoft-teams-api",
15+
"microsoft-teams-common",
1616
"uvicorn>=0.34.3",
1717
"cryptography>=3.4.0",
1818
"pyjwt[crypto]>=2.10.0",

packages/app/scripts/generate_handlers.py renamed to packages/apps/scripts/generate_handlers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from typing import TYPE_CHECKING
1010

1111
if TYPE_CHECKING:
12-
import microsoft.teams.app.routing.activity_route_configs as activity_config
12+
import microsoft.teams.apps.routing.activity_route_configs as activity_config
1313

1414
# Import the activity config directly without going through the package hierarchy
1515
activity_config_path = (
@@ -28,7 +28,7 @@
2828
sys.path.insert(0, src_path)
2929

3030
spec = importlib.util.spec_from_file_location(
31-
"microsoft.teams.app.routing.activity_route_configs", activity_config_path
31+
"microsoft.teams.apps.routing.activity_route_configs", activity_config_path
3232
)
3333
assert spec is not None, f"Could not find activity_route_configs.py at {activity_config_path}"
3434
activity_config = importlib.util.module_from_spec(spec)
File renamed without changes.

packages/app/src/microsoft/teams/app/app.py renamed to packages/apps/src/microsoft/teams/apps/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
from .plugins import PluginBase, PluginStartEvent, get_metadata
4545
from .routing import ActivityHandlerMixin, ActivityRouter
4646

47-
version = importlib.metadata.version("microsoft-teams-app")
47+
version = importlib.metadata.version("microsoft-teams-apps")
4848

4949
F = TypeVar("F", bound=Callable[..., Any])
5050
load_dotenv(find_dotenv(usecwd=True))
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)