appveyor.yml: also build python module source tar.gz and upload it

This commit is contained in:
Thomas Bernard 2024-05-09 16:01:32 +02:00
parent 83b5dfbc4f
commit ae311e4b84
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF
2 changed files with 2 additions and 1 deletions

View File

@ -99,4 +99,4 @@ artifacts:
deploy_script:
- appveyor AddCompilationMessage "Deploying to PyPI"
- '%PYTHON_VER%\\python.exe -m pip install twine'
- '%PYTHON_VER%\\python.exe -m twine upload -u %USER% -p %PASS% --skip-existing dist/*.whl'
- '%PYTHON_VER%\\python.exe -m twine upload -u %USER% -p %PASS% --skip-existing dist/*.whl dist/*.tar.gz'

View File

@ -86,6 +86,7 @@ libminiupnpc.a: $(OBJS)
pythonmodule: libminiupnpc.a
$(PYTHON) setupmingw32.py build $(SETUP_COMPILER_FLAG)
$(PYTHON) setupmingw32.py install --skip-build
$(PYTHON) setupmingw32.py sdist
$(PYTHON) setupmingw32.py bdist_wheel --skip-build
miniupnpc.dll: miniupnpc.def $(OBJSDLL)