Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
cythonize = no_cythonize
warnings.warn('Unable to import Cython - attempting to build using the '
'pre-compiled C++ files.')
cython_modules = [
build_extension_from_pyx('menpo3d/rasterize/tripixel.pyx'),
]
cython_exts = cythonize(cython_modules, quiet=True)
install_requires = ['menpo>=0.9.0,<0.11.0',
'mayavi>=4.7.0',
'moderngl>=5.5.*,<6.0']
setup(name='menpo3d',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='Menpo library providing tools for 3D Computer Vision research',
author='James Booth',
author_email='james.booth08@imperial.ac.uk',
packages=find_packages(),
package_data={'menpo3d': ['data/*']},
install_requires=install_requires,
tests_require=['pytest>=5.0', 'mock>=3.0'],
ext_modules=cython_exts
)
try:
from setuptools import setup
from setuptools.command.install import install
from setuptools.command.egg_info import egg_info
except ImportError:
from distutils.core import setup
import sys
import os
import subprocess
import errno
import versioneer
cmdclass = versioneer.get_cmdclass()
version = versioneer.get_version()
if sys.version_info[:2] <= (2, 6):
raise RuntimeError(
"You're using Python <= 2.6, but this package requires either Python "
"2.7, or 3.3 or above, so you can't use it unless you upgrade your "
"Python version."
)
dependencies = ['ordered-set']
extras = {
'docs': ['sphinx'],
'matrices': ['numpy'],
'matplotlib': ['matplotlib'],
'quantities': ['quantities', 'numpy'],
from distutils.core import setup, Extension
import os
import numpy
import numpy.distutils.misc_util as np_misc
import versioneer
versioneer.versionfile_source = 'numba/_version.py'
versioneer.versionfile_build = 'numba/_version.py'
versioneer.tag_prefix = ''
versioneer.parentdir_prefix = 'numba-'
cmdclass = versioneer.get_cmdclass()
setup_args = {
'long_description': open('README.md').read(),
}
GCCFLAGS = ["-std=c89", "-Wdeclaration-after-statement", "-Werror"]
if os.environ.get("NUMBA_GCC_FLAGS"):
CFLAGS = GCCFLAGS
else:
CFLAGS = []
npymath_info = np_misc.get_info('npymath')
ext_dynfunc = Extension(name='numba._dynfunc', sources=['numba/_dynfunc.c'],
extra_compile_args=CFLAGS,
pkg_data = {"pydra": ["schema/context.jsonld"]}
root_dir = os.path.dirname(os.path.abspath(getfile(currentframe())))
version = None
cmdclass = {}
if os.path.isfile(os.path.join(root_dir, "pydra", "VERSION")):
with open(os.path.join(root_dir, "pydra", "VERSION")) as vfile:
version = vfile.readline().strip()
pkg_data["pydra"].insert(0, "VERSION")
if version is None:
import versioneer
version = versioneer.get_version()
cmdclass = versioneer.get_cmdclass()
setup(
name=__packagename__,
version=version,
cmdclass=cmdclass,
description=__description__,
long_description=__longdesc__,
author=__author__,
author_email=__email__,
maintainer=__maintainer__,
maintainer_email=__email__,
url=__url__,
license=__license__,
classifiers=CLASSIFIERS,
download_url=DOWNLOAD_URL,
provides=PROVIDES,
"pytz",
"toolz",
]
with open('README.md') as f:
LONG_DESCRIPTION = f.read()
if __name__ == '__main__':
setup(
name=DISTNAME,
entry_points={
'console_scripts': [
'tcal = trading_calendars.tcal:main',
],
},
cmdclass=versioneer.get_cmdclass(),
version=versioneer.get_version(),
author=AUTHOR,
author_email=AUTHOR_EMAIL,
description=DESCRIPTION,
license=LICENSE,
url=URL,
classifiers=classifiers,
long_description=LONG_DESCRIPTION,
long_description_content_type='text/markdown',
packages=find_packages(
include=['trading_calendars', 'trading_calendars.*']
),
install_requires=reqs,
)
# git_requirements = [line for line in requirements_lines
# if line.startswith('git')]
#
# # git repos also need to be listed in the requirements.
# for git_req in git_requirements:
# print('---------------\n', git_req, requirements)
# # loc = git_requirements[0].find('egg=') + 4
# # requirements += [ git_requirements[0][loc:] ]
# loc = git_requirements[0].find('egg=') + 4
# requirements += [ git_requirements[0][loc:] ]
setup(
name='paragami',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description="Python pacakge to flatten and fold parameter data structures.",
long_description=readme,
author="Ryan Giordano",
author_email='rgiordan@gmail.com',
url='https://github.com/rgiordan/paragami',
packages=find_packages(exclude=['docs', 'tests']),
entry_points={
'console_scripts': [
# 'some.module:some_function',
],
},
include_package_data=True,
package_data={
'paragami': [
# When adding files here, remember to update MANIFEST.in as well,
# or else they will not be included in the distribution on PyPI!
name = "jcvi"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Bio-Informatics",
]
# Use the helper
h = SetupHelper(initfile="jcvi/__init__.py", readmefile="README.md")
h.check_version(name, majorv=2, minorv=7)
cmdclass = versioneer.get_cmdclass()
include_dirs = []
setup_dir = op.abspath(op.dirname(__file__))
requirements = [x.strip() for x in open(op.join(setup_dir, "requirements.txt"))]
h.install_requirements(requires=["cython", "numpy"])
# Build the ext
try:
import numpy as np
from Cython.Distutils import build_ext
cmdclass.update({"build_ext": build_ext})
include_dirs.append(np.get_include())
except ImportError:
print("Cython not installed. Skip compiling Cython extensions.")
ext_modules = [
def setup_package():
from setuptools import find_packages
# versioneer needs numpy cmdclass
from numpy.distutils.core import setup, numpy_cmdclass
metadata = dict(
name='scikit-misc',
maintainer=__author__,
maintainer_email=__email__,
description=__description__,
long_description=__doc__,
license=__license__,
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(numpy_cmdclass),
url=__url__,
project_urls=__project_urls__,
install_requires=get_required_packages(),
setup_requires=setup_requires(),
packages=find_packages(),
package_data=get_package_data(),
classifiers=__classifiers__,
platforms=__platforms__,
configuration=configuration
)
setup(**metadata)
import os
from setuptools import setup
import versioneer
filename = os.path.join(os.path.dirname(__file__), 'requirements.txt')
requirements = open(filename).read().splitlines()
setup(
name='dasem',
author='Finn Aarup Nielsen',
author_email='faan@dtu.dk',
cmdclass=versioneer.get_cmdclass(),
description='Danish semantic analysis',
license='Apache',
keywords='text',
url='https://github.com/fnielsen/dasem',
packages=['dasem'],
package_data={
'dasem': [
'data/four_words.csv',
'data/compounds.txt',
'data/README.rst',
]
},
install_requires=requirements,
long_description='',
classifiers=[
'Programming Language :: Python :: 2.7',
from setuptools import setup, find_packages
from os import path
import versioneer
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='knotr',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description='Reproducible report generation tool.',
long_description=long_description,
url='https://github.com/tomaugspurger/stitch',
author='Tom Augspurger',
author_email='tom.augspurger88@gmail.com',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',