Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if not (sys.version_info[0] == PYVER_MAJOR and sys.version_info[1] >= PYVER_MINOR):
print("Sorry, Python >= 3.3 is supported (for the moment")
sys.exit(1)
from setuptools import setup, find_packages
import versioneer
import os
from m2bk.const import PKG_NAME, PKG_URL
# versioneer
versioneer.VCS = 'git'
versioneer.versionfile_source = "{p}/_version.py".format(p=PKG_NAME)
versioneer.versionfile_build = "{p}/_version.py".format(p=PKG_NAME)
versioneer.tag_prefix = ''
versioneer.parentdir_prefix = "{p}-".format(p=PKG_NAME)
# default config file location
if sys.prefix != '/usr':
conf_dir = os.path.join(sys.prefix, 'etc')
else:
conf_dir = '/etc'
pkg_ver = versioneer.get_version()
setup(
name=PKG_NAME,
version=pkg_ver,
cmdclass=versioneer.get_cmdclass(),
packages=find_packages(exclude=["tests"]),
author="Alejandro Ricoveri",
author_email="alejandroricoveri@gmail.com",
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import os
from setuptools import setup, Command
from setuptools.command.test import test as TestCommand
import versioneer
versioneer.versionfile_source = 'pynetworking/_version.py'
versioneer.versionfile_build = 'pynetworking/_version.py'
versioneer.tag_prefix = 'v' # tags are like v1.2.0
versioneer.parentdir_prefix = 'py-networking-'
class ToxCommand(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import tox
errno = tox.cmdline(self.test_args)
sys.exit(errno)
class CleanCommand(Command):
import petsc
return (petsc.get_petsc_dir(), )
except ImportError:
sys.exit("""Error: Could not find PETSc library.
Set the environment variable PETSC_DIR to your local PETSc base
directory or install PETSc from PyPI as described in the manual:
http://firedrakeproject.org/obtaining_pyop2.html#petsc
""")
import versioneer
versioneer.versionfile_source = 'firedrake/_version.py'
versioneer.versionfile_build = 'firedrake/_version.py'
versioneer.tag_prefix = 'v'
versioneer.parentdir_prefix = 'firedrake-'
versioneer.VCS = "git"
cmdclass = versioneer.get_cmdclass()
try:
from Cython.Distutils import build_ext
cmdclass['build_ext'] = build_ext
dmplex_sources = ["firedrake/dmplex.pyx"]
spatialindex_sources = ["firedrake/spatialindex.pyx"]
h5iface_sources = ["firedrake/hdf5interface.pyx"]
mg_sources = ["firedrake/mg/impl.pyx"]
evtk_sources = ['evtk/cevtk.pyx']
except ImportError:
# No cython, dmplex.c must be generated in distributions.
dmplex_sources = ["firedrake/dmplex.c"]
spatialindex_sources = ["firedrake/spatialindex.cpp"]
JUNIT_XML = False
# Add here all kinds of additional classifiers as defined under
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
CLASSIFIERS = ['Development Status :: 4 - Beta',
'Programming Language :: Python']
# Add here console scripts like ['hello_world = moderna.module:function']
CONSOLE_SCRIPTS = []
# Versioneer configuration
versioneer.VCS = 'git'
versioneer.versionfile_source = os.path.join(MAIN_PACKAGE, '_version.py')
versioneer.versionfile_build = os.path.join(MAIN_PACKAGE, '_version.py')
versioneer.tag_prefix = 'v' # tags are like v1.2.0
versioneer.parentdir_prefix = MAIN_PACKAGE + '-'
class PyTest(TestCommand):
user_options = [("cov=", None, "Run coverage"),
("cov-xml=", None, "Generate junit xml report"),
("cov-html=", None, "Generate junit html report"),
("junitxml=", None, "Generate xml of test results")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.cov = None
self.cov_xml = False
self.cov_html = False
self.junitxml = None
def finalize_options(self):
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# AUTHORS
# Hervé BREDIN - http://herve.niderb.fr
import versioneer
versioneer.versionfile_source = 'pyannote/features/_version.py'
versioneer.versionfile_build = versioneer.versionfile_source
versioneer.tag_prefix = ''
versioneer.parentdir_prefix = 'pyannote-features-'
from setuptools import setup, find_packages
setup(
# package
namespace_packages=['pyannote'],
packages=find_packages(),
scripts=[
'scripts/mfcc.py',
],
install_requires=[
'pyannote.core >= 0.6.5',
'scikit-learn >=0.14',
'nltk >= 3.1',
'scipy >= 0.10.0',
"This might lead to an incomplete installation\n"
)
import platform
from numpy.distutils.core import setup
from helpers.extensions import static_ext_modules
import versioneer
versioneer.VCS = 'git'
versioneer.versionfile_source = 'sherpa/_version.py'
versioneer.versionfile_build = 'sherpa/_version.py'
versioneer.tag_prefix = ''
versioneer.parentdir_prefix = 'sherpa-'
meta = dict(name='sherpa',
version=versioneer.get_version(),
author='Smithsonian Astrophysical Observatory / Chandra X-Ray Center',
author_email='cxchelp@head.cfa.harvard.edu',
url='http://cxc.harvard.edu/sherpa/',
description='Modeling and fitting package for scientific data analysis',
license='GNU GPL v3',
long_description=open('README.md', 'rt').read(),
platforms='Linux, Mac OS X',
install_requires=['numpy', ],
tests_require=['pytest', ],
packages=['sherpa',
'sherpa.estmethods',
'sherpa.image',
'sherpa.models',
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, os.path.abspath('..'))
sys.path.insert(0, os.path.abspath('.'))
print(sys.path)
import versioneer
current_dir = os.getcwd()
os.chdir(os.path.dirname(versioneer.__file__))
versioneer.VCS = 'git'
versioneer.versionfile_source = '../datacube/_version.py'
versioneer.versionfile_build = '../datacube/_version.py'
versioneer.tag_prefix = 'datacube-' # tags are like datacube-1.2.0
versioneer.parentdir_prefix = '..'
__version = versioneer.get_version().replace('.dirty', '')
del versioneer
os.chdir(current_dir)
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
# -- RTD Debugging
import subprocess
subprocess.call('which java', shell=True)
subprocess.call('java -version', shell=True)
subprocess.call('plantuml -v', shell=True)
# -- General configuration ------------------------------------------------
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')
# from __future__ import unicode_literals
from __future__ import absolute_import
from __future__ import division
from setuptools import setup
from setuptools.command.install import install as _install
import os
import versioneer
import sys
import datetime
versioneer.VCS = 'git'
versioneer.versionfile_source = 'cloudmap/_version.py'
versioneer.versionfile_build = 'cloudmap/_version.py'
versioneer.tag_prefix = '' # tags are like 1.2.0
versioneer.parentdir_prefix = 'CreateCloudMap-'
def mkdir_p(path):
import errno
try:
os.makedirs(path)
except OSError as exc: # Python >2.5
if exc.errno == errno.EEXIST and os.path.isdir(path):
pass
else:
raise
def copy_config():
from shutil import copyfile, move
srcfiles = [
from epsilon.setuphelper import autosetup
import versioneer
versioneer.vcs = "git"
versioneer.versionfile_source = "imaginary/_version.py"
versioneer.versionfile_build = "imaginary/_version.py"
versioneer.tag_prefix= ""
versioneer.parentdir_prefix = "Imaginary-"
with open("README.rst") as fObj:
readme = fObj.read()
distobj = autosetup(
name="Imaginary",
version=versioneer.get_version(),
maintainer="Divmod, Inc.",
maintainer_email="support@divmod.org",
url="http://divmod.org/trac/wiki/DivmodImaginary",
license="MIT",
platforms=["any"],
description=readme,
cmdclass=versioneer.get_cmdclass(),
classifiers=[
"Development Status :: 2 - Pre-Alpha",