diff --git a/README.rst b/README.rst index b2a51e6a2d98582e260c52ba030741e3d693d49f..1d409a8fb3a81ef7d993688ee26333e51bf492db 100644 --- a/README.rst +++ b/README.rst @@ -1,11 +1,10 @@ python-rocksdb ============== -pyrocksdb -========= - Python bindings for RocksDB. -See http://python-rocksdb.readthedocs.io/en/latest/ for a more comprehensive install and usage description. + +See https://rocksdb-tina.readthedocs.io/ for a more comprehensive install and +usage description. Quick install @@ -31,8 +30,11 @@ Quick usage guide Acknowledgements ---------------- -This project is a fork of `python-rocksdb`_ maintained by `twmht`_, which itself is a fork -of `pyrocksdb`_, that was originally written by `stephan-hof`_. +This project attempts to collect the efforts put into different forks of the +`pyrocksdb`_ project that was originally written by `stephan-hof`_, as sadly +none seems to be actively maintained. In particular, the `python-rocksdb`_ fork +created by `twmht`_, but it also incorporates changes from other forks and +unfinished pull requests. .. _python-rocksdb: https://github.com/twmht/python-rocksdb .. _twmht: https://github.com/twmht diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000000000000000000000000000000000000..9787c3bdf008a57ae3cb2e27a8261eb3f134ff73 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg index ae57c2351f533d25cb148b064f83ea31c499bcf4..941785c9bd82b38952e79f1f3c27911c0feb6fb7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,50 @@ +[metadata] +name = rocksdb +version = 0.8.0rc3 +description = Python bindings for RocksDB +long_description = file: README.rst +long_description_content_type = text/x-rst +author = Martina Ferrari +author_email = tina@tina.pm +url = https://github.com/NightTsarina/python-rocksdb +project_urls = + Bug Reports = https://github.com/NightTsarina/python-rocksdb/issues + Repository = https://github.com/NightTsarina/python-rocksdb +license = BSD 3-Clause License +license_file = LICENSE +keywords = rocksdb bindings +classifiers = + Development Status :: 3 - Alpha + Intended Audience :: Developers + License :: OSI Approved :: BSD License + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.9 + Topic :: Database + +[options] +packages = find: +package_dir = + rocksdb = rocksdb +include_package_data = True +zip_safe = False +setup_requires = + cython >= 0.20 + setuptools >= 25 +install_requires = + setuptools >= 25 +test_require = + pytest + +[options.packages.find] +where = . + +[options.extras_require] +doc = + sphinx + sphinx_rtd_theme + [build_sphinx] source-dir = docs build-dir = docs/_build @@ -5,6 +52,3 @@ all_files = 1 [upload_sphinx] upload-dir = docs/_build/html - -[aliases] -test=pytest diff --git a/setup.py b/setup.py index db9e0a7d817b2373ce349712fbad96fb02613d71..239230572951fb365839336656163513d0bea586 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,8 @@ -import platform, sys +#!/usr/bin/env python3 + +import platform import setuptools +import sys extra_compile_args = [ @@ -12,34 +15,13 @@ extra_compile_args = [ '-fno-rtti', ] - if platform.system() == 'Darwin': extra_compile_args += ['-mmacosx-version-min=10.7', '-stdlib=libc++'] if sys.version_info < (3 , 0): - raise Exception("pyRocksDB require Python 3.x") - -def _get_long_description(): - with open('README.rst') as readme_file: - return readme_file.read() - + raise Exception("python-rocksdb requires Python 3.x") setuptools.setup( - name='rocksdb', - version='0.8.0rc2', - description='Python bindings for RocksDB', - long_description=_get_long_description(), - long_description_content_type='text/x-rst', - author='Andrey Martyanov', - author_email='andrey@martyanov.com', - url='https://github.com/martyanov/python-rocksdb', - license='BSD License', - license_file='LICENSE', - packages=setuptools.find_packages('.'), - package_dir={ - 'rocksdb': 'rocksdb', - }, - include_package_data=True, ext_modules=[ setuptools.Extension( 'rocksdb._rocksdb', @@ -57,36 +39,4 @@ setuptools.setup( ], ), ], - setup_requires=[ - 'cython>=0.20', - 'setuptools>=25', - ], - install_requires=[ - 'setuptools>=25', - ], - extras_require={ - 'doc': [ - 'sphinx', - 'sphinx_rtd_theme', - ], - 'test': [ - 'pytest', - ], - }, - zip_safe=False, - keywords='rocksdb bindings', - classifiers=[ - 'Development Status :: 3 - Alpha', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: BSD License', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Topic :: Database', - ], - project_urls={ - 'Bug Reports': 'https://github.com/martyanov/python-rocksdb/issues', - 'Repository': 'https://github.com/martyanov/python-rocksdb', - }, ) diff --git a/tox.ini b/tox.ini index 7202f0702cd5b1bfae0a17640182babefd20529d..917b6eeea0ece10a16bfb50b74fe8f72109eaf57 100644 --- a/tox.ini +++ b/tox.ini @@ -1,18 +1,18 @@ [tox] -envlist = py27,py35,py36 +envlist = py35,py36,py37,py38,py39 minversion = 2.0 skipsdist = True [testenv] -skip_install = True -deps = - -e - .[test] -commands = pytest {posargs:rocksdb/tests} +#skip_install = True +#deps = +# -e +# .[test] +commands = pytest-3 {posargs:rocksdb/tests} [testenv:docs] deps = .[doc] -commands = python setup.py build_sphinx -W +commands = python3 setup.py build_sphinx -W [pytest] addopts = --verbose