update tox, fix setup.py

This commit is contained in:
Jack Robison 2022-03-28 11:05:36 -04:00
parent e6f00fd578
commit d66c066ff1
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2
2 changed files with 6 additions and 10 deletions

View file

@ -73,7 +73,7 @@ else:
setup( setup(
name="lbry-rocksdb", name="lbry-rocksdb",
version=version, version=version,
keywords=['rocksdb', 'static', 'build'], keywords=['rocksdb', 'lbry-rocksdb', 'python-rocksdb', 'leveldb', 'embedded', 'database'],
description="Python bindings for RocksDB", description="Python bindings for RocksDB",
long_description=open("README.md").read(), long_description=open("README.md").read(),
long_description_content_type='text/markdown', long_description_content_type='text/markdown',
@ -83,7 +83,7 @@ setup(
license='BSD License', license='BSD License',
python_requires=">=3.7.0", python_requires=">=3.7.0",
package_dir={'rocksdb': 'rocksdb'}, package_dir={'rocksdb': 'rocksdb'},
packages=find_packages('.'), packages=find_packages(exclude=('tests',)),
ext_modules=cythonize([Extension( ext_modules=cythonize([Extension(
'rocksdb._rocksdb', 'rocksdb._rocksdb',
SOURCES, SOURCES,

12
tox.ini
View file

@ -2,18 +2,14 @@
envlist = py37,py38,py39 envlist = py37,py38,py39
minversion = 3.7 minversion = 3.7
skipsdist = True skipsdist = True
skip_missing_interpreters = true
[testenv] [testenv]
skip_install = True skip_install = True
deps = deps = -e .
-e commands = python -m unittest discover . -v
.[test] norecursedirs = .tox
commands = pytest {posargs:rocksdb/tests}
[testenv:docs] [testenv:docs]
deps = .[doc] deps = .[doc]
commands = python setup.py build_sphinx -W commands = python setup.py build_sphinx -W
[pytest]
addopts = --verbose
norecursedirs = .tox