forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tox so all ci steps can use local source if package reference …
…not yet released (Azure#23897) * Update ci so all steps can use local source if package not released * Add additional release check to ensure we can't release a package that doesn't have at least one matching package on pypi for each requirement. Pin release versioning. Document additional skip in eng_sys_checks. Add typing on a few functions that are used by this PR * remove py2 specific build steps Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
- Loading branch information
1 parent
dcfad09
commit 8614158
Showing
10 changed files
with
137 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -242,6 +242,7 @@ | |
"parameterizing", | ||
"pytz", | ||
"pywin", | ||
"pyversion", | ||
"RAGRS", | ||
"rdbms", | ||
"reauthenticated", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
twine==3.1.1; python_version >= '3.6' | ||
readme-renderer[md]==25.0 | ||
pkginfo==1.5.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import os | ||
import argparse | ||
|
||
root_dir = os.path.abspath(os.path.join(os.path.abspath(__file__), "..", "..", "..")) | ||
|
||
from common_tasks import find_packages_missing_on_pypi | ||
|
||
if __name__ == "__main__": | ||
|
||
parser = argparse.ArgumentParser( | ||
description="This script is used during a release stage to prevent releasing packages on PyPI with missing dependencies." | ||
) | ||
|
||
parser.add_argument( | ||
"--package-name", | ||
required=True, | ||
help="name of package (accepts both formats: azure-service-package and azure_service_package)", | ||
) | ||
parser.add_argument( | ||
"--service", | ||
required=True, | ||
help="name of the service for which to set the dev build id (e.g. keyvault)", | ||
) | ||
|
||
args = parser.parse_args() | ||
|
||
package_name = args.package_name.replace("_", "-") | ||
path_to_setup = os.path.join(root_dir, "sdk", args.service, package_name, "setup.py") | ||
|
||
missing_packages = find_packages_missing_on_pypi(path_to_setup) | ||
|
||
if missing_packages: | ||
exit(1) |