github_repo_scraped
/
repos
/Azure-azure-sdk-for-python-c89899b
/doc
/dev
/engineering_assumptions.md
Engineering System Assumptions, Gotchas, and Minutiae
- All wheels are generated with influence from
setup.cfg
at the built package root. This means that for most of our packages, theuniversal
flag is set within thesetup.cfg
.
[bdist_wheel]
universal=1
- If a package does not have
universal
set, then the default build will produce a wheel forpy3
. This is due to the fact that wheels are currently generated by a CI step runningPython 3.6
.
Build
Build CI for azure-sdk-for-python
essentially builds and tests packages in one of two methodologies.
Individual Packages
- Leverage
tox
to create wheel, install, and execute tests against newly installed wheel - Tests each package in isolation (outside of dev_requirements.txt dependencies + necessary
pylint
andmypy
)
Global Method
- Install on packages (and their dev_requirements!) in one go.
- Run
pytest <folder1>, pytest <folder2>
where folders correspond to package folders- While all packages are installed alongside each other, each test run is individual to the package. This has the benefit of not allowing
packageA
'sconftest.py
to mess withpackageB
's environment.'
- While all packages are installed alongside each other, each test run is individual to the package. This has the benefit of not allowing
So when do they run?
A standard pull request will option target the Individual Packages
option. On a nightly cadence, the python - client
build installs the entire world and tests in both methodologies outlined above.