Skip to content

Commit

Permalink
Update workflow publishing package part
Browse files Browse the repository at this point in the history
  • Loading branch information
jinningwang committed Sep 2, 2024
1 parent d06e235 commit 9950179
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Build a distribution if tagged
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9'
run: |
python setup.py sdist
python -m build
- name: Publish a Python distribution to PyPI if tagged
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9'
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ include-package-data = true # Ensure package data is included
[tool.setuptools.package-data]
"*" = ["CONTRIBUTING.rst", "LICENSE", "README.md", "versioneer.py", "ams/_version.py"]
"cases" = ["*.xlsx", "*.m", "*.raw", "*.dyr", "*.py", "*.json"]
"docs" = ["*.rst", "*.png", "conf.py", "Makefile", "make.bat"]
"docs" = ["*.rst", "*.png", "conf.py", "Makefile", "make.bat", "source/images/*"]

[tool.setuptools.exclude-package-data]
"py" = ["*.pyc", "*.pyo"]
Expand Down

0 comments on commit 9950179

Please sign in to comment.