Skip to content

Commit

Permalink
Cosmit in 'setup.py'
Browse files Browse the repository at this point in the history
  • Loading branch information
superbobry committed Mar 11, 2016
1 parent 387c501 commit c59b9da
Showing 1 changed file with 25 additions and 34 deletions.
59 changes: 25 additions & 34 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
#! /usr/bin/env python
"""Super-fast, efficiently stored Trie for Python."""

import glob
import os

from setuptools import setup, Extension

LIBDATRIE_DIR = 'libdatrie/datrie'
LIBDATRIE_FILE_NAMES = [
'alpha-map.c', 'darray.c', 'fileutils.c', 'tail.c', 'trie.c',
'dstring.c', 'trie-string.c',
]
LIBDATRIE_FILES = [os.path.join(LIBDATRIE_DIR, name)
for name in LIBDATRIE_FILE_NAMES]
LIBDATRIE_DIR = 'libdatrie'
LIBDATRIE_FILES = glob.glob(os.path.join(LIBDATRIE_DIR, "datrie", "*.c"))

DESCRIPTION = __doc__
LONG_DESCRIPTION = open('README.rst').read() + open('CHANGES.rst').read()
Expand All @@ -38,30 +34,25 @@
]


setup(
name="datrie",
version="0.7",
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author='Mikhail Korobov',
author_email='[email protected]',
license=LICENSE,
url='https://github.com/kmike/datrie',
classifiers=CLASSIFIERS,
libraries=[
('libdatrie', dict(
sources=LIBDATRIE_FILES,
include_dirs=["libdatrie"],
))
],
ext_modules=[
Extension("datrie", [
'src/datrie.c',
'src/cdatrie.c',
'src/stdio_ext.c'
], include_dirs=['libdatrie'])
],

setup_requires=["pytest-runner"],
tests_require=["pytest", "hypothesis"],
)
setup(name="datrie",
version="0.7.1",
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author='Mikhail Korobov',
author_email='[email protected]',
license=LICENSE,
url='https://github.com/kmike/datrie',
classifiers=CLASSIFIERS,
libraries=[('libdatrie', {
"sources": LIBDATRIE_FILES,
"include_dirs": [LIBDATRIE_DIR]})],
ext_modules=[
Extension("datrie", [
'src/datrie.c',
'src/cdatrie.c',
'src/stdio_ext.c'
], include_dirs=[LIBDATRIE_DIR])
],

setup_requires=["pytest-runner"],
tests_require=["pytest", "hypothesis"])

0 comments on commit c59b9da

Please sign in to comment.