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 28, 2024
1 parent d855231 commit fb9f825
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated Slurm plugin docs to note possible SSH limitation
- Updated Slurm plugin docs to remove `sshproxy` section

### Operations

- Allow installing a specific commit sha to faciliate testing

## [0.234.1-rc.0] - 2024-05-10

### Authors
Expand Down
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 fb9f825

Please sign in to comment.