Skip to content

Commit

Permalink
add pygen to setup.py, remove from requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
iscai-msft committed May 14, 2024
1 parent b6e0fae commit ea73b14
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
12 changes: 2 additions & 10 deletions eng/pipelines/ci-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand All @@ -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 }})
Expand Down
1 change: 0 additions & 1 deletion eng/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ pyright==1.1.362
pylint==3.1.0
tox==4.15.0
mypy==1.10.0
-e ../pygen
1 change: 0 additions & 1 deletion packages/autorest.python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@ platformdirs==3.2.0
PyYAML==6.0.1
tomli==2.0.1
setuptools==69.2.0
-e ../pygen
3 changes: 3 additions & 0 deletions packages/autorest.python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,7 @@
"m2r2",
"black",
],
dependency_links=[
'file:../pygen#egg=pygen',
]
)

0 comments on commit ea73b14

Please sign in to comment.