Skip to content

Commit

Permalink
mock wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
CaselIT committed Mar 12, 2021
1 parent 1e19bbc commit f7945ea
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 63 deletions.
116 changes: 58 additions & 58 deletions .github/workflows/create-wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,24 +70,24 @@ jobs:
pip install tox
tox -e wheel_check -- ${{ matrix.pytest-extra }}
- name: Upload wheels to release
# upload the generated wheels to the github release
uses: AButler/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
files: 'dist/*.whl'

- name: Publish wheel
# the action https://github.com/marketplace/actions/pypi-publish runs only on linux and we cannot specify
# additional options
env:
TWINE_USERNAME: __token__
# replace TWINE_PASSWORD with token for real pypi
TWINE_PASSWORD: ${{ secrets.test_pypi_token }}
# TWINE_PASSWORD: ${{ secrets.pypi_token }}
run: |
pip install -U twine
twine upload --skip-existing dist/*
# - name: Upload wheels to release
# # upload the generated wheels to the github release
# uses: AButler/[email protected]
# with:
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# files: 'dist/*.whl'

# - name: Publish wheel
# # the action https://github.com/marketplace/actions/pypi-publish runs only on linux and we cannot specify
# # additional options
# env:
# TWINE_USERNAME: __token__
# # replace TWINE_PASSWORD with token for real pypi
# TWINE_PASSWORD: ${{ secrets.test_pypi_token }}
# # TWINE_PASSWORD: ${{ secrets.pypi_token }}
# run: |
# pip install -U twine
# twine upload --skip-existing dist/*

make-wheel-linux:
# see also comments in the make-wheel-win-osx job for details on the steps
Expand Down Expand Up @@ -170,23 +170,23 @@ jobs:
pip install tox
tox -e wheel_check -- ${{ matrix.pytest-extra }}
- name: Upload wheels to release
# upload the generated wheels to the github release
uses: AButler/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
files: 'dist/*manylinux*'

- name: Publish wheel
# We upload all manylinux wheels. pip will download the appropriate one according to the system.
env:
TWINE_USERNAME: __token__
# replace TWINE_PASSWORD with token for real pypi
TWINE_PASSWORD: ${{ secrets.test_pypi_token }}
# TWINE_PASSWORD: ${{ secrets.pypi_token }}
run: |
pip install -U twine
twine upload --skip-existing dist/*manylinux*
# - name: Upload wheels to release
# # upload the generated wheels to the github release
# uses: AButler/[email protected]
# with:
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# files: 'dist/*manylinux*'

# - name: Publish wheel
# # We upload all manylinux wheels. pip will download the appropriate one according to the system.
# env:
# TWINE_USERNAME: __token__
# # replace TWINE_PASSWORD with token for real pypi
# TWINE_PASSWORD: ${{ secrets.test_pypi_token }}
# # TWINE_PASSWORD: ${{ secrets.pypi_token }}
# run: |
# pip install -U twine
# twine upload --skip-existing dist/*manylinux*

make-source-dist:
# see also comments in the make-wheel-win-osx job for details on the steps
Expand Down Expand Up @@ -223,7 +223,7 @@ jobs:
pip install setuptools>=44 wheel>=0.34 cython>=0.29.21
# cythonize -3 falcon/**/*.pyx
python setup.py sdist --dist-dir dist
python .github/workflows/scripts/verify_tag.py /dist
python .github/workflows/scripts/verify_tag.py dist
- name: Upload wheels to release
# upload the generated wheels to the github release
Expand Down Expand Up @@ -332,25 +332,25 @@ jobs:
tox -e wheel_check -- ${{ matrix.pytest-extra }}
"
- name: Upload wheels to release
# upload the generated wheels to the github release
uses: AButler/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
files: 'dist/*manylinux*'

- name: Set up Python
uses: actions/[email protected]
with:
python-version: "3.8"
architecture: "x64"

- name: Publish wheel
env:
TWINE_USERNAME: __token__
# replace TWINE_PASSWORD with token for real pypi
TWINE_PASSWORD: ${{ secrets.test_pypi_token }}
# TWINE_PASSWORD: ${{ secrets.pypi_token }}
run: |
pip install -U twine
twine upload --skip-existing dist/*manylinux*
# - name: Upload wheels to release
# # upload the generated wheels to the github release
# uses: AButler/[email protected]
# with:
# repo-token: ${{ secrets.GITHUB_TOKEN }}
# files: 'dist/*manylinux*'

# - name: Set up Python
# uses: actions/[email protected]
# with:
# python-version: "3.8"
# architecture: "x64"

# - name: Publish wheel
# env:
# TWINE_USERNAME: __token__
# # replace TWINE_PASSWORD with token for real pypi
# TWINE_PASSWORD: ${{ secrets.test_pypi_token }}
# # TWINE_PASSWORD: ${{ secrets.pypi_token }}
# run: |
# pip install -U twine
# twine upload --skip-existing dist/*manylinux*
12 changes: 7 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ setenv =
PIP_CONFIG_FILE={toxinidir}/pip.conf
PYTHONASYNCIODEBUG=1
deps = -r{toxinidir}/requirements/tests
commands = {toxinidir}/tools/clean.sh {toxinidir}/falcon
commands = ;{toxinidir}/tools/clean.sh {toxinidir}/falcon
pytest tests []

# --------------------------------------------------------------------
Expand Down Expand Up @@ -61,8 +61,9 @@ commands = {toxinidir}/tools/clean.sh {toxinidir}/falcon
[with-coverage]
whitelist_externals = mkdir
mv
commands = "{toxinidir}/tools/clean.sh" "{toxinidir}/falcon"
coverage run -m pytest tests []
commands =
;"{toxinidir}/tools/clean.sh" "{toxinidir}/falcon"
coverage run -m pytest tests []

[testenv:py35]
deps = {[testenv]deps}
Expand Down Expand Up @@ -123,8 +124,8 @@ deps = {[with-debug-tools]deps}
basepython = python3.8
deps = {[testenv]deps}
pytest-mypy
commands = {toxinidir}/tools/clean.sh {toxinidir}/falcon
pytest --mypy -m mypy tests []
; commands = {toxinidir}/tools/clean.sh {toxinidir}/falcon
commands = pytest --mypy -m mypy tests []

# --------------------------------------------------------------------
# Cython
Expand Down Expand Up @@ -430,6 +431,7 @@ skipsdist = True
skip_install = True
deps = setuptools>=44
pytest
passenv = GITHUB_*
setenv =
PYTHONASYNCIODEBUG=0
PYTHONNOUSERSITE=1
Expand Down

0 comments on commit f7945ea

Please sign in to comment.