Skip to content

Commit 634661e

Browse files
committed
Include tarball and tests in pypi release
1 parent 8676cdf commit 634661e

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/publish_release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
python-version: ['3.9']
16-
poetry-version: [1.1.11]
16+
poetry-version: [1.8.3]
1717
os: [ubuntu-20.04]
1818

1919
steps:
@@ -41,7 +41,9 @@ jobs:
4141
uses: actions/upload-artifact@v4
4242
with:
4343
name: ${{ matrix.os }}-py${{ matrix.python-version }}
44-
path: "dist/*.whl"
44+
path: |
45+
"dist/*.whl"
46+
"dist/*.tar.gz"
4547
4648
4749
publish:
@@ -55,6 +57,7 @@ jobs:
5557
- run : |
5658
ls -R
5759
mv -v */*.whl .
60+
mv -v */*.tar.gz .
5861
rmdir ubuntu-*
5962
- name: Publish to TestPyPI
6063
uses: pypa/gh-action-pypi-publish@v1.5.0

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ keywords = ["mass spectrometry", "missing values", "proteomics", "quantification
1111
include = [
1212
"LICENSE",
1313
]
14-
#build = "build.py" # this creates platform and python version specific packages when running poetry build. Not necessary here since we do not have compiled code, e.g. cython
14+
packages = [
15+
{include = "triqler"},
16+
{include = "tests", format = "sdist"},
17+
]
1518

1619
[tool.poetry.scripts]
1720
triqler = 'triqler.triqler:main'

0 commit comments

Comments
 (0)