diff --git a/.travis.yml b/.travis.yml index 38d8e1a..32624d8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,9 +2,8 @@ language: python python: - "3.5" - "3.6" -addons: - apt: - packages: + - "3.7" + - "3.8" install: - pip3 install -e .[dev] - pip3 install coveralls diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 2a93042..808dd4f 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,8 +1,11 @@ +1.0.2 +===== +* Added support for Python 3.7 and 3.8 + 1.0.1 ===== * Fixed license badge in the Readme 1.0.0 ===== - * Initial version diff --git a/precommit.py b/precommit.py index 0838b1a..fc60212 100755 --- a/precommit.py +++ b/precommit.py @@ -30,35 +30,35 @@ def main() -> int: subprocess.check_call([ "yapf", "--in-place", "--style=style.yapf", "--recursive", "tests", "lddwrap", "setup.py", "precommit.py", "bin/pylddwrap" - ], cwd=repo_root.as_posix()) + ], cwd=str(repo_root)) else: subprocess.check_call([ "yapf", "--diff", "--style=style.yapf", "--recursive", "tests", "lddwrap", "setup.py", "precommit.py", "bin/pylddwrap" - ], cwd=repo_root.as_posix()) + ], cwd=str(repo_root)) print("Mypy'ing...") subprocess.check_call(["mypy", "lddwrap", "tests", "bin/pylddwrap"], - cwd=repo_root.as_posix()) + cwd=str(repo_root)) print("Isort'ing...") if overwrite: subprocess.check_call([ "isort", "--recursive", "tests", "lddwrap", - "bin/pylddwrap"], cwd=repo_root.as_posix()) + "bin/pylddwrap"], cwd=str(repo_root)) else: subprocess.check_call([ "isort", "--check-only", "--recursive", "tests", "lddwrap", - "bin/pylddwrap"], cwd=repo_root.as_posix()) + "bin/pylddwrap"], cwd=str(repo_root)) print("Pylint'ing...") subprocess.check_call( ["pylint", "--rcfile=pylint.rc", "tests", "lddwrap", "bin/pylddwrap"], - cwd=repo_root.as_posix()) + cwd=str(repo_root)) print("Pydocstyle'ing...") subprocess.check_call(["pydocstyle", "lddwrap", "bin/pylddwrap"], - cwd=repo_root.as_posix()) + cwd=str(repo_root)) print("Testing...") env = os.environ.copy() @@ -67,20 +67,21 @@ def main() -> int: subprocess.check_call([ "coverage", "run", "--source", "lddwrap", "-m", "unittest", "discover", "tests" - ], cwd=repo_root.as_posix()) + ], cwd=str(repo_root)) subprocess.check_call(["coverage", "report"]) # yapf: enable print("Doctesting...") subprocess.check_call( - ["python3", "-m", "doctest", (repo_root / "README.rst").as_posix()]) + [sys.executable, "-m", "doctest", + str(repo_root / "README.rst")]) for pth in (repo_root / "lddwrap").glob("**/*.py"): - subprocess.check_call(["python3", "-m", "doctest", pth.as_posix()]) + subprocess.check_call([sys.executable, "-m", "doctest", str(pth)]) print("pyicontract-lint'ing...") for pth in (repo_root / "lddwrap").glob("**/*.py"): - subprocess.check_call(["pyicontract-lint", pth.as_posix()]) + subprocess.check_call(["pyicontract-lint", str(pth)]) print("Checking the restructured text of the readme...") subprocess.check_call( diff --git a/pylddwrap_meta.py b/pylddwrap_meta.py index f1eebdb..170a7dc 100644 --- a/pylddwrap_meta.py +++ b/pylddwrap_meta.py @@ -4,7 +4,7 @@ __title__ = 'pylddwrap' __description__ = 'Wrap ldd *nix utility to determine shared libraries required by a program.' __url__ = 'http://github.com/Parquery/lddwrap' -__version__ = '1.0.1' +__version__ = '1.0.2' # don't forget to update the changelog! __author__ = 'Selim Naji, Adam Radomski and Marko Ristin' __author_email__ = 'selim.naji@parquery.com, adam.radomski@parquery.com, marko.ristin@gmail.com' __license__ = 'MIT' diff --git a/pylint.rc b/pylint.rc index 294b04e..e387d06 100644 --- a/pylint.rc +++ b/pylint.rc @@ -7,4 +7,4 @@ generated-members=bottle\.request\.forms\.decode,bottle\.request\.query\.decode max-line-length=80 [MESSAGES CONTROL] -disable=too-few-public-methods,abstract-class-little-used,len-as-condition,bad-continuation,bad-whitespace +disable=too-few-public-methods,abstract-class-little-used,len-as-condition,bad-continuation,bad-whitespace,no-else-return diff --git a/setup.py b/setup.py index 230ab71..4c58205 100644 --- a/setup.py +++ b/setup.py @@ -30,15 +30,17 @@ url=pylddwrap_meta.__url__, author=pylddwrap_meta.__author__, author_email=pylddwrap_meta.__author_email__, + # yapf: disable classifiers=[ - # yapf: disable 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6' - # yapf: enable + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8' ], + # yapf: enable license='License :: OSI Approved :: MIT License', keywords='ldd dependency dependencies lddwrap pylddwrap', packages=find_packages(exclude=['tests']), @@ -46,8 +48,8 @@ extras_require={ 'dev': [ # yapf: disable - 'mypy==0.641', - 'pylint==2.1.1', + 'mypy==0.790', + 'pylint==2.6.0', 'yapf==0.24.0', 'tox>=3.0.0', 'coverage>=4.5.1,<5',