Skip to content

Commit c675435

Browse files
committed
Build sdist package again
1 parent 7bdd7d9 commit c675435

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,23 @@ jobs:
7777
- name: Install dependencies
7878
run: pip install -r requirements.txt -r requirements-doc.txt
7979

80+
- name: Patch setup.py with explicit version number
81+
# Fix for https://github.com/dolfinus/setuptools-git-versioning/issues/72#issuecomment-1312589464
82+
run: |
83+
version=$(echo $GITHUB_REF_SLUG | sed -E "s/v(.*)/\1/")
84+
sed -i -E "s/.* setuptools_git_versioning.*//" setup.py
85+
sed -i -E "s/version=.*/version='${version}',/" setup.py
86+
8087
- name: Build package
81-
run: python setup.py bdist_wheel
88+
run: python setup.py sdist bdist_wheel
8289

8390
- name: Inject slug/short variables
8491
uses: rlespinasse/[email protected]
8592

8693
- name: Build release notes
8794
run: |
8895
mkdir reports/
89-
pip install -e . --no-build-isolation
90-
version=$(echo $GITHUB_REF_SLUG | sed -E "s/v(.*)/\1/")
96+
pip install -e .
9197
# lines 1 and 3 are empty, line 2 contains version number, line 4 contains release date
9298
changelog generate-md -c ./docs/conf.py CHANGELOG.rst -v $version | sed "1,4d" > reports/release.md
9399

CHANGELOG.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@ Changelog
44
1.13
55
----
66

7+
.. changelog::
8+
:version: 1.13.1
9+
10+
.. change::
11+
:tags: general, feature
12+
:tickets: 72, 49
13+
14+
Build sdist package again
15+
16+
.. change::
17+
:tags: general, bugfix
18+
:tickets: 72, 49
19+
20+
Allow to install package from ``.tar.gz`` without ``--no-build-isolation`` flag
21+
722
.. changelog::
823
:version: 1.13.0
924
:released: 01.11.2022

0 commit comments

Comments
 (0)