Skip to content

Commit

Permalink
Merge pull request #4 from Parquery/mristin/Added-support-for-Python-…
Browse files Browse the repository at this point in the history
…3.7-and-3.8

Added support for Python 3.7 and 3.8
  • Loading branch information
mristin authored Oct 13, 2020
2 parents a3da73f + 02c234a commit b1cba61
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 22 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -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
23 changes: 12 additions & 11 deletions precommit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion pylddwrap_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__ = '[email protected], [email protected], [email protected]'
__license__ = 'MIT'
Expand Down
2 changes: 1 addition & 1 deletion pylint.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 7 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,26 @@
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']),
install_requires=install_requires,
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',
Expand Down

0 comments on commit b1cba61

Please sign in to comment.