forked from twmht/python-rocksdb
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
90 additions
and
49 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import platform | ||
from setuptools import setup | ||
from setuptools import find_packages | ||
from setuptools import Extension | ||
import setuptools | ||
|
||
|
||
extra_compile_args = [ | ||
|
@@ -14,34 +12,79 @@ | |
'-fno-rtti', | ||
] | ||
|
||
|
||
if platform.system() == 'Darwin': | ||
extra_compile_args += ['-mmacosx-version-min=10.7', '-stdlib=libc++'] | ||
|
||
|
||
setup( | ||
name="python-rocksdb", | ||
version='0.7.0', | ||
description="Python bindings for RocksDB", | ||
keywords='rocksdb', | ||
author='Ming Hsuan Tu', | ||
author_email="[email protected]", | ||
url="https://github.com/twmht/python-rocksdb", | ||
def _get_long_description(): | ||
with open('README.rst') as readme_file: | ||
return readme_file.read() | ||
|
||
|
||
setuptools.setup( | ||
name='rocksdb', | ||
version='0.8.0rc1', | ||
description='Python bindings for RocksDB', | ||
long_description=_get_long_description(), | ||
long_description_content_type='text/x-rst', | ||
author='Andrey Martyanov', | ||
author_email='[email protected]', | ||
url='https://github.com/martyanov/python-rocksdb', | ||
license='BSD License', | ||
setup_requires=['setuptools>=25', 'Cython>=0.20'], | ||
install_requires=['setuptools>=25'], | ||
package_dir={'rocksdb': 'rocksdb'}, | ||
packages=find_packages('.'), | ||
ext_modules=[Extension( | ||
'rocksdb._rocksdb', | ||
['rocksdb/_rocksdb.pyx'], | ||
extra_compile_args=extra_compile_args, | ||
language='c++', | ||
libraries=['rocksdb', 'snappy', 'bz2', 'z', 'lz4'], | ||
)], | ||
extras_require={ | ||
"doc": ['sphinx_rtd_theme', 'sphinx'], | ||
"test": ['pytest'], | ||
license_file='LICENSE', | ||
packages=setuptools.find_packages('.'), | ||
package_dir={ | ||
'rocksdb': 'rocksdb', | ||
}, | ||
include_package_data=True, | ||
ext_modules=[ | ||
setuptools.Extension( | ||
'rocksdb._rocksdb', | ||
[ | ||
'rocksdb/_rocksdb.pyx', | ||
], | ||
extra_compile_args=extra_compile_args, | ||
language='c++', | ||
libraries=[ | ||
'rocksdb', | ||
'snappy', | ||
'bz2', | ||
'z', | ||
'lz4', | ||
], | ||
), | ||
], | ||
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', | ||
}, | ||
) |