Skip to content

Commit

Permalink
fix: publish package
Browse files Browse the repository at this point in the history
  • Loading branch information
Niraj-Kamdar committed Jul 30, 2023
1 parent 035f029 commit 961ef08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/polywrap-plugin/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ envlist = py310
commands =
pytest tests/

[testenv:codegen]
commands =
echo "no codegen"

[testenv:lint]
commands =
isort --check-only polywrap_plugin
Expand Down
4 changes: 4 additions & 0 deletions scripts/publish_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ def publish_package(package: str, version: str) -> None:
logger.info(f"Patch version for {package} to {version}")
patch_version_with_retries(version)

package_path = Path.cwd().absolute()
if "plugins" in str(package_path) or "config-bundles" in str(package_path):
subprocess.check_call(["tox", "-e", "codegen"])

try:
subprocess.check_call(["poetry", "publish", "--build", "--username", "__token__", "--password", os.environ["POLYWRAP_BUILD_BOT_PYPI_PAT"]])
except subprocess.CalledProcessError:
Expand Down

0 comments on commit 961ef08

Please sign in to comment.