Skip to content

Commit

Permalink
setup.py: allow installing a specific commit sha
Browse files Browse the repository at this point in the history
  • Loading branch information
cjao committed May 25, 2024
1 parent 1fa8ac9 commit 573195b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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": "[email protected]",
Expand Down

0 comments on commit 573195b

Please sign in to comment.