mirror of
https://github.com/gryf/slack-backup.git
synced 2025-12-17 03:20:25 +01:00
Added tox configuration
This commit is contained in:
33
setup.py
33
setup.py
@@ -0,0 +1,33 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
"""
|
||||||
|
Setup for the slack-backup project
|
||||||
|
"""
|
||||||
|
from distutils.core import setup
|
||||||
|
|
||||||
|
|
||||||
|
setup(name="slack-backup",
|
||||||
|
packages=["slack_backup"],
|
||||||
|
version="0.0",
|
||||||
|
description="Make copy of slack converstaions",
|
||||||
|
author="Roman Dobosz",
|
||||||
|
author_email="gryf73@gmail.com",
|
||||||
|
url="https://github.com/gryf/slack-backup",
|
||||||
|
download_url="https://github.com/gryf/slack-backup",
|
||||||
|
keywords=["chat", "backup", "history", "slack"],
|
||||||
|
requires=["sqlalchemy", "slackclient"],
|
||||||
|
scripts=["scripts/slack-backup"],
|
||||||
|
classifiers=["Programming Language :: Python :: 3",
|
||||||
|
"Programming Language :: Python :: 3.4",
|
||||||
|
"Development Status :: 2 - Pre-Alpha",
|
||||||
|
"Environment :: Console",
|
||||||
|
"Intended Audience :: End Users/Desktop",
|
||||||
|
"License :: OSI Approved :: BSD License",
|
||||||
|
"Operating System :: OS Independent",
|
||||||
|
"Topic :: Internet :: WWW/HTTP",
|
||||||
|
"Topic :: Database :: Front-Ends",
|
||||||
|
"Topic :: Communications :: Chat",
|
||||||
|
"Topic :: Text Processing :: Markup",
|
||||||
|
"Topic :: Text Processing :: Markup :: HTML"],
|
||||||
|
long_description=open("README.rst").read(),
|
||||||
|
options={'test': {'verbose': False,
|
||||||
|
'coverage': False}})
|
||||||
|
|||||||
5
test-requirements.txt
Normal file
5
test-requirements.txt
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
pytest
|
||||||
|
pytest-cov
|
||||||
|
pytest-pep8
|
||||||
|
coverage
|
||||||
|
flake8
|
||||||
28
tox.ini
Normal file
28
tox.ini
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
[tox]
|
||||||
|
envlist = cleanup,py27,py34,{py27,py34}-flake8
|
||||||
|
|
||||||
|
usedevelop = True
|
||||||
|
|
||||||
|
[testenv]
|
||||||
|
basepython = python3.4
|
||||||
|
usedevelop=True
|
||||||
|
setenv = COVERAGE_FILE = .coverage
|
||||||
|
commands = py.test --cov=slack_backup --cov-report=term-missing
|
||||||
|
deps = -r{toxinidir}/requirements.txt
|
||||||
|
-r{toxinidir}/test-requirements.txt
|
||||||
|
|
||||||
|
[testenv:py27-flake8]
|
||||||
|
basepython = python2.7
|
||||||
|
deps = flake8
|
||||||
|
commands = flake8 {posargs}
|
||||||
|
|
||||||
|
[testenv:py34-flake8]
|
||||||
|
basepython = python3.4
|
||||||
|
deps = flake8
|
||||||
|
commands = flake8 {posargs}
|
||||||
|
|
||||||
|
[testenv:cleanup]
|
||||||
|
setenv =
|
||||||
|
COVERAGE_FILE = .coverage
|
||||||
|
deps = coverage
|
||||||
|
commands = coverage erase
|
||||||
Reference in New Issue
Block a user