diff --git a/eng/pipelines/ci-template.yml b/eng/pipelines/ci-template.yml index 2b49a88122..22fdb00718 100644 --- a/eng/pipelines/ci-template.yml +++ b/eng/pipelines/ci-template.yml @@ -68,18 +68,10 @@ steps: displayName: Build project workingDirectory: $(Build.SourcesDirectory)/autorest.python/ - - script: pip list - displayName: List installed packages - workingDirectory: $(Build.SourcesDirectory)/autorest.python/packages/${{parameters.folderName}} - - script: pip install -r dev_requirements.txt displayName: Pip install dev requirements workingDirectory: $(Build.SourcesDirectory)/autorest.python/packages/${{parameters.folderName}} - - script: pip list - displayName: List installed packages - workingDirectory: $(Build.SourcesDirectory)/autorest.python/packages/${{parameters.folderName}} - - script: pylint ${{parameters.pythonFolderName}} displayName: Pylint workingDirectory: $(Build.SourcesDirectory)/autorest.python/packages/${{parameters.folderName}} @@ -106,8 +98,8 @@ steps: condition: and(succeeded(), ${{ parameters.pythonCodeChecks }}) - script: | - cd test/unittests - tox run -e ci + cd test/unittests + tox run -e ci displayName: Unit tests workingDirectory: $(Build.SourcesDirectory)/autorest.python/packages/${{parameters.folderName}}/ condition: and(succeeded(), ${{ parameters.pythonCodeChecks }}) diff --git a/eng/requirements.txt b/eng/requirements.txt index 01a0dd95c0..ec4654ea52 100644 --- a/eng/requirements.txt +++ b/eng/requirements.txt @@ -3,4 +3,3 @@ pyright==1.1.362 pylint==3.1.0 tox==4.15.0 mypy==1.10.0 --e ../pygen diff --git a/packages/autorest.python/requirements.txt b/packages/autorest.python/requirements.txt index d7e9676327..17ae43bada 100644 --- a/packages/autorest.python/requirements.txt +++ b/packages/autorest.python/requirements.txt @@ -11,4 +11,3 @@ platformdirs==3.2.0 PyYAML==6.0.1 tomli==2.0.1 setuptools==69.2.0 --e ../pygen diff --git a/packages/autorest.python/setup.py b/packages/autorest.python/setup.py index b22fa2172c..b648365e46 100644 --- a/packages/autorest.python/setup.py +++ b/packages/autorest.python/setup.py @@ -53,4 +53,7 @@ "m2r2", "black", ], + dependency_links=[ + 'file:../pygen#egg=pygen', + ] )