Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import sys
if len(sys.argv) > 1 and sys.argv[1] == 'test':
sys.jardin_setup = False
else:
sys.jardin_setup = True
import jardin
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst')) as f:
long_description = f.read()
setup(
name = 'jardin',
version = jardin.__version__,
description = 'A Pandas dataframe-based ORM',
long_description = long_description,
url = 'https://github.com/instacart/jardin',
author = 'Emmanuel Turlay',
license = 'MIT',
author_email = 'emmanuel@instacart.com',
packages = ['jardin', 'jardin.database', 'jardin.database.drivers'],
install_requires = [
'pandas',
'numpy',
'psycopg2',
'memoized_property',
'inflect',
'future'
],
python_requires='>=3.5, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4',
source_suffix = '.rst'
# The master toctree document.
master_doc = 'index'
# General information about the project.
project = u'jardin'
copyright = u'2017, Instacart'
author = u'Emmanuel Turlay'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = jardin.__version__
# The full version, including alpha/beta/rc tags.
release = jardin.__version__
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This patterns also effect to html_static_path and html_extra_path
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
# The name of the Pygments (syntax highlighting) style to use.
# The master toctree document.
master_doc = 'index'
# General information about the project.
project = u'jardin'
copyright = u'2017, Instacart'
author = u'Emmanuel Turlay'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = jardin.__version__
# The full version, including alpha/beta/rc tags.
release = jardin.__version__
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This patterns also effect to html_static_path and html_extra_path
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'