Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
36520e2
Change pull_request to pull_request_target
ayeshurun Sep 17, 2025
444d351
Merge pull request #4 from ayeshurun/fix-semantic-pr
ayeshurun Sep 17, 2025
8b34e28
Merge branch 'microsoft:main' into main
ayeshurun Sep 18, 2025
0c47fda
Merge branch 'microsoft:main' into main
ayeshurun Sep 18, 2025
ccd7b91
Merge branch 'microsoft:main' into main
ayeshurun Sep 21, 2025
43cc353
Merge branch 'microsoft:main' into main
ayeshurun Sep 21, 2025
ea76426
Merge branch 'microsoft:main' into main
ayeshurun Sep 28, 2025
c702b91
Merge branch 'microsoft:main' into main
ayeshurun Sep 29, 2025
5e847ef
Merge branch 'microsoft:main' into main
ayeshurun Oct 16, 2025
69c733e
Merge branch 'microsoft:main' into main
ayeshurun Oct 20, 2025
5d5f1ad
Merge branch 'microsoft:main' into main
ayeshurun Oct 20, 2025
0c5de9c
Merge branch 'microsoft:main' into main
ayeshurun Oct 21, 2025
025f456
Merge branch 'microsoft:main' into main
ayeshurun Oct 22, 2025
df0c5a4
Merge branch 'microsoft:main' into main
ayeshurun Oct 23, 2025
c6892ed
Merge branch 'microsoft:main' into main
ayeshurun Oct 26, 2025
f30ce9b
Merge branch 'microsoft:main' into main
ayeshurun Nov 4, 2025
cf7e06b
Merge branch 'microsoft:main' into main
ayeshurun Nov 11, 2025
3a727dd
Merge branch 'main' of https://github.com/ayeshurun/fabric-cli
Nov 13, 2025
d3cfbb4
Merge branch 'main' of https://github.com/ayeshurun/fabric-cli
Nov 17, 2025
bb051b1
Merge branch 'main' of https://github.com/ayeshurun/fabric-cli
Nov 26, 2025
f46f685
Merge branch 'microsoft:main' into main
ayeshurun Dec 9, 2025
19e3a75
Merge branch 'main' of https://github.com/ayeshurun/fabric-cli
Dec 14, 2025
55020f0
Fix new functionality section in release notes
Dec 14, 2025
0c08fb5
Merge branch 'microsoft:main' into main
ayeshurun Dec 15, 2025
beb0149
Fix new functionality section in release notes
Dec 14, 2025
c0e3672
Merge branch 'main' of https://github.com/ayeshurun/fabric-cli
Dec 17, 2025
ca313c3
Introduce release workflow
Dec 17, 2025
8aa05e7
Merge pull request #14 from ayeshurun/release-workflow
ayeshurun Dec 17, 2025
39f2d85
Add GH_TOKEN to create release step
ayeshurun Dec 17, 2025
5e3b68e
Initial plan
Copilot Dec 17, 2025
7c573b0
Enhance create-release workflow with GITHUB_STEP_SUMMARY and optional…
Copilot Dec 17, 2025
f9a4bb2
Refactor GITHUB_STEP_SUMMARY messages to use heredoc syntax
Copilot Dec 18, 2025
f04c7b7
Merge pull request #16 from ayeshurun/copilot/enhance-create-release-…
ayeshurun Dec 18, 2025
641c4e7
Update release notes for v1.3.1
ayeshurun Dec 22, 2025
516dbb8
Fix new functionality section in release notes
Dec 14, 2025
484993f
Introduce release workflow
Dec 17, 2025
3a42a5c
Add GH_TOKEN to create release step
ayeshurun Dec 17, 2025
0755733
Initial plan
Copilot Dec 17, 2025
5917da7
Enhance create-release workflow with GITHUB_STEP_SUMMARY and optional…
Copilot Dec 17, 2025
635eadc
Refactor GITHUB_STEP_SUMMARY messages to use heredoc syntax
Copilot Dec 18, 2025
22cc9cb
Update release notes for v1.3.1
ayeshurun Dec 22, 2025
44f44b3
Merge branch 'main' of https://github.com/ayeshurun/fabric-cli
Dec 24, 2025
5c455ce
Merge branch 'microsoft:main' into main
ayeshurun Jan 1, 2026
5897cde
Fix new functionality section in release notes
Dec 14, 2025
845fcb5
Introduce release workflow
Dec 17, 2025
5278b73
Add GH_TOKEN to create release step
ayeshurun Dec 17, 2025
3c75e88
Initial plan
Copilot Dec 17, 2025
326c429
Enhance create-release workflow with GITHUB_STEP_SUMMARY and optional…
Copilot Dec 17, 2025
aca8824
Refactor GITHUB_STEP_SUMMARY messages to use heredoc syntax
Copilot Dec 18, 2025
c2ac8ba
Update release notes for v1.3.1
ayeshurun Dec 22, 2025
2dc9582
Fix new functionality section in release notes
Dec 14, 2025
7b9fc69
Initial plan
Copilot Dec 17, 2025
31fe14a
Update release notes for v1.3.1
ayeshurun Dec 22, 2025
f567fad
Merge branch 'main' of https://github.com/ayeshurun/fabric-cli
Jan 12, 2026
69809de
migrate to pyproject.toml for package configuration
Jan 13, 2026
f096046
mypy fix
Jan 13, 2026
e3a51ee
Update toml
Jan 14, 2026
9c27b45
Fix mypy
Jan 14, 2026
0a5e0ec
Fix type checks
Jan 14, 2026
5df8bf7
add license
Jan 14, 2026
64d9ee0
update classifiers
Jan 14, 2026
4cf01f4
proejct url
Jan 14, 2026
07e66fe
Fix
Jan 14, 2026
1994821
Update license file
Jan 14, 2026
bb887dd
Fix missing notice.txt
Jan 14, 2026
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
6 changes: 0 additions & 6 deletions .changie.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ post:
- key: AuthorLink
value: "https://github.com/{{.Custom.Author}}"
replacements:
- path: pyproject.toml
find: 'version=".*"'
replace: 'version="{{.VersionNoPrefix}}"'
- path: src/fabric_cli/__init__.py
find: '__version__ = ".*"'
replace: '__version__ = "{{.VersionNoPrefix}}"'
- path: src/fabric_cli/core/fab_constant.py
find: 'FAB_VERSION = ".*"'
replace: 'FAB_VERSION = "{{.VersionNoPrefix}}"'
42 changes: 21 additions & 21 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ jobs:
else
TARGET_INFO="- **Target Commit:** Latest commit on current branch (HEAD)"
fi

cat >> $GITHUB_STEP_SUMMARY << EOF
# πŸš€ Create Release Workflow

## ℹ️ Workflow Information
- **Version:** ${{ github.event.inputs.version }}
$TARGET_INFO

EOF

- name: Validate commit SHA (if provided)
Expand All @@ -46,14 +46,14 @@ jobs:
if ! git rev-parse --verify "$COMMIT_SHA^{commit}" >/dev/null 2>&1; then
cat >> $GITHUB_STEP_SUMMARY << EOF
## ❌ Error: Invalid Commit SHA

The provided commit SHA \`$COMMIT_SHA\` is not valid or does not exist in this repository.

### πŸ“ Troubleshooting
- Verify the commit SHA exists in the repository
- Ensure you are using the full commit SHA (or at least 7 characters)
- Check that the commit is in the current branch history

EOF
echo "Error: Invalid commit SHA: $COMMIT_SHA"
exit 1
Expand Down Expand Up @@ -92,23 +92,23 @@ jobs:
if [ ! -f "$CHANGELOG_FILE" ]; then
cat >> $GITHUB_STEP_SUMMARY << EOF
## ❌ Error: Release Notes File Not Found

The release notes file was not found at the expected location:

\`\`\`
$CHANGELOG_FILE
\`\`\`

### πŸ“ What to do:
1. Ensure you have created the changelog file for version \`${{ steps.set_vars.outputs.tag_name }}\`
2. The file should be located at: \`.changes/${{ steps.set_vars.outputs.tag_name }}.md\`
3. You can use \`changie batch <version>\` to generate the changelog file

### πŸ“‚ Available changelog files:
\`\`\`
$(ls -1 .changes/*.md 2>/dev/null || echo "No changelog files found")
\`\`\`

EOF
echo "Error: Release notes file not found at $CHANGELOG_FILE"
exit 1
Expand All @@ -121,14 +121,14 @@ jobs:
run: |
cat >> $GITHUB_STEP_SUMMARY << EOF
## πŸ—οΈ Creating Release

Creating release with the following details:
- **Tag:** \`${{ steps.set_vars.outputs.tag_name }}\`
- **Target Commit:** \`${{ steps.set_vars.outputs.actual_sha }}\`
- **Notes File:** \`${{ steps.set_vars.outputs.changelog_file_path }}\`

EOF

# Create the release with the target commit
if gh release create ${{ steps.set_vars.outputs.tag_name }} \
--title "${{ steps.set_vars.outputs.tag_name }}" \
Expand All @@ -137,32 +137,32 @@ jobs:

cat >> $GITHUB_STEP_SUMMARY << EOF
## βœ… Release Created Successfully!

πŸŽ‰ **Release \`${{ steps.set_vars.outputs.tag_name }}\` has been created!**

### πŸ“‹ Release Details:
- **Tag:** \`${{ steps.set_vars.outputs.tag_name }}\`
- **Commit:** \`${{ steps.set_vars.outputs.actual_sha }}\`
- **Release URL:** [View Release](https://github.com/${{ github.repository }}/releases/tag/${{ steps.set_vars.outputs.tag_name }})

EOF
else
cat >> $GITHUB_STEP_SUMMARY << EOF
## ❌ Error: Failed to Create Release

The GitHub CLI failed to create the release. This could be due to:

### πŸ” Common Issues:
- A release with tag \`${{ steps.set_vars.outputs.tag_name }}\` already exists
- Insufficient permissions to create releases
- Network connectivity issues
- Invalid release notes format

### πŸ“ Next Steps:
1. Check if the tag already exists: \`git tag -l '${{ steps.set_vars.outputs.tag_name }}'\`
2. Verify you have the necessary permissions to create releases
3. Review the workflow run logs for detailed error messages

EOF
echo "Error: Failed to create release"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
python-version: "3.10"
- name: Install Requirements
run: pip install mkdocs-material mkdocs-section-index
run: pip install -e .[docs]
- name: Deploy
run: |
git config user.name "github-actions"
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/fab-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,10 @@ jobs:
with:
python-version: "3.12"

- name: Create and activate Virtual Environment
- name: Install build dependencies
run: |
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python -m pip install --upgrade pip
pip install build

- name: Build package
run: |
source venv/bin/activate
python -m build
run: python -m build
14 changes: 0 additions & 14 deletions mypy.ini

This file was deleted.

82 changes: 58 additions & 24 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
[build-system]
requires = ["setuptools>=65.5.1"]
build-backend = "setuptools.build_meta"

[project]
name="ms-fabric-cli"
authors = [
{ name = "Microsoft Corporation" },
]
version="1.3.1"
description="Command-line tool for Microsoft Fabric"
readme="README.md"
requires-python=">=3.10,<3.14"
license="MIT"
name = "ms-fabric-cli"
authors = [{ name = "Microsoft Corporation" }]
description = "Command-line tool for Microsoft Fabric"
readme = "README.md"
dynamic = ["version"]
license = "MIT"
requires-python = ">=3.10,<3.14"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Development Status :: 5 - Production/Stable",
"Operating System :: OS Independent",
]

dependencies = [
"msal[broker]>=1.34,<2 ; platform_system != 'Linux'",
"msal>=1.34,<2",
Expand All @@ -31,21 +25,61 @@ dependencies = [
"jmespath",
"pyyaml==6.0.2",
"argcomplete>=3.6.2",
"psutil==7.0.0"
"psutil==7.0.0",
"requests",
"cryptography",
]

[project.scripts]
fab = "fabric_cli.main:main"

[tool.setuptools.packages.find]
where = ["src"]
[project.urls]
Repository = "https://github.com/microsoft/fabric-cli.git"

[dependency-groups]
dev = ["pytest>=8.2.1", "tox>=4.20.0", "build", "pytest-cov", "vcrpy"]
docs = ["mkdocs-material", "mkdocs-section-index"]

[build-system]
requires = ["setuptools>=65.5.1"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
packages.find.where = ["src"]
dynamic.version = { attr = "fabric_cli.__init__.__version__" }
package-data = { "fabric_cli.core.fab_config" = [
"command_support.yaml",
], "fabric_cli.commands.fs" = [
"payloads/*",
] }

[tool.mypy]

# Module-specific overrides
[[tool.mypy.overrides]]
module = "pytest.*"
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = "msal.*"
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = "msal_extensions"
ignore_missing_imports = true

[[tool.mypy.overrides]]
module = "fabric_cli.utils.fab_mem_store"
ignore_errors = true

[tool.setuptools.package-data]
"fabric_cli.core.fab_config" = ["command_support.yaml"]
"fabric_cli.commands.fs" = ["payloads/*"]
"*" = ["NOTICE.txt", "LICENSE"]
[[tool.mypy.overrides]]
module = "pyspark.*"
ignore_missing_imports = true

[project.optional-dependencies]
test = [
"pytest>=8.2.1",
[tool.pytest.ini_options]
pythonpath = ["src"]
# Uncomment to enable live recording mode
# addopts = ["--record"]
markers = [
"token_claims(arg): override the 'upn' or 'ctid' claim returned by get_token_claims",
]
6 changes: 0 additions & 6 deletions pytest.ini

This file was deleted.

20 changes: 0 additions & 20 deletions requirements.txt

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/install_dev_container_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ apt-get update && apt-get install -y \
pkg-config \
python3-dev \

pip3 install --user -r requirements.txt
pip3 install --user -e .[dev]

npm install -g changie
3 changes: 2 additions & 1 deletion src/fabric_cli/core/fab_constant.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

from fabric_cli import __version__
from fabric_cli.utils.fab_hostname_validator import validate_and_get_env_variable

# Initialize API endpoints with validation
Expand All @@ -27,7 +28,7 @@
WEB_URI = "https://app.powerbi.com/groups"

# Versioning
FAB_VERSION = "1.3.1" # change pyproject.toml version too, this must be aligned
FAB_VERSION = __version__

# Scopes
SCOPE_FABRIC_DEFAULT = ["https://analysis.windows.net/powerbi/api/.default"]
Expand Down
1 change: 1 addition & 0 deletions tox.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ deps = [
"types-requests",
"types-cachetools",
"types-psutil",
"pytest-mypy-plugins",
"vcrpy",
]
commands = [
Expand Down