Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.6.6
3.6.8
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ python:
- "3.6"
# command to install dependencies
install:
- pip install git+https://github.com/KeepSafe/html-structure-diff.git#egg=sdiff
- pip install -r requirements-dev.txt
- make dev
# command to run tests
script:
- flake8 validator tests
- nosetests
- make tests
23 changes: 15 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,27 @@ PYTHON=venv/bin/python3
PIP=venv/bin/pip
NOSE=venv/bin/nosetests
FLAKE=venv/bin/flake8
PYPICLOUD_HOST=pypicloud.getkeepsafe.local
PIP_ARGS=--extra-index=http://$(PYPICLOUD_HOST)/simple/ --trusted-host $(PYPICLOUD_HOST)
TWINE=./venv/bin/twine
FLAGS=

update:
$(PIP) install -U pip
$(PIP) install $(PIP_ARGS) -U .

env:
python3 -m venv venv
$(PIP) install -e git://github.com/KeepSafe/html-structure-diff.git#egg=sdiff
$(PYTHON) ./setup.py develop
test -d venv || python3 -m venv venv

dev:
$(PIP) install flake8 nose coverage
$(PYTHON) ./setup.py develop
dev: env update
$(PIP) install $(PIP_ARGS) .[tests,devtools]

install:
$(PYTHON) ./setup.py install
install: env update

publish:
rm -rf dist
$(PYTHON) -m build .
$(TWINE) upload --verbose --sign --username developer --repository-url http://$(PYPICLOUD_HOST)/simple/ dist/*.whl

flake:
$(FLAKE) validator tests
Expand Down
22 changes: 19 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,52 @@
from setuptools import setup, find_packages


version = '0.7.0'
version = '0.7.1'


def read(f):
return open(os.path.join(os.path.dirname(__file__), f)).read().strip()


install_requires = [
'sdiff @ git+ssh://git@github.com/KeepSafe/html-structure-diff.git#egg=sdiff',
'aiohttp >=3, <3.4',
'Markdown',
'parse >=1, <2',
'beautifulsoup4 >=4, <5',
'lxml >=3',
]

tests_require = [
'nose',
'flake8==3.6.0',
'coverage',
]

devtools_require = [
'twine',
'build',
]

setup(
name='content-validator',
version=version,
description=('Content validator looks at text content and preforms different validation tasks'),
long_description='\n\n'.join((read('README.md'), read('CHANGELOG'))),
classifiers=[
'License :: OSI Approved :: BSD License', 'Intended Audience :: Developers', 'Programming Language :: Python'
],
author='Keepsafe',
author_email='support@getkeepsafe.com',
url='https://github.com/KeepSafe/google-play-cmd/',
url='https://github.com/KeepSafe/content-validator/',
license='Apache',
packages=find_packages(exclude=['tests']),
package_data={},
namespace_packages=[],
install_requires=install_requires,
tests_require=tests_require,
extras_require={
'tests': tests_require,
'devtools': devtools_require,
},
entry_points={'console_scripts': ['content-validator = validator:main']},
include_package_data=False)