-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
187210a
commit 0bc2044
Showing
7 changed files
with
98 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,49 @@ | ||
language: python | ||
python: | ||
- "3.4" | ||
- "3.5" | ||
- "3.6" | ||
- "3.7-dev" | ||
|
||
matrix: | ||
include: | ||
# - python: 2.7 | ||
# env: TOXENV=py27 | ||
# - python: 2.7.6 | ||
# env: TOXENV=py27 | ||
# - python: 3.3 | ||
# env: TOXENV=py33 | ||
- python: 3.4 | ||
env: TOXENV=py34 | ||
- python: 3.5 | ||
env: TOXENV=py35 | ||
- python: 3.6 | ||
env: TOXENV=py36 | ||
before_install: | ||
- python --version | ||
- uname -a | ||
- lsb_release -a | ||
# install dependencies | ||
install: | ||
- pip install tox pylint coveralls | ||
- virtualenv --version | ||
- easy_install --version | ||
- pip --version | ||
- tox --version | ||
- pip install coveralls | ||
- pip install -e . | ||
|
||
# run tests | ||
script: | ||
- pip install . | ||
- pip install -U setuptools | ||
- tox $TOXENV | ||
- pytest | ||
|
||
cache: pip | ||
|
||
after_success: | ||
- coveralls | ||
after_failure: | ||
- more .tox/log/* | cat | ||
- more .tox/*/log/* | cat | ||
|
||
# | ||
#matrix: | ||
# include: | ||
# - python: 3.4 | ||
# env: TOXENV=py34 | ||
# - python: 3.5 | ||
# env: TOXENV=py35 | ||
# - python: 3.6 | ||
# env: TOXENV=py36 | ||
#before_install: | ||
# - python --version | ||
# - uname -a | ||
# - lsb_release -a | ||
#install: | ||
# - pip install tox pylint coveralls | ||
# - virtualenv --version | ||
# - easy_install --version | ||
# - pip --version | ||
# - tox --version | ||
#script: | ||
# - pip install . | ||
# - pip install -U setuptools | ||
# - tox $TOXENV | ||
#after_success: | ||
# - coveralls | ||
#after_failure: | ||
# - more .tox/log/* | cat | ||
# - more .tox/*/log/* | cat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
release: | ||
python setup.py sdist | ||
python setup.py bdist_wheel | ||
twine upload dist/* | ||
rm -rf build/ dist/ pylint_quotes.egg-info/ | ||
|
||
|
||
coverage: | ||
pytest --verbose --cov-report term --cov-report xml --cov=pylint_quotes tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# -*- coding: utf-8 -*- | ||
"""Pylint-quotes meta info.""" | ||
|
||
|
||
__title__ = 'pylint-quotes' | ||
__description__ = 'Quote consistency checker for PyLint..' | ||
__url__ = 'https://github.com/edaniszewski/pylint-quotes' | ||
__version__ = '0.1.9' | ||
__author__ = 'Erick Daniszewski' | ||
__author_email__ = 'edaniszewski@gmail.com' | ||
__license__ = 'MIT' | ||
__copyright__ = 'Copyright 2018 Erick Daniszewski' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
[bdist_wheel] | ||
universal=1 | ||
universal = 1 | ||
|
||
[metadata] | ||
license_file = LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,44 @@ | ||
"""Setup for the pylint-quotes package. | ||
""" | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
"""Setup for the pylint-quotes package.""" | ||
|
||
import os | ||
import re | ||
from setuptools import setup, find_packages | ||
|
||
here = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
def find_version(*file_paths): | ||
"""Return version defined in __init__.py without import pylint""" | ||
with open(os.path.join(*file_paths)) as fhandler: | ||
version_file = fhandler.read() | ||
version_match = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', | ||
version_file, re.M) | ||
if version_match: | ||
return version_match.group(1) | ||
raise RuntimeError('Unable to find version string.') | ||
about = {} | ||
with open(os.path.join(here, 'pylint_quotes', '__version__.py'), 'r') as f: | ||
exec(f.read(), about) | ||
|
||
|
||
setup( | ||
name='pylint-quotes', | ||
description='Quote consistency checker for Pylint', | ||
license='MIT', | ||
version=find_version("pylint_quotes", "__init__.py"), | ||
author='Erick Daniszewski', | ||
author_email='edaniszewski@gmail.com', | ||
url='https://github.com/edaniszewski/pylint-quotes', | ||
name=about['__title__'], | ||
description=about['__description__'], | ||
license=about['__license__'], | ||
version=about['__version__'], | ||
author=about['__author__'], | ||
author_email=about['__author_email__'], | ||
url=about['__url__'], | ||
install_requires=[ | ||
'pylint', | ||
'pylint>=1.7.6', | ||
], | ||
packages=find_packages(), | ||
classifiers=[ | ||
python_requires=">=3.4", | ||
packages=['pylint_quotes'], | ||
zip_safe=False, | ||
classifiers=( | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: MIT License', | ||
'Natural Language :: English', | ||
'License :: OSI Approved :: MIT License', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: Implementation :: CPython', | ||
'Programming Language :: Python :: Implementation :: PyPy', | ||
'Topic :: Software Development', | ||
'Topic :: Utilities' | ||
], | ||
keywords='pylint linting string quotes' | ||
), | ||
keywords='pylint linting string quotes', | ||
) |