Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
edaniszewski committed Mar 2, 2018
1 parent 187210a commit 0bc2044
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 58 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache

# Translations
*.mo
Expand Down Expand Up @@ -102,6 +103,3 @@ ENV/

# PyCharm
.idea

# Make
Makefile
72 changes: 43 additions & 29 deletions .travis.yml
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
9 changes: 9 additions & 0 deletions Makefile
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[![Build Status](https://travis-ci.org/edaniszewski/pylint-quotes.svg?branch=master)](https://travis-ci.org/edaniszewski/pylint-quotes)
[![Coverage Status](https://coveralls.io/repos/github/edaniszewski/pylint-quotes/badge.svg?branch=master)](https://coveralls.io/github/edaniszewski/pylint-quotes?branch=master)
[![Latest Version](https://img.shields.io/pypi/v/pylint-quotes.svg)](https://pypi.python.org/pypi/pylint-quotes)
[![License](https://img.shields.io/github/license/edaniszewski/pylint-quotes.svg)](LICENSE)

A Pylint plugin for checking the consistency of string quotes.

Expand Down
12 changes: 12 additions & 0 deletions pylint_quotes/__version__.py
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'
5 changes: 4 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[bdist_wheel]
universal=1
universal = 1

[metadata]
license_file = LICENSE
53 changes: 28 additions & 25 deletions setup.py
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',
)

0 comments on commit 0bc2044

Please sign in to comment.