diff --git a/.github/workflows/promptflow-import-linter.yml b/.github/workflows/promptflow-import-linter.yml index 740c327aa96..4e2877b436d 100644 --- a/.github/workflows/promptflow-import-linter.yml +++ b/.github/workflows/promptflow-import-linter.yml @@ -26,12 +26,16 @@ jobs: - name: Install all packages run: | cd ${{ env.WORKING_DIRECTORY }}/src/promptflow-tracing + touch promptflow/__init__.py poetry install --with dev cd ${{ env.WORKING_DIRECTORY }}/src/promptflow-core + touch promptflow/__init__.py poetry install --with dev cd ${{ env.WORKING_DIRECTORY }}/src/promptflow-devkit + touch promptflow/__init__.py poetry install --with dev cd ${{ env.WORKING_DIRECTORY }}/src/promptflow-azure + touch promptflow/__init__.py poetry install --with dev working-directory: ${{ env.WORKING_DIRECTORY }} - name: import lint diff --git a/scripts/installer/windows/scripts/generate_dependency.py b/scripts/installer/windows/scripts/generate_dependency.py index ebd4fab3f0f..900939d7a16 100644 --- a/scripts/installer/windows/scripts/generate_dependency.py +++ b/scripts/installer/windows/scripts/generate_dependency.py @@ -32,13 +32,6 @@ def extract_requirements(file_path): extras_requires = ast.literal_eval(keyword.value) return install_requires, extras_requires -def extract_requirements_b(file_path): - with open(file_path, 'r') as file: - tree = toml.load(file) - install_requires = tree['tool']['poetry']['dependencies'] - extras_requires = {} - return install_requires, extras_requires - def extract_package_names(packages): package_names = [] for package in packages: