()
| 153 | |
| 154 | |
| 155 | def get_package_version(): |
| 156 | with open(Path(this_dir) / "causal_conv1d" / "__init__.py", "r") as f: |
| 157 | version_match = re.search(r"^__version__\s*=\s*(.*)$", f.read(), re.MULTILINE) |
| 158 | public_version = ast.literal_eval(version_match.group(1)) |
| 159 | local_version = os.environ.get("CAUSAL_CONV1D_LOCAL_VERSION") |
| 160 | if local_version: |
| 161 | return f"{public_version}+{local_version}" |
| 162 | else: |
| 163 | return str(public_version) |
| 164 | |
| 165 | |
| 166 | def get_wheel_url(): |
no outgoing calls
no test coverage detected