Skip to content

Commit ca9bfbf

Browse files
committed
Device definitions available as patch releases (#19)
- Switches automatic version bump from minor to patch - Updated Readme file with compatible release operator sample
1 parent d451686 commit ca9bfbf

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/pci-update-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
# Get current version and increment minor version
105105
current_version = config['project']['version']
106106
major, minor, patch = current_version.split('.')
107-
new_version = f"{major}.{int(minor) + 1}.0"
107+
new_version = f"{major}.{minor}.{int(patch) + 1}"
108108
109109
# Update version in config
110110
config['project']['version'] = new_version

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ It deals with the complexity of the variety of torch builds and configurations r
2020
# Installation
2121
Supports Windows, Linux, and Mac.
2222

23+
### As a dependency
24+
25+
Add the following definition to your `requirements.txt` or `pyproject.toml` file:
26+
27+
`torchruntime~=[version]`
28+
29+
Replace `[version]` with the desired version of Torchruntime. Using the [compatible release operator](https://packaging.python.org/en/latest/specifications/version-specifiers/#compatible-release) allows for updated device definitions to be made available to users without further changes. You will still need to manually change the version specification when breaking changes are introduced.
30+
31+
### Manually
32+
2333
`pip install torchruntime`
2434

2535
## Usage

0 commit comments

Comments
 (0)