-
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
1 changed file
with
36 additions
and
6 deletions.
There are no files selected for viewing
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,31 +1,61 @@ | ||
# setup.py | ||
|
||
from setuptools import setup, find_packages | ||
from setuptools import setup, find_packages, Extension | ||
|
||
try: | ||
from Cython.Distutils import build_ext | ||
HAVE_CYTHON = True | ||
except ImportError: | ||
from setuptools.command.build_ext import build_ext | ||
HAVE_CYTHON = False | ||
|
||
|
||
def readme(): | ||
with open('README.rst') as readme_file: | ||
return readme_file.read() | ||
|
||
REQUIRES = [ | ||
'docopt >= 0.6.2', | ||
'graphviz >= 0.5.2' | ||
] | ||
|
||
EXTENSIONS = [] | ||
|
||
if HAVE_CYTHON: | ||
EXTENSIONS.append(Extension('nmrstarlib.cbmrblex', | ||
sources=['nmrstarlib/cbmrblex.pyx'])) | ||
else: | ||
EXTENSIONS.append(Extension('nmrstarlib.cbmrblex', | ||
sources=['nmrstarlib/cbmrblex.c'])) | ||
|
||
setup( | ||
name='nmrstarlib', | ||
version='1.0.4', | ||
version='1.0.5', | ||
author='Andrey Smelter', | ||
author_email='andrey.smelter@gmail.com', | ||
description='Python library for parsing data from NMR-STAR format files', | ||
keywords='BMRB NMR-STAR parsing nmrstarlib', | ||
license='MIT', | ||
url='https://github.com/MoseleyBioinformaticsLab/nmrstarlib', | ||
packages=find_packages(), | ||
package_data={'nmrstarlib':['conf/*.json']}, | ||
package_data={'nmrstarlib': ['conf/*.json']}, | ||
platforms='any', | ||
long_description=open('README.rst').read(), | ||
long_description=readme(), | ||
install_requires=REQUIRES, | ||
cmdclass={"build_ext": build_ext}, | ||
ext_modules=EXTENSIONS, | ||
classifiers=[ | ||
'Development Status :: 4 - Beta', | ||
'Environment :: Console', | ||
'Intended Audience :: Developers', | ||
'Intended Audience :: Science/Research', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python :: 3.3', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Topic :: Scientific/Engineering :: Bio-Informatics', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
], | ||
) | ||
) |