chore: fix directory where to find binary package after build

This commit is contained in:
Daniele Varrazzo 2022-10-25 12:44:24 +02:00
parent e6e465c509
commit 77039cad63
3 changed files with 6 additions and 6 deletions

View File

@ -52,11 +52,11 @@ How to make a psycopg2 release
- When the workflows have finished download the packages using the - When the workflows have finished download the packages using the
``download_packages_{github|appveyor}.py`` scripts from the ``download_packages_{github|appveyor}.py`` scripts from the
``scripts/build`` directory. They will be saved in a ``scripts/build`` directory. They will be saved in a
``packages/psycopg2-${VERSION}`` directory. ``wheelhouse/psycopg2-${VERSION}`` directory.
- Only for stable packages: upload the signed packages on PyPI:: - Only for stable packages: upload the signed packages on PyPI::
$ twine upload -s packages/psycopg2-${VERSION}/* $ twine upload -s wheelhouse/psycopg2-${VERSION}/*
- Create a release and release notes in the psycopg website, announce to - Create a release and release notes in the psycopg website, announce to
psycopg and pgsql-announce mailing lists. psycopg and pgsql-announce mailing lists.
@ -69,7 +69,7 @@ Releasing test packages
Test packages may be uploaded on the `PyPI testing site`__ using:: Test packages may be uploaded on the `PyPI testing site`__ using::
$ twine upload -s -r testpypi packages/psycopg2-${VERSION}/* $ twine upload -s -r testpypi wheelhouse/psycopg2-${VERSION}/*
assuming `proper configuration`__ of ``~/.pypirc``. assuming `proper configuration`__ of ``~/.pypirc``.

View File

@ -69,7 +69,7 @@ def main():
fn = af["fileName"] fn = af["fileName"]
if fn.startswith("dist/"): if fn.startswith("dist/"):
fn = fn.split("/", 1)[1] fn = fn.split("/", 1)[1]
dest = Path("packages") / fn dest = Path("wheelhouse") / fn
logger.info(f"downloading {dest}") logger.info(f"downloading {dest}")
resp = s.get( resp = s.get(
f"{API_URL}/buildjobs/{job['jobId']}/artifacts/{af['fileName']}" f"{API_URL}/buildjobs/{job['jobId']}/artifacts/{af['fileName']}"
@ -81,7 +81,7 @@ def main():
with dest.open("wb") as f: with dest.open("wb") as f:
f.write(resp.content) f.write(resp.content)
logger.info("now you can run: 'twine upload -s packages/*'") logger.info("now you can run: 'twine upload -s wheelhouse/*'")
def parse_cmdline(): def parse_cmdline():

View File

@ -57,7 +57,7 @@ def main():
resp.raise_for_status() resp.raise_for_status()
artifacts = resp.json()["artifacts"] artifacts = resp.json()["artifacts"]
dest = Path("packages") dest = Path("wheelhouse")
if not dest.exists(): if not dest.exists():
logger.info(f"creating dir {dest}") logger.info(f"creating dir {dest}")
dest.mkdir(parents=True) dest.mkdir(parents=True)