Exemplo n.º 1
0
def setup_versioneer():
    '''
    Generate (temporarily) versioneer.py file in project root directory
    :return:
    '''
    try:
        # assume versioneer.py was generated using "versioneer install" command
        import versioneer
        versioneer.get_version()
    except ImportError:
        # it looks versioneer.py is missing
        # lets assume that versioneer package is installed
        # and versioneer binary is present in $PATH
        import subprocess
        try:
            # call versioneer install to generate versioneer.py
            subprocess.check_output(["versioneer", "install"])
        except OSError:
            # it looks versioneer is missing from $PATH
            # probably versioneer is installed in some user directory

            # query pip for list of files in versioneer package
            output = pip_command_output(["show", "-f", "versioneer"])

            # now we parse the results
            main_path = [x[len("Location: "):] for x in output.split('\n')
                         if x.startswith("Location")][0]
            bin_path = [x[len("  "):] for x in output.split('\n')
                        if x.endswith("/versioneer")][0]

            # exe_path is absolute path to versioneer binary
            import os
            exe_path = os.path.join(main_path, bin_path)
            # call versioneer install to generate versioneer.py
            subprocess.check_output([exe_path, "install"])
Exemplo n.º 2
0
def do_setup():
    setup(name=NAME,
          version=versioneer.get_version(),
          description=DESCRIPTION,
          long_description=LONG_DESCRIPTION,
          classifiers=CLASSIFIERS,
          author=AUTHOR,
          author_email=AUTHOR_EMAIL,
          url=URL,
          license=LICENSE,
          platforms=PLATFORMS,
          packages=find_packages(),
          cmdclass=versioneer.get_cmdclass(),
          install_requires=['numpy>=1.9.1', 'scipy>=0.14', 'six>=1.9.0'],
          # pygments is a dependency for Sphinx code highlight
          extras_require={
              'test': ['nose>=1.3.0', 'parameterized', 'flake8<3'],
              'doc': ['Sphinx>=0.5.1', 'pygments']
          },
          package_data={
              '': ['*.txt', '*.rst', '*.cu', '*.cuh', '*.c', '*.sh', '*.pkl',
                   '*.h', '*.cpp', 'ChangeLog', 'c_code/*'],
              'theano.misc': ['*.sh'],
              'theano.d3viz': ['html/*', 'css/*', 'js/*']
          },
          entry_points={
              'console_scripts': ['theano-cache = bin.theano_cache:main',
                                  'theano-nose = bin.theano_nose:main']
          },
          keywords=' '.join([
              'theano', 'math', 'numerical', 'symbolic', 'blas',
              'numpy', 'gpu', 'autodiff', 'differentiation'
          ]),
    )
Exemplo n.º 3
0
def run_setup():
    setup(
        name='copulae',
        author=AUTHOR,
        author_email=EMAIL,
        maintainer=AUTHOR,
        maintainer_email=EMAIL,
        packages=find_packages(include=['copulae', 'copulae.*']),
        license="MIT",
        version=versioneer.get_version(),
        description='Python copulae library for dependency modelling',
        long_description=long_description,
        long_description_content_type='text/markdown',
        url='https://github.com/DanielBok/copulae',
        keywords=['copula', 'copulae', 'dependency modelling', 'dependence structures', 'archimdean', 'elliptical',
                  'finance'],
        classifiers=[
            'Development Status :: 3 - Alpha',
            'Intended Audience :: End Users/Desktop',
            'Intended Audience :: Financial and Insurance Industry',
            'Programming Language :: Python :: 3.6',
            'Programming Language :: Python :: 3.7',
            'License :: OSI Approved :: MIT',
            'Operating System :: MacOS :: MacOS X',
            'Operating System :: Microsoft :: Windows',
            'Operating System :: POSIX',
            'Programming Language :: Python',
            'Topic :: Scientific/Engineering',
        ],
        install_requires=requirements,
        setup_requires=setup_requirements,
        include_package_data=True,
        python_requires='>=3.6',
        zip_safe=False,
    )
Exemplo n.º 4
0
def main():

    setup(name='datarail',
          version=versioneer.get_version(),
          description='DataRail',
          long_description=(
              'DataRail is a framework for managing, transforming,'
              ' visualizing, and processing scientific data, in particular'
              ' that generated by high-dimensional multi-factorial'
              ' experimental designs.'
          ),
          author='Marc Hafner',
          author_email='*****@*****.**',
          url='http://github.com/sorgerlab/datarail',
          packages=find_packages(),
          install_requires=['numpy', 'pandas', 'xarray'],
          cmdclass=versioneer.get_cmdclass(),
          keywords=['systems', 'biology', 'data', 'array', 'matrix'],
          classifiers=[
            'Development Status :: 3 - Alpha',
            'Environment :: Console',
            'Intended Audience :: Science/Research',
            'License :: OSI Approved :: BSD License',
            'Operating System :: OS Independent',
            'Programming Language :: Python :: 2',
            'Topic :: Scientific/Engineering :: Bio-Informatics',
            'Topic :: Scientific/Engineering :: Chemistry',
            'Topic :: Scientific/Engineering :: Mathematics',
            'Topic :: Scientific/Engineering :: Visualization',
            ],
          )
Exemplo n.º 5
0
def params():
    name = "netconnectd"
    version = versioneer.get_version()
    description = DESCRIPTION
    long_description = LONG_DESCRIPTION
    author = "Gina Haeussge"
    author_email = "*****@*****.**"
    url = "http://github.com/foosel/netconnectd"
    license = "AGPLV3"
    cmdclass = get_cmdclass()

    packages = ["netconnectd"]
    zip_safe = False

    dependency_links = [
        "https://github.com/foosel/wifi/tarball/master#egg=wifi-1.0.1"
    ]
    install_requires = [
        "wifi==1.0.1",
        "PyYaml",
        "netaddr"
    ]

    entry_points = {
        "console_scripts": {
            "netconnectd = netconnectd:server",
            "netconnectcli = netconnectd:client"
        }
    }

    return locals()
Exemplo n.º 6
0
def process_setup():
    """
    Setup function
    """
    if sys.version_info < (3,0):
        sys.exit("build-utilities only supports python3. Please run setup.py with python3.")
       
    cmds = versioneer.get_cmdclass()
    cmds["install"] = InstallCommand
    setup(
        name="build-utilities",
        version=versioneer.get_version(),
        cmdclass=cmds,
        packages=find_packages("src"),
        package_dir ={'':'src'},
        install_requires=['GitPython>=2.0', 'progressbar2>=2.0.0'],
        author="Alexandre ACEBEDO",
        author_email="Alexandre ACEBEDO",
        description="Build utilities for python and go projects.",
        license="LGPLv3",
        keywords="build go python",
        url="http://github.com/aacebedo/build-utilities",
        entry_points={'console_scripts':
                      ['build-utilities = buildutilities.__main__:BuildUtilities.main']}
    )
Exemplo n.º 7
0
Arquivo: setup.py Projeto: pymor/pymor
def setup_package():

    _setup(
        name='pymor',
        version=versioneer.get_version(),
        author='pyMOR developers',
        author_email='*****@*****.**',
        maintainer='Rene Milk',
        maintainer_email='*****@*****.**',
        package_dir={'': 'src'},
        packages=find_packages('src'),
        include_package_data=True,
        scripts=['src/pymor-demo', 'dependencies.py'],
        url='http://pymor.org',
        description=' ',
        python_requires='>=3.6',
        long_description=open('README.md').read(),
        long_description_content_type='text/markdown',
        setup_requires=setup_requires,
        tests_require=tests_require,
        install_requires=install_requires,
        extras_require = dependencies.extras(),
        classifiers=['Development Status :: 4 - Beta',
                     'License :: OSI Approved :: BSD License',
                     'Programming Language :: Python :: 3.6',
                     'Programming Language :: Python :: 3.7',
                     'Intended Audience :: Science/Research',
                     'Topic :: Scientific/Engineering :: Mathematics'],
        license='LICENSE.txt',
        zip_safe=False,
        cmdclass=cmdclass,
    )
Exemplo n.º 8
0
def main(**extra_args):
    setup(name=info.NAME,
          maintainer=info.MAINTAINER,
          maintainer_email=info.MAINTAINER_EMAIL,
          description=info.DESCRIPTION,
          url=info.URL,
          download_url=info.DOWNLOAD_URL,
          license=info.LICENSE,
          classifiers=info.CLASSIFIERS,
          author=info.AUTHOR,
          author_email=info.AUTHOR_EMAIL,
          platforms=info.PLATFORMS,
          version=versioneer.get_version(),
          requires=info.REQUIRES,
          provides=info.PROVIDES,
          packages     = ['regreg',
                          'regreg.tests',
                          'regreg.affine',
                          'regreg.affine.tests',
                          'regreg.atoms',
                          'regreg.atoms.tests',
                          'regreg.problems',
                          'regreg.problems.tests',
                          'regreg.smooth',
                          'regreg.smooth.tests',
                         ],
          ext_modules = EXTS,
          package_data = {},
          data_files=[],
          scripts= [],
          long_description = open('README.rst', 'rt').read(),
          cmdclass = cmdclass,
          **extra_args
         )
Exemplo n.º 9
0
def setup_package():
    needs_sphinx = {'build_sphinx', 'upload_docs'}.intersection(sys.argv)
    sphinx = ['sphinx'] if needs_sphinx else []
    setup(setup_requires=['six', 'pyscaffold>=2.5a0,<2.6a0'] + sphinx,
          version=versioneer.get_version(),
          cmdclass=versioneer.get_cmdclass(),
          use_pyscaffold=True)
Exemplo n.º 10
0
 def run(self):
     with open('python-flocker.spec.in', 'r') as source:
         spec = source.read()
     version = "%%global flocker_version %s\n" % (versioneer.get_version(),)
     with open('python-flocker.spec', 'w') as destination:
         destination.write(version)
         destination.write(spec)
Exemplo n.º 11
0
Arquivo: setup.py Projeto: tpn/tpn
def run_setup():
    setup(
        name='tpn',
        version=versioneer.get_version(),
        cmdclass=versioneer.get_cmdclass(),
        license='MIT',
        description="Trent's Dev Tools",
        author='Trent Nelson',
        author_email='*****@*****.**',
        url='http://github.com/tpn',
        packages=find_packages('lib'),
        package_dir={'': 'lib'},
        entry_points={
            'console_scripts': [
                'tpn = tpn.cli:main',
            ],
        },
        classifiers=[
            'Environment :: Console',
            'License :: OSI Approved :: MIT',
            'Development Status :: 5 - Production/Stable',
            'Operating System :: Microsoft :: Windows',
            'Intended Audience :: Developers',
            'Intended Audience :: System Administrators',
            'Intended Audience :: Information Technology',
            'Programming Language :: Python',
            'Programming Language :: Unix Shell',
        ],
    )
Exemplo n.º 12
0
def run_setup():
    setup(
        name="enversion",
        version=versioneer.get_version(),
        cmdclass=versioneer.get_cmdclass(),
        license="Apache",
        description="Enterprise Subversion Framework",
        author="Trent Nelson",
        author_email="*****@*****.**",
        url="http://www.enversion.org/",
        keywords="subversion,svn,scm,pysvn",
        packages=find_packages("lib"),
        package_dir={"": "lib"},
        entry_points={"console_scripts": ["evnadmin = evn.admin.cli:main"]},
        classifiers=[
            "Environment :: Console",
            "License :: OSI Approved :: Apache Software License",
            "Development Status :: 5 - Production/Stable",
            "Operating System :: POSIX",
            "Operating System :: MacOS :: MacOS X",
            "Operating System :: Microsoft :: Windows",
            "Intended Audience :: Developers",
            "Intended Audience :: System Administrators",
            "Intended Audience :: Information Technology",
            "Programming Language :: Python",
            "Programming Language :: Unix Shell",
            "Topic :: Software Development :: Quality Assurance",
            "Topic :: Software Development :: Version Control",
        ],
    )
Exemplo n.º 13
0
def params():
    name = "OctoPrint"
    version = versioneer.get_version()
    cmdclass = get_cmdclass()

    description = "A responsive web interface for 3D printers"
    long_description = open("README.md").read()
    classifiers = [
        "Development Status :: 4 - Beta",
        "Environment :: Web Environment",
        "Framework :: Flask",
        "Intended Audience :: Education",
        "Intended Audience :: End Users/Desktop",
        "Intended Audience :: Manufacturing",
        "Intended Audience :: Science/Research",
        "License :: OSI Approved :: GNU Affero General Public License v3",
        "Natural Language :: English",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 2.7",
        "Programming Language :: JavaScript",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
        "Topic :: Internet :: WWW/HTTP :: WSGI",
        "Topic :: Printing",
        "Topic :: System :: Networking :: Monitoring"
    ]
    author = "Gina Häußge"
    author_email = "*****@*****.**"
    url = "http://octoprint.org"
    license = "AGPLv3"

    packages = find_packages(where="src")
    package_dir = {
        "": "src"
    }
    package_data = {
        "octoprint": octoprint_setuptools.package_data_dirs('src/octoprint',
                                                            ['static', 'templates', 'plugins', 'translations'])
    }

    include_package_data = True
    zip_safe = False
    install_requires = INSTALL_REQUIRES
    extras_require = EXTRA_REQUIRES
    dependency_links = DEPENDENCY_LINKS

    if os.environ.get('READTHEDOCS', None) == 'True':
        # we can't tell read the docs to please perform a pip install -e .[develop], so we help
        # it a bit here by explicitly adding the development dependencies, which include our
        # documentation dependencies
        install_requires = install_requires + extras_require['develop']

    entry_points = {
        "console_scripts": [
            "umprint = octoprint:main"
        ]
    }

    return locals()
Exemplo n.º 14
0
def setup_package():
    # Assemble additional setup commands
    cmdclass = versioneer.get_cmdclass()
    cmdclass['docs'] = sphinx_builder()
    cmdclass['doctest'] = sphinx_builder()
    cmdclass['test'] = PyTest

    # Some helper variables
    version = versioneer.get_version()
    docs_path = os.path.join(__location__, "doc")
    docs_build_path = os.path.join(docs_path, "_build")
    install_reqs = get_install_requirements("requirements.txt")

    command_options = {
        'docs': {'project': ('setup.py', MAIN_PACKAGE),
                 'version': ('setup.py', version.split('-', 1)[0]),
                 'release': ('setup.py', version),
                 'build_dir': ('setup.py', docs_build_path),
                 'config_dir': ('setup.py', docs_path),
                 'source_dir': ('setup.py', docs_path)},
        'doctest': {'project': ('setup.py', MAIN_PACKAGE),
                    'version': ('setup.py', version.split('-', 1)[0]),
                    'release': ('setup.py', version),
                    'build_dir': ('setup.py', docs_build_path),
                    'config_dir': ('setup.py', docs_path),
                    'source_dir': ('setup.py', docs_path),
                    'builder': ('setup.py', 'doctest')},
        'test': {'test_suite': ('setup.py', 'test'),
                 'cov': ('setup.py', 'puq')}}
    if JUNIT_XML:
        command_options['test']['junitxml'] = ('setup.py', 'junit.xml')
    if COVERAGE_XML:
        command_options['test']['cov_xml'] = ('setup.py', True)
    if COVERAGE_HTML:
        command_options['test']['cov_html'] = ('setup.py', True)

    from numpy.distutils.misc_util import get_numpy_include_dirs
    incdirs = get_numpy_include_dirs()

    setup(name=MAIN_PACKAGE,
          version=version,
          url=URL,
          description=DESCRIPTION,
          author=AUTHOR,
          author_email=EMAIL,
          license=LICENSE,
          long_description=read('README.rst'),
          classifiers=CLASSIFIERS,
          test_suite='tests',
          packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
          install_requires=install_reqs,
          setup_requires=['six'],
          cmdclass=cmdclass,
          tests_require=['pytest-cov', 'pytest'],
          command_options=command_options,
          entry_points={'console_scripts': CONSOLE_SCRIPTS},
          zip_safe=False,
          package_data={'puq': ['spgrid_cache.hdf5']},
          )
Exemplo n.º 15
0
def get_version():
    ''' The version of Bokeh currently checked out

    Returns:
        str : the version string

    '''
    return versioneer.get_version()
Exemplo n.º 16
0
def setup_package():
    # Assemble additional setup commands
    cmdclass = versioneer.get_cmdclass()
    cmdclass['docs'] = sphinx_builder()
    cmdclass['doctest'] = sphinx_builder()
    cmdclass['test'] = PyTest
    cmdclass['cythonize'] = Cythonize
    cmdclass['build_ext'] = NumpyBuildExt

    # Some helper variables
    version = versioneer.get_version()
    docs_path = os.path.join(__location__, "docs")
    docs_build_path = os.path.join(docs_path, "_build")
    install_reqs = get_install_requirements("requirements.txt")

    command_options = {
        'docs': {'project': ('setup.py', MAIN_PACKAGE),
                 'version': ('setup.py', version.split('-', 1)[0]),
                 'release': ('setup.py', version),
                 'build_dir': ('setup.py', docs_build_path),
                 'config_dir': ('setup.py', docs_path),
                 'source_dir': ('setup.py', docs_path)},
        'doctest': {'project': ('setup.py', MAIN_PACKAGE),
                    'version': ('setup.py', version.split('-', 1)[0]),
                    'release': ('setup.py', version),
                    'build_dir': ('setup.py', docs_build_path),
                    'config_dir': ('setup.py', docs_path),
                    'source_dir': ('setup.py', docs_path),
                    'builder': ('setup.py', 'doctest')},
        'test': {'test_suite': ('setup.py', 'tests'),
                 'cov': ('setup.py', 'pytesmo')}}
    if JUNIT_XML:
        command_options['test']['junitxml'] = ('setup.py', 'junit.xml')
    if COVERAGE_XML:
        command_options['test']['cov_xml'] = ('setup.py', True)
    if COVERAGE_HTML:
        command_options['test']['cov_html'] = ('setup.py', True)

    setup(name=MAIN_PACKAGE,
          version=version,
          url=URL,
          description=DESCRIPTION,
          author=AUTHOR,
          author_email=EMAIL,
          license=LICENSE,
          long_description=read('README.rst'),
          classifiers=CLASSIFIERS,
          test_suite='tests',
          packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
          ext_modules=ext_modules,
          package_data={'pytesmo': [os.path.join('colormaps', '*.cmap')],
                        },
          install_requires=install_reqs,
          setup_requires=['six'],
          cmdclass=cmdclass,
          tests_require=['pytest-cov', 'pytest'],
          command_options=command_options,
          entry_points={'console_scripts': CONSOLE_SCRIPTS})
Exemplo n.º 17
0
def get_version():
    ver = versioneer.get_version()
    try:
        ver = ver[ver.index('.') + 1:]
        ver = ver[:ver.index('.')]
    except IndexError:
        pass

    return ver.replace('-', '.').replace('+', '.')
Exemplo n.º 18
0
Arquivo: setup.py Projeto: ant6/beprof
def setup_versioneer():
    """
    Generate (temporarily) versioneer.py file in project root directory
    :return:
    """
    try:
        # assume versioneer.py was generated using "versioneer install" command
        import versioneer
        versioneer.get_version()
    except ImportError:
        # it looks versioneer.py is missing
        # lets assume that versioneer package is installed
        # and versioneer binary is present in $PATH
        import subprocess
        try:
            # call versioneer install to generate versioneer.py
            subprocess.check_output(["versioneer", "install"])
        except OSError:
            # it looks versioneer is missing from $PATH
            # probably versioneer is installed in some user directory

            # query pip for list of files in versioneer package
            # line below is equivalen to putting result of
            #  "pip show -f versioneer" command to string output
            output = pip_command_output(["show", "-f", "versioneer"])

            # now we parse the results
            import os
            # find absolute path where *versioneer package* was installed
            # and store it in main_path
            main_path = [x[len("Location: "):] for x in output.splitlines()
                         if x.startswith("Location")][0]
            # find path relative to main_path where
            # *versioneer binary* was installed
            bin_path = [x[len("  "):] for x in output.splitlines()
                        if x.endswith(os.path.sep + "versioneer")][0]

            # exe_path is absolute path to *versioneer binary*
            exe_path = os.path.join(main_path, bin_path)
            # call versioneer install to generate versioneer.py
            # line below is equivalent to running in terminal
            # "python versioneer install"
            subprocess.check_output(["python", exe_path, "install"])
Exemplo n.º 19
0
def _setup(longdescription):
    setup(name=PKG,
          version=versioneer.get_version(),
          description='Derives word variations of D-L distance 1.',
          long_description=longdescription,
          author='L. Amber Wilcox-O\'Hearn',
          author_email='*****@*****.**',
          packages=['DamerauLevenshteinDerivor'],
          package_dir = {'': os.path.join('src', 'Python')},
          classifiers=trove_classifiers,
          cmdclass=versioneer.get_cmdclass(),
          )
Exemplo n.º 20
0
def _setup(longdescription):
    setup(name=PKG,
          version=versioneer.get_version(),
          description='trigram model with back-off method',
          long_description=longdescription,
          author='L. Amber Wilcox-O\'Hearn',
          author_email='*****@*****.**',
          packages=['BackOffTrigramModel'],
          package_dir = {'': os.path.join('src', 'Python')},
          classifiers=trove_classifiers,
          cmdclass=versioneer.get_cmdclass(),
          )
Exemplo n.º 21
0
def configuration(parent_package='', top_path=None):
    from numpy.distutils.misc_util import Configuration
    
    config = Configuration(None, parent_package, top_path, version=versioneer.get_version())
    config.set_options(ignore_setup_xxx_py=True,
                       assume_default_configuration=True,
                       delegate_options_to_subpackages=True,
                       quiet=True)
    
    config.add_subpackage("atoman")
    config.add_data_dir(("atoman/doc", os.path.join("doc", "build", "html")))
    
    return config
Exemplo n.º 22
0
def params():
	name = "OctoPrint"
	version = versioneer.get_version()
	cmdclass = get_cmdclass()

	description = "A responsive web interface for 3D printers"
	long_description = open("README.md").read()
	classifiers = [
		"Development Status :: 4 - Beta",
		"Environment :: Web Environment",
		"Framework :: Flask",
		"Intended Audience :: Education",
		"Intended Audience :: End Users/Desktop",
		"Intended Audience :: Manufacturing",
		"Intended Audience :: Science/Research",
		"License :: OSI Approved :: GNU Affero General Public License v3",
		"Natural Language :: English",
		"Operating System :: OS Independent",
		"Programming Language :: Python :: 2.7",
		"Programming Language :: JavaScript",
		"Topic :: Internet :: WWW/HTTP",
		"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
		"Topic :: Internet :: WWW/HTTP :: WSGI",
		"Topic :: Printing",
		"Topic :: System :: Networking :: Monitoring"
	]
	author = "Gina Häußge"
	author_email = "*****@*****.**"
	url = "http://octoprint.org"
	license = "AGPLv3"

	packages = find_packages(where="src")
	package_dir = {"octoprint": "src/octoprint"}
	package_data = {"octoprint": package_data_dirs('src/octoprint', ['static', 'templates', 'plugins'])}

	include_package_data = True
	zip_safe = False
	install_requires = open("requirements.txt").read().split("\n")

	entry_points = {
		"console_scripts": [
			"octoprint = octoprint:main"
		]
	}

	scripts = {
		"scripts/octoprint.init": "/etc/init.d/octoprint"
	}

	return locals()
Exemplo n.º 23
0
Arquivo: setup.py Projeto: ant6/beprof
def get_version():
    """
    Get project version (using versioneer)
    :return: string containing version
    """
    setup_versioneer()
    clean_cache()
    import versioneer
    version = versioneer.get_version()
    parsed_version = parse_version(version)
    if '*@' in parsed_version[1]:
        import time
        version += str(int(time.time()))
    return version
Exemplo n.º 24
0
def setup_package():
    # Assemble additional setup commands
    cmdclass = versioneer.get_cmdclass()
    cmdclass['test'] = NoseTestCommand

    setup(
        name='SALib',
        packages=find_packages(exclude=["*tests*"]),
        author="Jon Herman and Will Usher",
        author_email="*****@*****.**",
        license=open('LICENSE.md').read(),
        tests_require=['nose'],
        install_requires=[
            "numpy>=1.9.0",
            "scipy",
            "matplotlib>=1.4.3",
        ],
          
        extras_require = {
                          "gurobipy": ["gurobipy",]
                          },
        
        # Two arguments required by Versioneer
        version = versioneer.get_version(),
        cmdclass=cmdclass,
        url="https://github.com/SALib/SALib",
        long_description=open('README.md').read(),
        description=(
            'Tools for sensitivity analysis. Contains Sobol, Morris, and FAST methods.'),
        # entry_points = {
        #     'console_scripts': [
        #         'salib = SALib.bin.salib:main',
        #     ]
        # },
        classifiers=[
            # 'Development Status :: 5 - Production/Stable',
            'Intended Audience :: End Users/Desktop',
            'Intended Audience :: Developers',
            'Intended Audience :: Science/Research',
            # 'License :: OSI Approved :: BSD License',
            'Operating System :: MacOS :: MacOS X',
            'Operating System :: Microsoft :: Windows',
            'Operating System :: POSIX',
            'Programming Language :: Python',
            # 'Programming Language :: Python :: 2.7',
            # 'Programming Language :: Python :: 2 :: Only',
            'Topic :: Scientific/Engineering :: Mathematics',
        ],)
Exemplo n.º 25
0
def setup_package():

    _setup(
        name='pymor',
        version=versioneer.get_version(),
        author='pyMOR developers',
        author_email='*****@*****.**',
        maintainer='Rene Milk',
        maintainer_email='*****@*****.**',
        package_dir={'': 'src'},
        packages=find_packages('src'),
        include_package_data=True,
        scripts=['src/pymor-demo', 'distribute_setup.py', 'dependencies.py'],
        url='http://pymor.org',
        description=' ',
        long_description=open('README.txt').read(),
        setup_requires=setup_requires,
        tests_require=tests_require,
        install_requires=install_requires,
        classifiers=['Development Status :: 4 - Beta',
                     'License :: OSI Approved :: BSD License',
                     'Programming Language :: Python :: 2.7',
                     'Programming Language :: Python :: 3.4',
                     'Programming Language :: Python :: 3.5',
                     'Intended Audience :: Science/Research',
                     'Topic :: Scientific/Engineering :: Mathematics',
                     'Topic :: Scientific/Engineering :: Visualization'],
        license='LICENSE.txt',
        zip_safe=False,
        cmdclass=cmdclass,
    )

    missing = list(_missing(install_suggests.keys()))
    if len(missing):
        import textwrap
        print('\n' + '*' * 79 + '\n')
        print('There are some suggested packages missing:\n')
        col_width = max(map(len, missing)) + 3
        for package in sorted(missing):
            description = textwrap.wrap(install_suggests[package], 79 - col_width)
            print('{:{}}'.format(package + ':', col_width) + description[0])
            for d in description[1:]:
                print(' ' * col_width + d)
            print()
        print("\ntry: 'for pname in {}; do pip install $pname; done'".format(' '.join(missing)))
        print('\n' + '*' * 79 + '\n')
Exemplo n.º 26
0
    def run(self):
        with open('python-flocker.spec.in', 'r') as source:
            spec = source.read()

        flocker_version = versioneer.get_version()
        version, release = make_rpm_version(flocker_version)
        with open('python-flocker.spec', 'w') as destination:
            destination.write(
                "%%global flocker_version %s\n" % (flocker_version,))
            destination.write(
                "%%global flocker_version_underscore %s\n" % (
                    flocker_version.replace('-', '_'),))
            destination.write(
                "%%global supplied_rpm_version %s\n" % (version,))
            destination.write(
                "%%global supplied_rpm_release %s\n" % (release,))
            destination.write(spec)
Exemplo n.º 27
0
def main():
    setupkw = dict(
            name='PyGBe',
            description='A boundary element method code that does molecular electrostatics calculations with a continuum approach',
            platforms='Linux',
            install_requires = ['numpy > 1.8',],
            license='MIT',
            version=versioneer.get_version(),
            cmdclass=versioneer.get_cmdclass(cmdclass={'build': CustomBuild, 'install': CustomInstall}),
            url='https://github.com/barbagroup/pygbe',
            classifiers=['Programming Language :: Python :: 3'],
            packages = find_packages(),
            #tell setuptools to use the custom build and install classes
            #create an entrance point that points to pygbe.main.main
            entry_points={'console_scripts': ['pygbe = pygbe.main:main',
                                              'pygbe-lspr = pygbe.lspr:main']},
            #SWIG modules with all compilation options
            ext_modules = [
                Extension("_multipole",
                          sources=["pygbe/tree/multipole.i", "pygbe/tree/multipole.cpp"],
                          swig_opts=['-c++','-py3'],
                          include_dirs=[numpy.get_include()],
                          extra_compile_args=['-fPIC', '-O3', '-funroll-loops', '-msse3', '-fopenmp'],
                ),
                Extension("_direct",
                          sources=["pygbe/tree/direct.i", "pygbe/tree/direct.cpp"],
                          swig_opts=['-c++','-py3'],
                          include_dirs=[numpy.get_include()],
                          extra_compile_args=['-fPIC', '-O3', '-funroll-loops', '-msse3', '-fopenmp'],
                ),
                Extension("_calculateMultipoles",
                          sources=["pygbe/tree/calculateMultipoles.i", "pygbe/tree/calculateMultipoles.cpp"],
                          swig_opts=['-c++','-py3'],
                          include_dirs=[numpy.get_include()],
                          extra_compile_args=['-fPIC', '-O3', '-funroll-loops', '-msse3', '-fopenmp'],
                ),
                Extension("_semi_analyticalwrap",
                          sources=["pygbe/util/semi_analyticalwrap.i", "pygbe/util/semi_analyticalwrap.cpp"],
                          swig_opts=['-c++','-py3'],
                          include_dirs=[numpy.get_include()],
                          extra_compile_args=['-fPIC', '-O3', '-funroll-loops', '-msse3', '-fopenmp'],
                ),
                ],
            )
    setup(**setupkw)
Exemplo n.º 28
0
def main(**extra_args):
    setup(name=INFO_VARS['NAME'],
          maintainer=INFO_VARS['MAINTAINER'],
          maintainer_email=INFO_VARS['MAINTAINER_EMAIL'],
          description=INFO_VARS['DESCRIPTION'],
          long_description=INFO_VARS['LONG_DESCRIPTION'],
          url=INFO_VARS['URL'],
          download_url=INFO_VARS['DOWNLOAD_URL'],
          license=INFO_VARS['LICENSE'],
          classifiers=INFO_VARS['CLASSIFIERS'],
          author=INFO_VARS['AUTHOR'],
          author_email=INFO_VARS['AUTHOR_EMAIL'],
          platforms=INFO_VARS['PLATFORMS'],
          version=versioneer.get_version(),
          cmdclass=versioneer.get_cmdclass(),
          scripts=glob('bin/*'),
          install_requires=reqs,
          **extra_args)
Exemplo n.º 29
0
    def run(self):
        version = versioneer.get_version()
        add_literal_substitution("version", 'version = "%s"\n' % version)
        add_substitution("ed25519", "ed25519.py")
        add_base64_substitution("setup-lockup-b64", "setup-lockup.py")
        tempdir = tempfile.mkdtemp()
        git_lockup = os.path.join(tempdir, "git-lockup")
        with open(git_lockup, "wb") as f:
            f.write(construct("git-lockup-template"))

        # modify self.scripts with the source pathname of scripts to install
        # into self.build_dir . When we upcall, those scripts will be copied
        # and adjusted (their shbang line set to sys.executable).
        self.scripts = [git_lockup]
        rc = build_scripts.run(self)
        os.unlink(git_lockup)
        os.rmdir(tempdir)
        return rc
Exemplo n.º 30
0
def main():
    skw = dict(
        name='conda-smithy',
        version=versioneer.get_version(),
        description='A package to create repositories for conda recipes, and automate '
                    'their building with CI tools on Linux, OSX and Windows.',
        author='Phil Elson',
        author_email='*****@*****.**',
        url='https://github.com/conda-forge/conda-smithy',
        entry_points=dict(console_scripts=[
            'feedstocks = conda_smithy.feedstocks:main',
            'conda-smithy = conda_smithy.cli:main']),
        packages=find_packages(),
        include_package_data=True,
        # As conda-smithy has resources as part of the codebase, it is
        # not zip-safe.
        zip_safe=False,
        cmdclass=versioneer.get_cmdclass(),
        )
    setup(**skw)
Exemplo n.º 31
0
def get_version():
    if os.path.exists("PKG-INFO"):
        metadata = distutils.dist.DistributionMetadata("PKG-INFO")
        return metadata.version
    else:
        return versioneer.get_version()
Exemplo n.º 32
0
def main():
    """ Install entry-point """
    from io import open
    from os import path as op
    from inspect import getfile, currentframe
    from setuptools import setup, find_packages
    from setuptools.extension import Extension
    from numpy import get_include
    from fmriprep.info import (
        __packagename__,
        __version__,
        __author__,
        __email__,
        __maintainer__,
        __license__,
        __description__,
        __longdesc__,
        __url__,
        DOWNLOAD_URL,
        CLASSIFIERS,
        REQUIRES,
        SETUP_REQUIRES,
        LINKS_REQUIRES,
        TESTS_REQUIRES,
        EXTRA_REQUIRES,
    )

    pkg_data = {
        'fmriprep': [
            'data/*.json',
            'data/*.nii.gz',
            'data/*.mat',
            'data/boilerplate.bib',
            'data/itkIdentityTransform.txt',
            'viz/*.tpl',
            'viz/*.json',
        ]
    }

    root_dir = op.dirname(op.abspath(getfile(currentframe())))

    version = None
    cmdclass = {}
    if op.isfile(op.join(root_dir, 'fmriprep', 'VERSION')):
        with open(op.join(root_dir, 'fmriprep', 'VERSION')) as vfile:
            version = vfile.readline().strip()
        pkg_data['fmriprep'].insert(0, 'VERSION')

    if version is None:
        import versioneer
        version = versioneer.get_version()
        cmdclass = versioneer.get_cmdclass()

    extensions = [
        Extension("fmriprep.utils.maths", ["fmriprep/utils/maths.pyx"],
                  include_dirs=[get_include(), "/usr/local/include/"],
                  library_dirs=["/usr/lib/"]),
    ]

    setup(
        name=__packagename__,
        version=__version__,
        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,
        # Dependencies handling
        setup_requires=SETUP_REQUIRES,
        install_requires=REQUIRES,
        tests_require=TESTS_REQUIRES,
        extras_require=EXTRA_REQUIRES,
        dependency_links=LINKS_REQUIRES,
        package_data=pkg_data,
        entry_points={
            'console_scripts': [
                'fmriprep=fmriprep.cli.run:main',
                'fmriprep-boldmask=fmriprep.cli.fmriprep_bold_mask:main',
                'sample_openfmri=fmriprep.cli.sample_openfmri:main'
            ]
        },
        packages=find_packages(exclude=("tests", )),
        zip_safe=False,
        ext_modules=extensions,
        cmdclass=cmdclass,
    )
Exemplo n.º 33
0
# get a sensible error for older Python versions
if sys.version_info[:2] < (3, 8):
    raise RuntimeError("Python version >= 3.8 required.")

import versioneer

# This is a bit hackish: we are setting a global variable so that the main
# numpy __init__ can detect if it is being loaded by the setup routine, to
# avoid attempting to load components that aren't built yet.  While ugly, it's
# a lot more robust than what was previously being used.
builtins.__NUMPY_SETUP__ = True

# Needed for backwards code compatibility below and in some CI scripts.
# The version components are changed from ints to strings, but only VERSION
# seems to matter outside of this module and it was already a str.
FULLVERSION = versioneer.get_version()

# Capture the version string:
# 1.22.0.dev0+ ... -> ISRELEASED == False, VERSION == 1.22.0
# 1.22.0rc1+ ... -> ISRELEASED == False, VERSION == 1.22.0
# 1.22.0 ... -> ISRELEASED == True, VERSION == 1.22.0
# 1.22.0rc1 ... -> ISRELEASED == True, VERSION == 1.22.0
ISRELEASED = re.search(r'(dev|\+)', FULLVERSION) is None
_V_MATCH = re.match(r'(\d+)\.(\d+)\.(\d+)', FULLVERSION)
if _V_MATCH is None:
    raise RuntimeError(f'Cannot parse version {FULLVERSION}')
MAJOR, MINOR, MICRO = _V_MATCH.groups()
VERSION = '{}.{}.{}'.format(MAJOR, MINOR, MICRO)

# The first version not in the `Programming Language :: Python :: ...` classifiers above
if sys.version_info >= (3, 11):
Exemplo n.º 34
0
def setup_package():
    # Assemble additional setup commands
    cmdclass = versioneer.get_cmdclass()
    cmdclass['docs'] = sphinx_builder()
    cmdclass['doctest'] = sphinx_builder()
    cmdclass['test'] = Tox
    cmdclass['autodocs'] = ToxAutoDocs

    # Some helper variables
    version = versioneer.get_version()
    docs_path = os.path.join(__location__, "docs")
    docs_build_path = os.path.join(docs_path, "_build")
    install_reqs = get_install_requirements("requirements.txt")
    extra_doc_reqs = get_install_requirements("requirements-doc.txt")

    command_options = {
        'docs': {
            'project': ('setup.py', MAIN_PACKAGE),
            'version': ('setup.py', version.split('-', 1)[0]),
            'release': ('setup.py', version),
            'build_dir': ('setup.py', docs_build_path),
            'config_dir': ('setup.py', docs_path),
            'source_dir': ('setup.py', docs_path)
        },
        'doctest': {
            'project': ('setup.py', MAIN_PACKAGE),
            'version': ('setup.py', version.split('-', 1)[0]),
            'release': ('setup.py', version),
            'build_dir': ('setup.py', docs_build_path),
            'config_dir': ('setup.py', docs_path),
            'source_dir': ('setup.py', docs_path),
            'builder': ('setup.py', 'doctest')
        },
        'test': {
            'test_suite': ('setup.py', 'tests')
        },
    }

    # extensions
    devs_extension = Extension("devs.devs",
                               sources=['devs/devs.pyx'],
                               language='c++',
                               include_dirs=[
                                   'vendor/adevs/include',
                               ],
                               extra_compile_args=[
                                   '--std=c++11',
                               ])

    setup(
        name=MAIN_PACKAGE,
        version=version,
        url=URL,
        description=DESCRIPTION,
        author=AUTHOR,
        author_email=EMAIL,
        license=LICENSE,
        long_description=read('README.rst'),
        classifiers=CLASSIFIERS,
        test_suite='tests',
        packages=setuptools.find_packages(exclude=['tests', 'tests.*']),
        install_requires=install_reqs,
        setup_requires=['six', 'setuptools_git>=1.1'],
        cmdclass=cmdclass,
        tests_require=['tox'],
        command_options=command_options,
        entry_points={'console_scripts': CONSOLE_SCRIPTS},
        extras_require={
            'docs': extra_doc_reqs,
        },
        include_package_data=True,  # include everything in source control
        # but exclude these files
        exclude_package_data={'': ['.gitignore']},
        ext_modules=cythonize(devs_extension,
                              compiler_directives={
                                  'language_level': 3,
                                  'unraisable_tracebacks': True
                              }),
    )
Exemplo n.º 35
0
#!/usr/bin/env python


# Copyright (c) 2019, Moritz E. Beber.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


"""Set up the MetaNetX SDK package."""


import versioneer
from setuptools import setup


# All other arguments are defined in `setup.cfg`.
setup(version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass())
Exemplo n.º 36
0
        'profile': DEV_BUILD,
        'linetrace': DEV_BUILD
    }

    return cythonize(extensions, compiler_directives=directives)


install_requires = [
    'arch >=4.7', 'copulae >=0.4.0', 'numpy >=1.15', 'scipy >=1.1',
    'setuptools >=40.8', 'pandas >=0.23'
]

setup(
    name=PACKAGE_NAME,
    license='MIT',
    version=versioneer.get_version().split('+')[0],
    description=
    'Multiple Univariate ARCH modeling toolbox built on top of the ARCH package',
    author='Daniel Bok',
    author_email='*****@*****.**',
    packages=find_packages(include=['muarch', 'muarch.*']),
    ext_modules=build_ext_modules(),
    url='https://github.com/DanielBok/muarch',
    cmdclass=cmdclass,
    long_description=long_description,
    long_description_content_type='text/markdown',
    classifiers=[
        'Development Status :: 3 - Alpha',
        'Intended Audience :: Education',
        'Intended Audience :: End Users/Desktop',
        'Intended Audience :: Financial and Insurance Industry',
Exemplo n.º 37
0
# vanilla distutils.
try:
    from setuptools.command import sdist
except ImportError:
    pass
else:
    del sdist.sdist.make_release_tree

from distutils.dist import Distribution

import setupext
from setupext import print_line, print_raw, print_message, print_status

# Get the version from versioneer
import versioneer
__version__ = versioneer.get_version()


# These are the packages in the order we want to display them.  This
# list may contain strings to create section headers for the display.
mpl_packages = [
    'Building Matplotlib',
    setupext.Matplotlib(),
    setupext.Python(),
    setupext.Platform(),
    'Required dependencies and extensions',
    setupext.Numpy(),
    setupext.Dateutil(),
    setupext.FuncTools32(),
    setupext.Pytz(),
    setupext.Cycler(),
Exemplo n.º 38
0
from setuptools import setup, find_packages

import versioneer

with open('README.rst', 'r') as fp:
    readme = fp.read()

pkgs = find_packages('src', exclude=['data'])
print('found these packages:', pkgs)

schema_dir = 'data'

setup_args = {
    'name': 'pynwb',
    'version': versioneer.get_version(),
    'cmdclass': versioneer.get_cmdclass(),
    'description': 'Package for working with Neurodata stored in the NWB format',
    'long_description': readme,
    'long_description_content_type': 'text/x-rst; charset=UTF-8',
    'author': 'Andrew Tritt',
    'author_email': '*****@*****.**',
    'url': 'https://github.com/NeurodataWithoutBorders/pynwb',
    'license': "BSD",
    'install_requires':
    [
        'numpy',
        'h5py',
        'ruamel.yaml',
        'python-dateutil',
        'six',
Exemplo n.º 39
0
    raise RuntimeError("Python version is {}. Requires 3.6 or greater."
                       "".format(sys.version_info))


def read(fname):
    with open(Path(__file__).parent / fname) as f:
        result = f.read()
    return result


# Requirements not on PyPI can't be installed through `install_requires`.
# They have to be installed manually or with `pip install -r requirements.txt`.
requirements = [
    r for r in read('requirements.txt').splitlines()
    if not r.startswith('git+https://')
]

setup(
    name='web_monitoring',
    version=versioneer.get_version(),
    cmdclass=versioneer.get_cmdclass(),
    packages=['web_monitoring'],
    package_data={
        'web_monitoring':
        ['example_data/*', 'web_monitoring/tests/cassettes/*']
    },
    scripts=glob.glob('scripts/*'),
    install_requires=requirements,
    long_description=read('README.md'),
)
Exemplo n.º 40
0
 def check(self):
     return versioneer.get_version()
Exemplo n.º 41
0
master_doc = "index"

# General substitutions.
project = "Aesara"
copyright = "PyMC Developers, 2020-2021; 2008--2019, LISA lab"

# The default replacements for |version| and |release|, also used in various
# other places throughout the built documents.
#

# We need this hokey-pokey because versioneer needs the current
# directory to be the root of the project to work.
_curpath = os.getcwd()
os.chdir(os.path.dirname(os.path.dirname(__file__)))
# The full version, including alpha/beta/rc tags.
release = versioneer.get_version()
# The short X.Y version.
version = ".".join(release.split(".")[:2])
os.chdir(_curpath)
del _curpath

# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
# today = ''
# Else, today_fmt is used as the format for a strftime call.
today_fmt = "%B %d, %Y"

# List of documents that shouldn't be included in the build.
# unused_docs = []

# List of directories, relative to source directories, that shouldn't be
Exemplo n.º 42
0
def main():
    with open('README.md') as readme_file:
        readme = readme_file.read()

    extras = {}

    all_deps = []
    for group_name in extras:
        all_deps += extras[group_name]
    extras['all'] = all_deps

    base_libs = [
        'neptune-client>=0.5.1', 'scikit-learn>=0.24.1', 'yellowbrick>=1.3',
        'scikit-plot>=0.3.7'
    ]

    version = None
    if os.path.exists('PKG-INFO'):
        with open('PKG-INFO', 'r') as f:
            lines = f.readlines()
        for line in lines:
            if line.startswith('Version:'):
                version = line[8:].strip()
    else:
        version = versioneer.get_version()

    setup(
        name='neptune-sklearn',
        version=version,
        description='Neptune.ai scikit-learn integration library',
        author='neptune.ai',
        support='*****@*****.**',
        author_email='*****@*****.**',
        # package url management: https://stackoverflow.com/a/56243786/1565454
        url="https://neptune.ai/",
        project_urls={
            'Tracker':
            'https://github.com/neptune-ai/neptune-sklearn/issues',
            'Source':
            'https://github.com/neptune-ai/neptune-sklearn',
            'Documentation':
            'https://docs.neptune.ai/integrations-and-supported-tools/model-training/sklearn',
        },
        long_description=readme,
        long_description_content_type="text/markdown",
        license='Apache License 2.0',
        install_requires=base_libs,
        extras_require=extras,
        packages=find_packages(),
        cmdclass=versioneer.get_cmdclass(),
        zip_safe=False,
        classifiers=[
            # As from http://pypi.python.org/pypi?%3Aaction=list_classifiers
            'Development Status :: 5 - Production/Stable',
            'Environment :: Console',
            'Intended Audience :: Developers',
            'Intended Audience :: Science/Research',
            'License :: OSI Approved :: Apache Software License',
            'Natural Language :: English',
            'Operating System :: MacOS',
            'Operating System :: Microsoft :: Windows',
            'Operating System :: POSIX',
            'Operating System :: Unix',
            'Programming Language :: Python :: 3',
            'Programming Language :: Python :: 3.6',
            'Programming Language :: Python :: 3.7',
            'Programming Language :: Python :: 3.8',
            'Programming Language :: Python :: 3.9',
            'Topic :: Software Development :: Libraries :: Python Modules',
            'Programming Language :: Python :: Implementation :: CPython',
            'Topic :: Scientific/Engineering :: Artificial Intelligence',
        ],
        keywords=[
            'MLOps', 'ML Experiment Tracking', 'ML Model Registry',
            'ML Model Store', 'ML Metadata Store'
        ],
    )
Exemplo n.º 43
0
    # force 64bit only builds
    EXTRA_COMPILE_ARGS.extend(
        ['-arch', 'x86_64', '-mmacosx-version-min=10.7', '-stdlib=libc++'])

if check_for_openmp():
    EXTRA_COMPILE_ARGS.extend(['-fopenmp'])
    EXTRA_LINK_ARGS.extend(['-fopenmp'])

EXTENSION_MOD_DICT = \
    {
        "sources": SOURCES,
        "extra_compile_args": EXTRA_COMPILE_ARGS,
        "extra_link_args": EXTRA_LINK_ARGS,
        "depends": BUILD_DEPENDS,
        "language": "c++",
        "define_macros": [("VERSION", versioneer.get_version()), ],
    }

EXTENSION_MOD = Extension("khmer._khmer", **EXTENSION_MOD_DICT)
SCRIPTS = []
SCRIPTS.extend([
    path_join("scripts", script) for script in os_listdir("scripts")
    if script.endswith(".py")
])

CLASSIFIERS = [
    "Environment :: Console",
    "Environment :: MacOS X",
    "Intended Audience :: Science/Research",
    "License :: OSI Approved :: BSD License",
    "Natural Language :: English",
Exemplo n.º 44
0
# Copyright (c) 2008,2010,2015,2016 MetPy Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
"""Setup script for installing MetPy."""

from __future__ import print_function

from setuptools import find_packages, setup
import versioneer

ver = versioneer.get_version()

setup(
    name='MetPy',
    version=ver,
    description='Collection of tools for reading, visualizing and'
    'performing calculations with weather data.',
    long_description='The space MetPy aims for is GEMPAK '
    '(and maybe NCL)-like functionality, in a way that '
    'plugs easily into the existing scientific Python '
    'ecosystem (numpy, scipy, matplotlib).',
    url='http://github.com/Unidata/MetPy',
    author='Ryan May, Patrick Marsh, Sean Arms, Eric Bruning',
    author_email='*****@*****.**',
    maintainer='MetPy Developers',
    maintainer_email='*****@*****.**',
    license='BSD',
    classifiers=[
        'Development Status :: 4 - Beta',
        'Programming Language :: Python :: 2',
        'Programming Language :: Python :: 2.7',
Exemplo n.º 45
0
def setup_package():
    # get all file endings and copy whole file names without a file suffix
    # assumes nested directories are only down one level
    _groups_files = {
        "base": "requirements.txt",
        "plus_conda": "requirements_plus_conda.txt",
        "plus_pip": "requirements_plus_pip.txt",
        "dev": "requirements_dev.txt",
        "docs": "requirements_docs.txt",
    }

    reqs = _get_requirements_from_files(_groups_files)
    install_reqs = reqs.pop("base")
    extras_reqs = reqs

    # get all file endings and copy whole file names without a file suffix
    # assumes nested directories are only down one level
    example_data_files = set()
    for i in os.listdir("libpysal/examples"):
        if i.endswith(("py", "pyc")):
            continue
        if not os.path.isdir("libpysal/examples/" + i):
            if "." in i:
                glob_name = "examples/*." + i.split(".")[-1]
            else:
                glob_name = "examples/" + i
        else:
            glob_name = "examples/" + i + "/*"

        example_data_files.add(glob_name)

    setup(
        name="libpysal",
        version=versioneer.get_version(),
        description=
        "Core components of PySAL A library of spatial analysis functions.",
        long_description=long_description,
        long_description_content_type="text/x-rst",
        maintainer="PySAL Developers",
        maintainer_email="*****@*****.**",
        url="http://pysal.org/libpysal",
        download_url="https://pypi.python.org/pypi/libpysal",
        license="BSD",
        py_modules=["libpysal"],
        packages=find_packages(),
        setup_requires=["pytest-runner"],
        tests_require=["pytest"],
        keywords="spatial statistics",
        classifiers=[
            "Development Status :: 5 - Production/Stable",
            "Intended Audience :: Science/Research",
            "Intended Audience :: Developers",
            "Intended Audience :: Education",
            "Topic :: Scientific/Engineering",
            "Topic :: Scientific/Engineering :: GIS",
            "License :: OSI Approved :: BSD License",
            "Programming Language :: Python",
            "Programming Language :: Python :: 3.7",
            "Programming Language :: Python :: 3.8",
            "Programming Language :: Python :: 3.9",
            "Programming Language :: Python :: 3.10",
        ],
        package_data={"libpysal": list(example_data_files)},
        install_requires=install_reqs,
        extras_require=extras_reqs,
        cmdclass=versioneer.get_cmdclass({"build_py": build_py}),
        python_requires=">=3.7",
    )
Exemplo n.º 46
0
def setup_package():
    src_path = os.path.dirname(os.path.abspath(__file__))
    old_path = os.getcwd()
    os.chdir(src_path)
    sys.path.insert(0, src_path)

    # The f2py scripts that will be installed
    if sys.platform == 'win32':
        f2py_cmds = [
            'f2py = numpy.f2py.f2py2e:main',
        ]
    else:
        f2py_cmds = [
            'f2py = numpy.f2py.f2py2e:main',
            'f2py%s = numpy.f2py.f2py2e:main' % sys.version_info[:1],
            'f2py%s.%s = numpy.f2py.f2py2e:main' % sys.version_info[:2],
        ]

    cmdclass["sdist"] = sdist_checked
    metadata = dict(
        name='numpy',
        maintainer="NumPy Developers",
        maintainer_email="*****@*****.**",
        description=DOCLINES[0],
        long_description="\n".join(DOCLINES[2:]),
        url="https://www.numpy.org",
        author="Travis E. Oliphant et al.",
        download_url="https://pypi.python.org/pypi/numpy",
        project_urls={
            "Bug Tracker": "https://github.com/numpy/numpy/issues",
            "Documentation": get_docs_url(),
            "Source Code": "https://github.com/numpy/numpy",
        },
        license='BSD',
        classifiers=[_f for _f in CLASSIFIERS.split('\n') if _f],
        platforms=["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
        test_suite='pytest',
        version=versioneer.get_version(),
        cmdclass=cmdclass,
        python_requires='>=3.8',
        zip_safe=False,
        entry_points={
            'console_scripts': f2py_cmds,
            'array_api': ['numpy = numpy.array_api'],
            'pyinstaller40': ['hook-dirs = numpy:_pyinstaller_hooks_dir'],
        },
    )

    if "--force" in sys.argv:
        run_build = True
        sys.argv.remove('--force')
    else:
        # Raise errors for unsupported commands, improve help output, etc.
        run_build = parse_setuppy_commands()

    if run_build:
        # patches distutils, even though we don't use it
        #from setuptools import setup
        from numpy.distutils.core import setup

        if 'sdist' not in sys.argv:
            # Generate Cython sources, unless we're generating an sdist
            generate_cython()

        metadata['configuration'] = configuration
        # Customize extension building
        cmdclass['build_clib'], cmdclass['build_ext'] = get_build_overrides()
    else:
        #from numpy.distutils.core import setup
        from setuptools import setup

    try:
        setup(**metadata)
    finally:
        del sys.path[0]
        os.chdir(old_path)
    return
Exemplo n.º 47
0
    buf = []
    for filename in filenames:
        with io.open(filename, encoding=encoding) as f:
            buf.append(f.read())
    return sep.join(buf)


long_description = read_rst('README.rst')

cmdclass = versioneer.get_cmdclass()  # @UndefinedVariable
if has_sphinx:
    cmdclass['build_sphinx'] = BuildDoc

setup(
    name = "cytoflow",
    version = versioneer.get_version(),  # @UndefinedVariable
    packages = find_packages(exclude = ["packaging", "packaging.qt"]),
    cmdclass = cmdclass,

    # Project uses reStructuredText, so ensure that the docutils get
    # installed or upgraded on the target machine
    install_requires = ['numpy==1.18.1',
                        'pandas==1.0.3',
                        'matplotlib==3.1.3',
                        'bottleneck==1.3.2',
                        'numexpr==2.7.1',
                        'scipy==1.4.1',
                        'scikit-learn==0.22.1',
                        'seaborn==0.10.0',
                        'statsmodels==0.11.0',
Exemplo n.º 48
0
def run_setup(binary: bool = True) -> None:
    if not binary:
        extensions = []
    else:
        directives = {"linetrace": CYTHON_COVERAGE}
        macros = [("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")]
        if CYTHON_COVERAGE:
            macros.append(("CYTHON_TRACE", "1"))

        ext_modules = []
        ext_modules.append(
            Extension(
                "arch.univariate.recursions",
                ["./arch/univariate/recursions.pyx"],
                define_macros=macros,
            ))
        ext_modules.append(
            Extension(
                "arch.bootstrap._samplers",
                ["./arch/bootstrap/_samplers.pyx"],
                define_macros=macros,
            ))
        extensions = cythonize(ext_modules,
                               force=CYTHON_COVERAGE,
                               compiler_directives=directives)

    setup(
        name="arch",
        license="NCSA",
        version=versioneer.get_version(),
        description="ARCH for Python",
        long_description=description,
        long_description_content_type="text/markdown",
        author="Kevin Sheppard",
        author_email="*****@*****.**",
        url="https://github.com/bashtage/arch",
        packages=find_packages(),
        ext_modules=extensions,
        package_dir={"arch": "./arch"},
        cmdclass=cmdclass,
        keywords=[
            "arch",
            "ARCH",
            "variance",
            "econometrics",
            "volatility",
            "finance",
            "GARCH",
            "bootstrap",
            "random walk",
            "unit root",
            "Dickey Fuller",
            "time series",
            "confidence intervals",
            "multiple comparisons",
            "Reality Check",
            "SPA",
            "StepM",
        ],
        zip_safe=False,
        include_package_data=False,
        package_data=package_data,
        distclass=BinaryDistribution,
        classifiers=[
            "Development Status :: 5 - Production/Stable",
            "Intended Audience :: End Users/Desktop",
            "Intended Audience :: Financial and Insurance Industry",
            "Programming Language :: Python :: 3.7",
            "Programming Language :: Python :: 3.8",
            "Programming Language :: Python :: 3.9",
            "License :: OSI Approved",
            "Operating System :: MacOS :: MacOS X",
            "Operating System :: Microsoft :: Windows",
            "Operating System :: POSIX",
            "Programming Language :: Python",
            "Programming Language :: Cython",
            "Topic :: Scientific/Engineering",
        ],
        install_requires=[
            key + ">=" + INSTALL_REQUIREMENTS[key]
            for key in INSTALL_REQUIREMENTS
        ],
        setup_requires=[
            key + ">=" + SETUP_REQUIREMENTS[key] for key in SETUP_REQUIREMENTS
        ],
        python_requires=">=3.7",
    )