mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-06-30 02:13:27 +03:00
Compare commits
36 Commits
master
...
4.10.3dev5
Author | SHA1 | Date | |
---|---|---|---|
|
8002ce71a8 | ||
|
021e2e5bde | ||
|
15ab192bc7 | ||
|
210f8bd25e | ||
|
7db553a355 | ||
|
3fb5f134ee | ||
|
fe5c33b8a2 | ||
|
e3defb6596 | ||
|
5345f3db42 | ||
|
9971d4bb27 | ||
|
5ea7612687 | ||
|
375a6ec192 | ||
|
e357db77d7 | ||
|
c6fb0bf018 | ||
|
784bb5fed2 | ||
|
cf06014779 | ||
|
35320d3da6 | ||
|
011f6c2dc3 | ||
|
ff0587229e | ||
|
6098a56896 | ||
|
500be25220 | ||
|
9cb37cf004 | ||
|
13d2e5c977 | ||
|
7e21c5df46 | ||
|
b66ccd0769 | ||
|
b166a003ab | ||
|
210c1676c5 | ||
|
72b397318d | ||
|
b0cb18595c | ||
|
bf23caa20a | ||
|
2bdb73d7ec | ||
|
e95d1040a1 | ||
|
3ae7bf438a | ||
|
835a2a8f53 | ||
|
d7927bf735 | ||
|
72f081a91d |
86
.github/workflows/publishing.yml
vendored
Normal file
86
.github/workflows/publishing.yml
vendored
Normal file
|
@ -0,0 +1,86 @@
|
|||
name: Building and publishing
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
|
||||
build-sdist:
|
||||
name: Build source tarball
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.9
|
||||
- run: python setup.py sdist
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
path: ./dist/*
|
||||
|
||||
build-wheels:
|
||||
name: Build wheels
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.9
|
||||
- run: pip install cibuildwheel==1.8.0
|
||||
- name: Install Visual C++ for Python 2.7 on Windows
|
||||
if: runner.os == 'Windows'
|
||||
run: |
|
||||
choco install vcpython27 -f -y
|
||||
- run: cibuildwheel --output-dir wheelhouse
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
path: ./wheelhouse/*.whl
|
||||
|
||||
build-wheels-linux-custom-archs:
|
||||
name: Build wheels
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
arch: [aarch64]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.9
|
||||
- run: pip install cibuildwheel==1.8.0
|
||||
- run: cibuildwheel --archs ${{ matrix.archs }} --output-dir wheelhouse
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
path: ./wheelhouse/*.whl
|
||||
|
||||
upload-to-pypi:
|
||||
name: Publish on PyPI
|
||||
needs: [build-sdist, build-wheels, build-wheels-linux-custom-archs]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: artifact
|
||||
path: dist
|
||||
- uses: pypa/gh-action-pypi-publish@master
|
||||
with:
|
||||
user: __token__
|
||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||
repository_url: https://test.pypi.org/legacy/
|
||||
|
||||
# - services: docker
|
||||
# arch: arm64
|
||||
# if: tag IS present
|
||||
# env: TWINE_USERNAME=__token__
|
||||
# install: python3 -m pip install cibuildwheel==1.6.3
|
||||
# script: python3 -m cibuildwheel --output-dir wheelhouse
|
||||
# after_success:
|
||||
# - python3 -m pip install --upgrade --upgrade-strategy eager twine
|
||||
# - python3 -m twine upload wheelhouse/*.whl
|
59
.github/workflows/tests-and-linters.yml
vendored
Normal file
59
.github/workflows/tests-and-linters.yml
vendored
Normal file
|
@ -0,0 +1,59 @@
|
|||
name: Tests and linters
|
||||
|
||||
on: [push, pull_request, workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
|
||||
test-on-different-versions:
|
||||
name: Run tests
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, pypy2, pypy3]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- run: pip install tox
|
||||
- run: tox
|
||||
env:
|
||||
TOXENV: ${{ matrix.python-version }}
|
||||
|
||||
test-coverage:
|
||||
name: Run tests with coverage
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DEPENDENCY_INJECTOR_DEBUG_MODE: 1
|
||||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||
steps:
|
||||
- name: Get the current branch name
|
||||
shell: bash
|
||||
run: echo "::set-output name=branch::${GITHUB_REF#refs/heads/}"
|
||||
id: branch-name
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.9
|
||||
- run: pip install tox cython
|
||||
- run: make cythonize
|
||||
- run: tox
|
||||
env:
|
||||
TOXENV: coveralls
|
||||
COVERALLS_GIT_BRANCH: ${{ steps.branch-name.outputs.branch }}
|
||||
|
||||
linters:
|
||||
name: Run linters
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
toxenv: [flake8, pydocstyle, mypy, pylint]
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.9
|
||||
- run: pip install tox
|
||||
- run: tox
|
||||
env:
|
||||
TOXENV: ${{ matrix.toxenv }}
|
|
@ -1,6 +1,6 @@
|
|||
"""Top-level package."""
|
||||
|
||||
__version__ = '4.10.3-dev'
|
||||
__version__ = '4.10.3dev5'
|
||||
"""Version number.
|
||||
|
||||
:type: str
|
||||
|
|
12
tox.ini
12
tox.ini
|
@ -1,6 +1,6 @@
|
|||
[tox]
|
||||
envlist=
|
||||
coveralls, pylint, flake8, pydocstyle, py27, py34, py35, py36, py37, py38, pypy, pypy3
|
||||
coveralls, pylint, flake8, pydocstyle, 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, pypy2, pypy3
|
||||
|
||||
[testenv]
|
||||
deps=
|
||||
|
@ -17,7 +17,7 @@ commands=
|
|||
unit2 discover -s tests/unit -p test_*_py3*.py
|
||||
|
||||
[testenv:coveralls]
|
||||
passenv=TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH DEPENDENCY_INJECTOR_DEBUG_MODE
|
||||
passenv=COVERALLS_GIT_BRANCH COVERALLS_REPO_TOKEN
|
||||
basepython=python3.9
|
||||
usedevelop=True
|
||||
deps=
|
||||
|
@ -31,7 +31,7 @@ commands=
|
|||
coverage report --rcfile=./.coveragerc
|
||||
coveralls
|
||||
|
||||
[testenv:py27]
|
||||
[testenv:2.7]
|
||||
deps=
|
||||
unittest2
|
||||
extras=
|
||||
|
@ -40,7 +40,7 @@ extras=
|
|||
commands=
|
||||
unit2 discover -s tests/unit -p test_*_py2_py3.py
|
||||
|
||||
[testenv:py34]
|
||||
[testenv:3.4]
|
||||
deps=
|
||||
unittest2
|
||||
extras=
|
||||
|
@ -48,7 +48,7 @@ extras=
|
|||
commands=
|
||||
unit2 discover -s tests/unit -p test_*_py3.py
|
||||
|
||||
[testenv:py35]
|
||||
[testenv:3.5]
|
||||
deps=
|
||||
unittest2
|
||||
extras=
|
||||
|
@ -57,7 +57,7 @@ extras=
|
|||
commands=
|
||||
unit2 discover -s tests/unit -p test_*_py3.py
|
||||
|
||||
[testenv:pypy]
|
||||
[testenv:pypy2]
|
||||
deps=
|
||||
unittest2
|
||||
extras=
|
||||
|
|
Loading…
Reference in New Issue
Block a user