Skip to content

Commit 71146c0

Browse files
Fetch the full git history when releasing (#56)
* Fetch the full git history when releasing * Make version number dynamic
1 parent f37c657 commit 71146c0

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/artifacts_build.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323

2424
steps:
2525
- uses: actions/[email protected]
26+
with:
27+
fetch-depth: 0 # get the non-merge commit for PRs
28+
fetch-tags: true # include tags to get correct version from setuptools_scm
2629

2730
- name: Install Python dependencies
2831
run: python -m pip install --upgrade pip build
@@ -47,6 +50,9 @@ jobs:
4750

4851
steps:
4952
- uses: actions/[email protected]
53+
with:
54+
fetch-depth: 0 # get the non-merge commit for PRs
55+
fetch-tags: true # include tags to get correct version from setuptools_scm
5056

5157
# https://github.com/actions/runner-images/issues/9894#issuecomment-2120538177
5258
# suggests we need to set up a c compiler on windows.
@@ -87,6 +93,9 @@ jobs:
8793

8894
steps:
8995
- uses: actions/[email protected]
96+
with:
97+
fetch-depth: 0 # get the non-merge commit for PRs
98+
fetch-tags: true # include tags to get correct version from setuptools_scm
9099

91100
# https://github.com/actions/runner-images/issues/9894#issuecomment-2120538177
92101
# suggests we need to set up a c compiler on windows.
@@ -127,6 +136,9 @@ jobs:
127136

128137
steps:
129138
- uses: actions/[email protected]
139+
with:
140+
fetch-depth: 0 # get the non-merge commit for PRs
141+
fetch-tags: true # include tags to get correct version from setuptools_scm
130142

131143
- name: Set up QEMU
132144
# QEMU is needed for Linux aarch64 wheels
@@ -161,6 +173,9 @@ jobs:
161173

162174
steps:
163175
- uses: actions/[email protected]
176+
with:
177+
fetch-depth: 0 # get the non-merge commit for PRs
178+
fetch-tags: true # include tags to get correct version from setuptools_scm
164179

165180
- name: Set up QEMU
166181
# QEMU is needed for Linux aarch64 wheels
@@ -195,6 +210,9 @@ jobs:
195210

196211
steps:
197212
- uses: actions/[email protected]
213+
with:
214+
fetch-depth: 0 # get the non-merge commit for PRs
215+
fetch-tags: true # include tags to get correct version from setuptools_scm
198216

199217
- name: Install unixODBC
200218
# unixODBC is necessary for the SQL C header files, e.g. sql.h, but doesn't appear

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ maintainers = []
1515
name = "npyodbc"
1616
readme = {file = "README.md", content-type = "text/markdown"}
1717
requires-python = ">=3.9"
18-
version = "0.1.0"
18+
dynamic = ["version"]
1919

2020
[project.urls]
2121
"Source" = "https://github.com/Quansight/npyodbc"

0 commit comments

Comments
 (0)