Skip to content

Commit

Permalink
IMPROVEMENT: simplify and speedup pypi publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
amilcarlucas committed Jan 14, 2025
1 parent 6fa0cfe commit cd9e5e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ jobs:

- name: Install dependencies
run: |
python -m pip install -U pip wheel pymavlink build
pip install -U .
python -m pip install -U build packaging pip setuptools wheel
- name: Build package
run: python -m build --wheel
run: python -m build .

- name: Publish package distribuitions to PyPI
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ changelog = "https://github.com/ArduPilot/MethodicConfigurator/releases"

[tool.setuptools]
packages = ["ardupilot_methodic_configurator"]
package-data = {ardupilot_methodic_configurator = ["*.param", "*.jpg", "*.json", "*.xml", "*.mo", "*.png"]}
exclude-package-data = {ardupilot_methodic_configurator = ["test.xml"]}
include-package-data = true

[tool.setuptools.package-data]
ardupilot_methodic_configurator = ["*.param", "*.jpg", "*.json", "*.xml", "*.mo", "*.png"]

[tool.setuptools.dynamic]
version = {attr = "ardupilot_methodic_configurator.__version__"}
Expand Down

0 comments on commit cd9e5e8

Please sign in to comment.