Skip to content

Commit 947be70

Browse files
committed
Cleanup build garbage just after package building
1 parent ecd668f commit 947be70

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ _python:
2121

2222
_helpers:
2323
- &install_cython pip install --upgrade Cython
24-
- &build_package python setup.py bdist_wheel
24+
- &build_package python setup.py bdist_wheel clean
2525
- &install_built pip install advanced_descriptors --no-index -f dist
2626
- &test_no_cov py.test -vvv test
2727
- &test_cythonized
@@ -84,7 +84,7 @@ jobs:
8484
- *install_deps
8585
- pip install --upgrade "pylint >= 2.3" isort[pyproject,requirements]
8686
script:
87-
- python setup.py --version
87+
- python setup.py --version clean
8888
- pylint advanced_descriptors
8989
- <<: *static_analysis
9090
name: "Bandit"
@@ -100,7 +100,7 @@ jobs:
100100
- *install_deps
101101
- pip install --upgrade "mypy >= 0.720"
102102
script:
103-
- python setup.py --version
103+
- python setup.py --version clean
104104
- mypy --strict advanced_descriptors
105105
- <<: *static_analysis
106106
name: "PEP8"

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
displayName: 'Install dependencies'
4848
4949
- script: |
50-
python setup.py --version
50+
python setup.py --version clean
5151
displayName: 'Generate version file'
5252
5353
- script: |
@@ -78,7 +78,7 @@ jobs:
7878
displayName: 'Install dependencies'
7979
8080
- script: |
81-
python setup.py --version
81+
python setup.py --version clean
8282
displayName: 'Generate version file'
8383
8484
- script: |

tools/build-wheels.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ for PYTHON in ${PYTHON_VERSIONS}; do
2929
/opt/python/"${PYTHON}"/bin/pip install -r /io/build_requirements.txt
3030
/opt/python/"${PYTHON}"/bin/pip wheel /io/ -w /io/dist/
3131
cd /io
32-
/opt/python/"${PYTHON}"/bin/python setup.py bdist_wheel
33-
/opt/python/"${PYTHON}"/bin/python setup.py clean
32+
/opt/python/"${PYTHON}"/bin/python setup.py bdist_wheel clean
33+
3434
done
3535

3636
echo

tox.ini

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,25 @@ commands =
3232

3333
[testenv:py36-nocov]
3434
commands =
35-
python setup.py bdist_wheel
35+
python setup.py bdist_wheel clean
3636
pip install advanced_descriptors --no-index -f dist
3737
py.test {posargs:test}
3838

3939
[testenv:py37-nocov]
4040
commands =
41-
python setup.py bdist_wheel
41+
python setup.py bdist_wheel clean
4242
pip install advanced_descriptors --no-index -f dist
4343
py.test {posargs:test}
4444

4545
[testenv:py38-nocov]
4646
commands =
47-
python setup.py bdist_wheel
47+
python setup.py bdist_wheel clean
4848
pip install advanced_descriptors --no-index -f dist
4949
py.test {posargs:test}
5050

5151
[testenv:py39-nocov]
5252
commands =
53-
python setup.py bdist_wheel
53+
python setup.py bdist_wheel clean
5454
pip install advanced_descriptors --no-index -f dist
5555
py.test {posargs:test}
5656

@@ -84,18 +84,18 @@ deps =
8484
isort[pyproject,requirements]
8585
-r{toxinidir}/CI_REQUIREMENTS.txt
8686
commands =
87-
python setup.py --version
87+
python setup.py --version clean
8888
pylint advanced_descriptors
8989

9090
[testenv:docs]
9191
deps =
9292
sphinx
93-
commands = python setup.py build_sphinx
93+
commands = python setup.py build_sphinx clean
9494

9595
[testenv:readme]
9696
deps =
9797
readme-renderer
98-
commands = python setup.py check -r -s
98+
commands = python setup.py check -r -s clean
9999

100100
[testenv:bandit]
101101
deps = bandit
@@ -120,7 +120,7 @@ deps =
120120
lxml
121121
-r{toxinidir}/CI_REQUIREMENTS.txt
122122
commands =
123-
python setup.py --version
123+
python setup.py --version clean
124124
mypy --strict --xslt-html-report mypy_report -p advanced_descriptors
125125

126126
[testenv:isort]

0 commit comments

Comments
 (0)