From 2e39a346b533322154fd8847a9022b142d7fc177 Mon Sep 17 00:00:00 2001 From: Antonio Cavallo Date: Wed, 1 Jan 2025 12:44:18 -0500 Subject: [PATCH] update docs --- pyproject.toml | 2 +- support/release.py | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c9b4d4a..6ae3afa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta" name = "mono2repo" version = "0.1.0" description = "create a standalone repo from a monorepo subdir." -readme = "README.md" +readme = "README.rst" license = { text = "MIT" } requires-python = ">= 3.9" diff --git a/support/release.py b/support/release.py index f77e640..cdbc96c 100755 --- a/support/release.py +++ b/support/release.py @@ -64,6 +64,8 @@ def parse_args(args=None): # if options.github_dump is None: + if not os.getenv("GITHUB_DUMP"): + parser.error("GITHUB_DUMP environment variable empty or not defined") options.github_dump = json.loads(os.getenv("GITHUB_DUMP")) elif options.github_dump == "local": options.github_dump = common.github_dump_from_local() @@ -74,10 +76,7 @@ def parse_args(args=None): def main(args): - github_dump = args.github_dump - if not github_dump: - args.error("missing GITHUB_DUMP variable") - gdata = common.github_dump_validate(github_dump) + gdata = common.github_dump_validate(args.github_dump) with common.savefiles() as save: # update pyproject.toml