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 ac96ae5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,17 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python 3.12
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.9'

- 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 ac96ae5

Please sign in to comment.