Skip to content
Snippets Groups Projects
Commit 07633ecd authored by Martina Ferrari's avatar Martina Ferrari
Browse files

Update README, set myself as current author/maintainer, and move most of...

Update README, set myself as current author/maintainer, and move most of setup.py to the configuration file.
parent 247b0459
No related branches found
No related tags found
No related merge requests found
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
......
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[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
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',
},
)
[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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment