-
Notifications
You must be signed in to change notification settings - Fork 329
Compute version witch hatch-vcs #2080
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
222cff7
eba2208
9831e6d
58cc82e
1f3dbe7
df58675
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -38,12 +38,12 @@ COPY --from=ghcr.io/astral-sh/uv:0.8.22 /uv /uvx /bin/ | |||
|
|
||||
| USER 1000 | ||||
|
|
||||
| COPY Makefile /rally/ | ||||
| COPY README.md /rally/ | ||||
| COPY .ci/variables.json /rally/.ci/ | ||||
| COPY esrally/ /rally/esrally/ | ||||
| COPY pyproject.toml /rally/ | ||||
| COPY uv.lock /rally/ | ||||
| COPY --chown=1000:0 Makefile /rally/ | ||||
| COPY --chown=1000:0 README.md /rally/ | ||||
| COPY --chown=1000:0 .ci/variables.json /rally/.ci/ | ||||
| COPY --chown=1000:0 esrally/ /rally/esrally/ | ||||
| COPY --chown=1000:0 pyproject.toml /rally/ | ||||
| COPY --chown=1000:0 uv.lock /rally/ | ||||
|
|
||||
| ENV VIRTUAL_ENV=/rally/venv | ||||
| ENV PATH=/rally/venv/bin:$PATH | ||||
|
|
@@ -52,6 +52,7 @@ ENV UV_PROJECT_ENVIRONMENT=/rally/venv | |||
| # Wipe away any lingering caches, copied over from the local machine | ||||
| RUN find /rally -name "__pycache__" -exec rm -rf -- \{\} \; 2>/dev/null || true | ||||
| RUN find /rally -name ".pyc" -exec rm -rf -- \{\} \; 2>/dev/null || true | ||||
| ENV SETUPTOOLS_SCM_PRETEND_VERSION=${RALLY_VERSION} | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In dev Docker scripts Line 61 in d0ff8da
|
||||
| RUN make install | ||||
|
|
||||
| LABEL org.label-schema.schema-version="1.0" \ | ||||
|
|
||||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,13 @@ | ||
| [build-system] | ||
| requires = ["hatchling"] | ||
| requires = ["hatchling", "hatch-vcs"] | ||
| build-backend = "hatchling.build" | ||
|
|
||
| [tool.hatch.version] | ||
| path = "esrally/_version.py" | ||
| source = "vcs" | ||
| [tool.hatch.version.raw-options] | ||
| local_scheme = "no-local-version" | ||
| [tool.hatch.build.hooks.vcs] | ||
| version-file = "esrally/_version.py" | ||
|
Comment on lines
5
to
+10
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This instructs hatch and hatch-vcs to create the
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add it as a comment. It will help in the future. |
||
|
|
||
| [tool.hatch.metadata] | ||
| allow-direct-references = true | ||
|
|
@@ -166,7 +170,7 @@ profile = 'black' | |
| # set to true for more verbose output of tests | ||
| log_cli = false | ||
| log_level = "INFO" | ||
| addopts = "--verbose --color=yes" | ||
| addopts = "--verbose --color=yes --import-mode=importlib" | ||
| testpaths = "tests" | ||
| junit_family = "xunit2" | ||
| junit_logging = "all" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no inline comments in
.gitignore, please move the comment to the previous line.