-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.ps1
10 lines (10 loc) · 1.09 KB
/
build.ps1
1
2
3
4
5
6
7
8
9
10
Remove-Item –path ./cloudmersive_ocr_api_client –recurse
& java -jar swagger-codegen-cli-2.4.14.jar generate -i https://api.cloudmersive.com/swagger/api/ocr -l python -c packageconfig.json
$extrasetup = (Get-Content ./extrasetup.py) -join "`n"
Write-Host $extrasetup
(Get-Content ./setup.py).replace('# http://pypi.python.org/pypi/setuptools', $extrasetup) | Set-Content ./setup.py
(Get-Content ./setup.py).replace('"""\', "long_description,`n long_description_content_type='text/markdown'") | Set-Content ./setup.py
(Get-Content ./setup.py).replace('The powerful Optical Character Recognition (OCR) APIs let you convert scanned images of pages into recognized text. # noqa: E501', '') | Set-Content ./setup.py
(Get-Content ./setup.py).replace(' """', '') | Set-Content ./setup.py
(Get-Content ./README.md).replace('This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:', 'This Python package provides a native API client for [Cloudmersive OCR](https://www.cloudmersive.com/ocr-api)') | Set-Content ./README.md
Write-Host "Done."