Skip to content

Commit cef4c20

Browse files
committed
[tests] Initial tox support
1 parent bef4aa5 commit cef4c20

8 files changed

+35
-4
lines changed

pyproject.toml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[build-system]
2+
requires = [
3+
"setuptools >= 40.6.2",
4+
"wheel >= 0.30.0",
5+
]
6+
build-backend = "setuptools.build_meta"

requirements-dev.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
-r requirements.txt
2-
pytest==5.4.3
3-
pytest-lazy-fixture==0.6.3
1+
-r requirements-test.txt
2+
tox==3.24.4
3+

requirements-test.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-r requirements.txt
2+
pytest==5.4.3
3+
pytest-lazy-fixture==0.6.3

requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
click==7.1.2
22
construct==2.9.44
33
lark==0.11.3
4-
multiprocessing-logging==0.3.1
4+
# multiprocessing-logging==0.3.1
5+
https://github.com/jruere/multiprocessing-logging/archive/refs/tags/v0.3.1.tar.gz
56
zstandard==0.15.1 --install-option="--legacy"

setup.py

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from setuptools import setup, find_packages
2+
3+
setup(
4+
name='blk',
5+
author='kotiq',
6+
author_email='[email protected]',
7+
url='https://github.com/kotiq/blk',
8+
package_dir={'': 'src'},
9+
packages=find_packages(where='src'),
10+
python_requires='>=3.7',
11+
)

tox.ini

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[tox]
2+
minversion = 3.7.12
3+
envlist =
4+
py37,
5+
pypy3,
6+
isolated_build = true
7+
8+
[testenv]
9+
deps = -rrequirements-test.txt
10+
commands = pytest {posargs}

0 commit comments

Comments
 (0)