Skip to content

Commit cca3204

Browse files
authored
Merge pull request #94 from arokem/fix_version_string_again
Attempt to fix version string again.
2 parents bc46111 + 3466057 commit cca3204

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

.github/workflows/publish-to-test-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
run: python -c "import sys; print(sys.version)"
4242
- name: Install sdist without optional dependencies
4343
run: pip install dist/*.tar.gz
44-
- run: python -c 'import trx; print(trx._version.__version__)'
44+
- run: python -c 'import trx.version; print(trx.version.__version__)'
4545
- name: Install pytest
4646
run: pip install pytest
4747
- name: Run tests

pyproject.toml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,8 @@ tff_visualize_overlap = "trx.cli:visualize_cmd"
8585
packages = ["trx"]
8686
include-package-data = true
8787

88-
[tool.setuptools.dynamic]
89-
version = {attr = "trx._version.__version__"}
90-
9188
[tool.setuptools_scm]
92-
write_to = "trx/_version.py"
93-
write_to_template = """\
94-
\"\"\"Version file, automatically generated by setuptools_scm.\"\"\"
95-
__version__ = "{version}"
96-
"""
89+
write_to = "trx/version.py"
9790
fallback_version = "0.0"
9891
local_scheme = "no-local-version"
9992

0 commit comments

Comments
 (0)