Граф коммитов

26 Коммитов

Автор SHA1 Сообщение Дата
Yuchao Yan 3ab2a26535
Fix ci (#2785) 2024-08-22 22:27:51 +00:00
iscai-msft 48d1426447
split emitter into autorest.python and pygen (#2588)
* initial moving over into pygen core

* split package into pygen/core and autorest.python

* black

* pylint and mypy

* add editable install of pygen into autorest.python

* move files over to pygen

* basic generaiton possible from autorest with script files moved to pygen

* autorest generation working from scripts in pygen file

* require changelog check

* add changeset

* add pcgc to changelog

* comment out pylinting

* add back linting and check

* list installed packages

* list installed packages

* activate env in pipeline

* add pygen to common reqs

* change path to be relative from autorest.python

* pylint

* pyright

* add pygen to setup.py, remove from requirements.txt

* Revert "add pygen to setup.py, remove from requirements.txt"

This reverts commit ea73b14924.

* add pygen to unittests requirements.txt

* update unittests

* hopefully fix multiapi

* keep it as just one venv in pygen

* typespec compiling with pygen inside dist

* can copy pygen into dist when building and generate all typespec

* trying to remove packaging files from pygen

* typespec and autorest.python working with vendored pygen

* update chronus

* fix version mismatch

* lockfile

* add venv folder path

* fix template

* add venv folder path with $ sign

* don't put venv in the venvFolderPath

* add fi to venv script

* add tilde to semver

* rmeove venv from pipelines, too complicated

* udpate lockfile

* revert dev_requirements.txt back to current in main

* remove pygen from reqs list

* add pygen to dev reqs

* add pygen back to unittests reqs

* temp

* continue moving pygen to into typespec-python

* add dep on typespec-python in autorest.python

* can generate autorest

* can generate typespec locally

* update reqs

* duplicate runpython3 script in autorest, fix dev reqs path

* move scripts for typespec out of pygen folder

* add scripts to incldued files

* copyfiles venv into autorest.python

* duplicate venv

* move venv into pygen folder

* can generate typespec

* fix installation for tsp and try to copy pygen into autorest.python

* use own script for copying pygen

* fix readme and setup.py of autorest.pyton

* copy pygen into autorest.python

* try moving pygen up a folder

* make pygen a package again

* keep trying with setup.py file

* remove generator from autorest.python committed code, can generate typespec

* move venv into top level of package

* get autorest.python running

* add generator to dev reqs

* fix venvtools path

* update dev reqs

* add generator to published files

* update script

* update

* update

---------

Co-authored-by: iscai-msft <isabellavcai@gmail.com>
Co-authored-by: Chenjie Shi <tadelesh.shi@live.cn>
2024-07-03 16:25:20 +08:00
Patrick Hallisey 881659f763
Create a pipeline for generic autorest verification (#2097) 2023-11-16 23:43:31 +00:00
iscai-msft 55b68deef8
fix request builders for multiple clients (#1518) 2022-10-19 12:29:15 -07:00
iscai-msft 8a34d2b67f
switch to dpg client getters (#1516) 2022-10-18 15:34:49 -07:00
iscai-msft e604493be5
initial cadl ranch ci (#1403) 2022-08-22 17:23:02 -07:00
iscai-msft 0b504c3887
Cadl ranch gen (#1367) 2022-07-28 16:29:41 -07:00
iscai-msft 5d50efab68
Refactor autorest (#1362) 2022-07-22 16:09:13 -07:00
iscai-msft 71a3bcf194
don't generate operations with multipart of urlencoded bodies (#1223) 2022-04-08 13:16:59 -07:00
Yuchao Yan 456e3cc233
[Security definition] support security definition in swagger (#1161) 2022-03-24 11:48:41 -04:00
iscai-msft 058bb3de62
update release tests to hopefully get coverage report green (#1152) 2022-02-25 13:59:04 -05:00
iscai-msft 7a8b17ea94
Docs (#853) 2021-01-08 15:37:01 -05:00
iscai-msft b448b0d8d8
Generating swaggers (#330)
* added inv regenerate for storage blob and textanalytics

* added code for mgmt plane, has problems and commented out

* added graphrbac, getting Enum types of 'undefined' are not supported error

* added websearch, getting invalid JSON pointer error

* still running into mgmt storage problems, trying to fix

* using own version of graphrbac swagger, graphrbac generating but blocked on parameter grouping

* adding search

* adding generated test files to gitignore

* updated to latest autorest and modelerfour for changes

* not checking in generated swagger code

* removing generated files from pr

* Add model generation to services

* Plug debug

* Seach update

Co-authored-by: Laurent Mazuel <lmazuel@microsoft.com>
2020-01-31 09:41:16 -08:00
Laurent Mazuel cbfc69b472 Don't commit YAML code model 2019-12-27 16:22:42 -08:00
iscai-msft 6beeb15c0e before switching to Garrett's way using all different Schema types 2019-09-29 15:47:09 -05:00
Laurent Mazuel 672384ea6d
Remove unwanted files from repo 2019-09-25 08:53:07 -07:00
iscai-msft 5323cc08bf invoke regenerate and test implemented, waiting on README changes (#116) 2019-09-19 12:07:03 -07:00
Laurent Mazuel de5045b84f
Re-structure for Autorest v3 2019-09-16 14:34:57 -07:00
iscai-msft 765ffb48a3 Fixes #77 Makes --keep-version-file work for Azure and Vanilla (#78)
* initial keep file version working, will do more tests

* Update .gitignore

* Get latest tests to work

* ChangeLog
2019-05-21 15:57:24 -07:00
Laurent Mazuel 079eb63eca
Async (#42)
* Work in progress

* Regenerate tests

* Add async suffix to methods

* Add async suffix to methods - regenerate

* Improve methodName in templates

* Improve methodName in templates - regenerate

* Fix LRO doc for async

* Fix LRO doc for async - regenerate

* Async paging

* Async paging - regenerate

* Fix raw paging async

* Client import should not be long versions

* Fix paging async_send

* Generate the basic setup.py

* Async paging tests

* Regenerate tests

* Fix longrunning async template

* Fix longrunning async template - regenerate

* Move Azure tests to pytest

* Migrate vanilla to pytest

* Rewrite test server credentials as fixture

* Introduce some keyword only args in async method

* Introduce some keyword only args in async method - regenerate

* Mixin client for async at the client level

* Mixin client for async at the client level - regenerate

* Move flattening tests to pytest

* Flattening async tests

* Fix async service client path

* Vanilla client operations as mixin

* Vanilla client operations as mixin - regenerate

* Fix LRO tests after custome_headers keyword only arguments

* Async client level operations for Azure

* Async client level operations for Azure - regenerate

* Remove AzureResource from azure expected

* Fix manual PYTHONPATH for async

* Play ModelFlattening tests in Azure testsuite, for async at client level testing

* Fix LRO doc

* Fix LRO import in async client level mixin

* Refactor tests

* Migrate test_file to pytest

* Stream download async test + code

* Convert all vanilla tests to pytest

* Convert all azure tests to pytest

* Complete Azure async testing

* Complete Vanilla async testing

* Fix asynctests for testserver 2.4.2

* Fix asynctests for testserver 2.4.3

* Change async branch to follow pipeline

* Add session conf to async tests

* Tests more robust for pipeline

* Use PyPI msrest

* Latest testserver

* Update to msrestazure 0.6.0

* Make it Autorest.Python 4.x

* Update msrest version

* Update setup dep
2018-12-17 16:01:05 -08:00
Laurent Mazuel 054552d14d
Post fix (#59)
* Final-state-via implementation

* Fix testserver dependency

* Latest testserver and msrestazure

* ChangeLog

* Test req

* Latest testserver regeneration
2018-06-13 16:37:38 -07:00
Laurent Mazuel 68de1122b5
Migrate to pytest (#51) 2018-04-02 09:11:07 -07:00
Garrett Serack 19b36e2661 Publish With Yarn (#7) 2017-09-25 10:42:25 -07:00
Johannes Bader 59b7ecf2bb rel (#6) 2017-09-22 16:48:05 -07:00
Johannes Bader ba4e303e8d initial (#1)
* init

* tests

* cleanup

* finetune

* tests

* azure tests
2017-08-25 16:58:40 -07:00
Microsoft GitHub User 601713e1fe Initial commit 2017-08-14 15:58:33 -07:00