diff --git a/setup.py b/setup.py index 317a469c7..6762fdf6d 100644 --- a/setup.py +++ b/setup.py @@ -28,6 +28,9 @@ with open("VERSION") as f: version = f.read().strip() +# Allow installing a particular commit for testing +commit_sha = os.getenv("COVALENT_COMMIT_SHA") +artifact_id = commit_sha if commit_sha else f"v{version}" requirements_file = "requirements.txt" exclude_modules = [ @@ -202,7 +205,7 @@ def find_sources(self): "version": version, "maintainer": "Agnostiq", "url": "https://github.com/AgnostiqHQ/covalent", - "download_url": f"https://github.com/AgnostiqHQ/covalent/archive/v{version}.tar.gz", + "download_url": f"https://github.com/AgnostiqHQ/covalent/archive/{artifact_id}.tar.gz", "license": "Apache License 2.0", "author": "Agnostiq", "author_email": "support@agnostiq.ai",