Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,23 @@ jobs:
with:
python-version: "3.x"

- name: Install build and stubgen dependencies
run: |
python -m pip install --upgrade pip
pip install wheel mypy setuptools # Add mypy and setuptools (if not already there)
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

- name: Generate Type Stubs
run: |
pip install -e .

mkdir -p dobotWrapperPy/stubs

stubgen -p dobotWrapperPy -o dobotWrapperPy/types
# stubgen -p dobotWrapperPy -o dobotWrapperPy/

- name: Build release distributions
run: |
# NOTE: put your own distribution build steps here.
python -m pip install -r requirements.txt
python -m pip install wheel
python setup.py sdist bdist_wheel

- name: Upload distributions
Expand All @@ -44,19 +56,11 @@ jobs:
needs:
- release-build
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write

# Dedicated environments with protections for publishing are strongly recommended.
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
environment:
name: pypi
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
url: https://pypi.org/project/dobotWrapperPy/
#
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
# ALTERNATIVE: exactly, uncomment the following line instead:
# url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}

steps:
- name: Retrieve release distributions
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
setuptools.setup(
name="dobotWrapperPy",
packages=["dobotWrapperPy", "dobotWrapperPy.enums"],
package_data={"dobotWrapperPy": ["py.typed"], "dobotWrapperPy.enums": ["py.typed"]},
package_data={"dobotWrapperPy": ["py.typed", "*.pyi", "types/*.pyi"]},
include_package_data=True,
version="1.1.1",
description="Python library for Dobot Magician For Minitechnicus Courses",
Expand Down