File tree Expand file tree Collapse file tree 9 files changed +97
-22
lines changed Expand file tree Collapse file tree 9 files changed +97
-22
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ if [ $TRAVIS_PYTHON_VERSION == 3.6 ]; then
15
15
conda config --set always_yes yes --set changeps1 no
16
16
conda update -q conda
17
17
conda install conda-build
18
- conda install anaconda-client
19
18
conda info -a
20
19
21
20
conda config --add channels domdfcoding || exit 1
@@ -24,22 +23,6 @@ if [ $TRAVIS_PYTHON_VERSION == 3.6 ]; then
24
23
25
24
conda build conda --output-folder conda/dist
26
25
27
- for f in conda/dist/noarch/domdf_python_tools-* .tar.bz2; do
28
- echo " $f "
29
- conda install $f || exit 1
30
- if [ -z " $TRAVIS_TAG " ]; then
31
- echo " Skipping deploy because this is not a tagged commit"
32
- else
33
- if [ $TRAVIS_PYTHON_VERSION == 3.6 ]; then
34
- echo " Deploying to Anaconda.org..."
35
- anaconda -t $ANACONDA_TOKEN upload $f || exit 1
36
- echo " Successfully deployed to Anaconda.org."
37
- else
38
- echo " Skipping deploy because this is not the required runtime"
39
- fi
40
- fi
41
- done
42
-
43
26
else
44
27
echo " Skipping building conda package because this is not the required runtime"
45
28
fi
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # This file is managed by `git_helper`. Don't edit it directly
3
+
4
+ set -e -x
5
+
6
+ if [ $TRAVIS_PYTHON_VERSION == 3.6 ]; then
7
+
8
+ # Switch to miniconda
9
+ source " $HOME /miniconda/etc/profile.d/conda.sh"
10
+ hash -r
11
+ conda activate base
12
+ conda config --set always_yes yes --set changeps1 no
13
+ conda install anaconda-client
14
+ conda info -a
15
+
16
+ for f in conda/dist/noarch/domdf_python_tools-* .tar.bz2; do
17
+ echo " $f "
18
+ conda install $f || exit 1
19
+ if [ -z " $TRAVIS_TAG " ]; then
20
+ echo " Skipping deploy because this is not a tagged commit"
21
+ else
22
+ echo " Deploying to Anaconda.org..."
23
+ anaconda -t $ANACONDA_TOKEN upload $f || exit 1
24
+ echo " Successfully deployed to Anaconda.org."
25
+ fi
26
+ done
27
+
28
+ else
29
+ echo " Skipping deploying conda package because this is not the required runtime"
30
+ fi
31
+
32
+ exit 0
Original file line number Diff line number Diff line change @@ -21,4 +21,4 @@ python:
21
21
install :
22
22
- requirements : requirements.txt
23
23
- requirements : doc-source/requirements.txt
24
-
24
+
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ script:
20
20
- tox
21
21
after_success :
22
22
- coveralls
23
+
24
+ before_deploy :
25
+ - .ci/travis_build_conda.sh || travis_terminate 1;
23
26
deploy :
24
27
provider : pypi
25
28
user : " DomDF"
@@ -31,4 +34,4 @@ deploy:
31
34
distributions : " sdist bdist_wheel"
32
35
skip_existing : true
33
36
after_deploy :
34
- - .ci/travis_build_conda .sh || travis_terminate 1;
37
+ - .ci/travis_deploy_conda .sh || travis_terminate 1;
Original file line number Diff line number Diff line change 25
25
VERSION = "0.3.1"
26
26
27
27
modname = "domdf_python_tools"
28
- py_modules = None
28
+ py_modules = []
29
29
entry_points = None
30
30
31
31
license = 'LGPLv3+'
51
51
52
52
Before installing please ensure you have added the "conda-forge" channel. """
53
53
install_requires = (repo_root / "requirements.txt" ).read_text ().split ('\n ' )
54
- extras_require = {'dates' : ['pytz>=2019.1' ]}
54
+ extras_require = {'dates' : ['pytz>=2019.1' ], 'all' : [ 'pytz>=2019.1' ] }
55
55
56
56
classifiers = [
57
57
'Development Status :: 4 - Beta' ,
68
68
'Topic :: Software Development :: Libraries :: Python Modules' ,
69
69
70
70
]
71
+
72
+ keywords = ""
Original file line number Diff line number Diff line change
1
+ # fix these
2
+ declare -a errors=(
3
+ E301 E302 E303 E304 E305 E306 E502 E265
4
+ W291 W292 W293 W391 E226 E225
5
+ )
6
+
7
+ # Only warn for these
8
+ declare -a warnings=(
9
+ E101 E111 E112 E113 E121 E122 E123 E124 E125
10
+ E127 E128 E129 E131 E133 E201 E202 E203
11
+ E211 E222 E223 E224 E225 E227 E228 E231
12
+ E241 E242 E251 E261 E262 E271 E272 E402
13
+ E703 E711 E712 E713 E714 E721 E722 W503 W504
14
+ )
15
+
16
+ if [ -z " $( git status --porcelain --untracked-files=no) " ] || [ $1 == " -f" ]; then
17
+ # Working directory clean
18
+
19
+ for error in " ${errors[@]} "
20
+ do
21
+ echo " Correcting $error "
22
+ autopep8 --in-place --select " $error " -a --recursive domdf_python_tools/
23
+ flake8 --select " $error " domdf_python_tools/
24
+ autopep8 --in-place --select " $error " -a --recursive tests/
25
+ flake8 --select " $error " tests/
26
+
27
+ done
28
+
29
+ for warning in " ${warnings[@]} " ; do
30
+ echo " Searching for $warning "
31
+ flake8 --select " $warning " domdf_python_tools/
32
+ flake8 --select " $warning " tests/
33
+ done
34
+
35
+ exit 0
36
+
37
+ else
38
+ # Uncommitted changes
39
+ >&2 echo " git working directory is not clean"
40
+ exit 1
41
+
42
+ fi
43
+
44
+
45
+
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/python3
2
2
3
+ # This file is managed by `git_helper`. Don't edit it directly
4
+
3
5
import platform
4
6
import rst2txt
5
7
import sys
Original file line number Diff line number Diff line change 18
18
license = license ,
19
19
long_description = long_description ,
20
20
name = modname ,
21
- packages = find_packages (exclude = ("tests" ,)),
21
+ packages = find_packages (exclude = ("tests" , "doc-source" )),
22
22
project_urls = project_urls ,
23
23
py_modules = py_modules ,
24
24
python_requires = ">=3.6" ,
25
25
url = web ,
26
26
version = VERSION ,
27
+ keywords = keywords ,
27
28
28
29
)
Original file line number Diff line number Diff line change @@ -20,6 +20,13 @@ build-backend = "setuptools"
20
20
description = pytest
21
21
# Install test requirements
22
22
deps = -r{toxinidir}/tests/requirements.txt
23
+ pytest >= 5.1.1
24
+ pytest-cov >= 2.8.1
25
+ pytz >= 2019.1
26
+ coverage>=5.1
27
+ pytest-randomly
28
+
29
+
23
30
24
31
commands =
25
32
python --version
You can’t perform that action at this time.
0 commit comments