Skip to content

Commit 2587f69

Browse files
committed
Updated files with git_helper.
1 parent ce070e6 commit 2587f69

File tree

9 files changed

+43
-26
lines changed

9 files changed

+43
-26
lines changed

.ci/copy_pypi_2_github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# stdlib
22
import json
3+
import os
34
import pathlib
45
import sys
56
import tempfile
67
import urllib.parse
7-
import os
88

99
# 3rd party
1010
import github

.isort.cfg

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,24 @@ use_parentheses=True
1313
default_section=LOCALFOLDER
1414
;no_lines_before=LOCALFOLDER
1515
known_third_party=
16-
sphinx-notfound-page
17-
sphinx-prompt
18-
sphinx_autodoc_typehints
16+
aenum
17+
coverage
18+
extras_require
1919
pydash
20-
pytz
21-
sphinxemoji
2220
pytest
23-
sphinx-autodoc-typehints
2421
pytest-cov
25-
pytest-rerunfailures
26-
sphinx_rtd_theme
2722
pytest-randomly
28-
aenum
23+
pytest-rerunfailures
24+
pytz
2925
sphinx
30-
coverage
31-
extras_require
26+
sphinx-autodoc-typehints
27+
sphinx-notfound-page
28+
sphinx-prompt
3229
sphinx-tabs
30+
sphinx_autodoc_typehints
31+
sphinx_rtd_theme
3332
sphinxcontrib-httpdomain
33+
sphinxemoji
3434
wx
3535
PIL
3636
known_first_party=

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ include __pkginfo__.py
22
include LICENSE
33
include requirements.txt
44
recursive-exclude **/__pycache__ *
5+
recursive-include domdf_python_tools/ *.pyi
6+
recursive-include domdf_python_tools/ py.typed

__pkginfo__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# This script based on https://github.com/rocky/python-uncompyle6/blob/master/__pkginfo__.py
1212
#
1313

14+
# stdlib
1415
import pathlib
1516

1617
__all__ = [

doc-source/conf.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,21 @@
33

44
# This file is managed by `git_helper`. Don't edit it directly
55

6+
# stdlib
67
import os
78
import re
89
import sys
10+
import warnings
11+
from sphinx.locale import _
12+
13+
# Suppress warnings from sphinx_autodoc_typehints
14+
# TODO: Remove once the following issues is resolved:
15+
# https://github.com/agronholm/sphinx-autodoc-typehints/issues/133
16+
warnings.filterwarnings('ignore', message='sphinx.util.inspect.Signature\(\) is deprecated')
917

1018
sys.path.append(os.path.abspath('.'))
1119
sys.path.append(os.path.abspath('..'))
1220

13-
from sphinx.locale import _
14-
1521
from __pkginfo__ import __version__
1622

1723

doc-source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ domdf_python_tools
7777
.. |language| image:: https://img.shields.io/github/languages/top/domdfcoding/domdf_python_tools
7878
:alt: GitHub top language
7979

80-
.. |commits-since| image:: https://img.shields.io/github/commits-since/domdfcoding/domdf_python_tools/v0.3.3
80+
.. |commits-since| image:: https://img.shields.io/github/commits-since/domdfcoding/domdf_python_tools/v0.3.4
8181
:target: https://github.com/domdfcoding/domdf_python_tools/pulse
8282
:alt: GitHub commits since tagged version
8383

make_conda_recipe.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
# This file is managed by `git_helper`. Don't edit it directly
44

5-
import platform
6-
import rst2txt
5+
# stdlib
76
import sys
8-
from docutils.core import publish_file
7+
import platform
98
from io import StringIO
109

10+
import rst2txt
1111
from __pkginfo__ import * # pylint: disable=wildcard-import
12+
from docutils.core import publish_file
1213

1314
recipe_dir = repo_root / "conda"
1415

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
# This file is managed by `git_helper`. Don't edit it directly
33
"""Setup script"""
44

5-
from __pkginfo__ import * # pylint: disable=wildcard-import
5+
# 3rd party
6+
from setuptools import find_packages, setup
67

7-
from setuptools import setup, find_packages
8+
from __pkginfo__ import * # pylint: disable=wildcard-import
89

910
setup(
1011
author=author,
@@ -25,5 +26,6 @@
2526
url=web,
2627
version=__version__,
2728
keywords=keywords,
29+
zip_safe=False,
2830

2931
)

tox.ini

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
# This file must be in the same dir as setup.py
44
[tox]
5-
envlist = py36, py37, py38, pypy3, docs
5+
envlist = py36, py37, py38, pypy3, docs, mypy
66
skip_missing_interpreters = True
77
requires = pip >= 19.0.0
88

99

1010
[travis]
1111
python =
12-
3.6: py36, docs
12+
3.6: py36, docs, mypy
1313
3.7: py37
1414
3.8: py38
1515
pypy3: pypy3
@@ -52,11 +52,12 @@ skip_install = true
5252
changedir = {toxinidir}
5353
deps = setuptools >= 46.1.3
5454
wheel >= 0.34.2
55-
commands = python setup.py sdist bdist_wheel
55+
commands = python setup.py {posargs} sdist bdist_wheel
5656

5757

5858
[testenv:lint]
5959
basepython = python3.6
60+
changedir={toxinidir}
6061
ignore_errors=true
6162
skip_install = true
6263
deps =
@@ -66,7 +67,8 @@ commands = flake8 domdf_python_tools tests
6667

6768

6869
[testenv:yapf]
69-
basepython = python3.6
70+
basepython = python3.7
71+
changedir={toxinidir}
7072
skip_install = true
7173
ignore_errors=true
7274
deps = yapf
@@ -77,16 +79,19 @@ commands = yapf -i --recursive domdf_python_tools tests
7779
basepython = python3.6
7880
skip_install = true
7981
ignore_errors=true
82+
changedir={toxinidir}
8083
deps =
8184
isort
8285
commands = isort --recursive domdf_python_tools tests
8386

8487

8588
[testenv:mypy]
8689
basepython = python3.6
87-
skip_install = true
90+
8891
ignore_errors=true
89-
deps = mypy
92+
changedir={toxinidir}
93+
deps =
94+
mypy
9095
commands = mypy domdf_python_tools tests
9196

9297

0 commit comments

Comments
 (0)