diff --git a/check50/__main__.py b/check50/__main__.py index 5bf1c9d9..16148b63 100644 --- a/check50/__main__.py +++ b/check50/__main__.py @@ -168,7 +168,7 @@ def await_results(commit_hash, slug, pings=45, sleep=2): for _i in range(pings): # Query for check results. - res = requests.get(f"https://submit.cs50.io/api/results/check50?check50", params={"commit_hash": commit_hash, "slug": slug}) + res = requests.get(f"https://submit.cs50.io/api/results/check50", params={"commit_hash": commit_hash, "slug": slug}) results = res.json() if res.status_code not in [404, 200]: @@ -302,7 +302,7 @@ def main(): excepthook.output_file = args.output_file if not args.local: - commit_hash = lib50.push("check50", SLUG, internal.CONFIG_LOADER, commit_suffix="[check50=true]")[1] + commit_hash = lib50.push("check50", SLUG, internal.CONFIG_LOADER, data={"check50": True})[1] with lib50.ProgressBar("Waiting for results") if "ansi" in args.output else nullcontext(): tag_hash, results = await_results(commit_hash, SLUG) else: diff --git a/setup.py b/setup.py index ef8b6a8e..fa0d9680 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ message_extractors = { 'check50': [('**.py', 'python', None),], }, - install_requires=["attrs>=18", "bs4>=0", "pexpect>=4.6", "lib50>=1.1.8", "pyyaml>=3.10", "requests>=2.19", "termcolor>=1.1", "jinja2>=2.10"], + install_requires=["attrs>=18", "bs4>=0", "pexpect>=4.6", "lib50>=2,<3", "pyyaml>=3.10", "requests>=2.19", "termcolor>=1.1", "jinja2>=2.10"], extras_require = { "develop": ["sphinx", "sphinx_rtd_theme"] }, @@ -29,6 +29,6 @@ "console_scripts": ["check50=check50.__main__:main"] }, url="https://github.com/cs50/check50", - version="3.0.6", + version="3.0.7", include_package_data=True )