Example #1
0
def find_packages(where='blaze', exclude=('ez_setup', 'distribute_setup'),
                  predicate=ispackage):
    if sys.version_info[0] == 3:
        exclude += ('*py2only*', '*__pycache__*')

    func = lambda x: predicate(x) and not any(fnmatch(x, exc)
                                              for exc in exclude)
    return list(filter(func, [x[0] for x in os.walk(convert_path(where))]))
Example #2
0
def update_version_file():
    try:
        version_git = get_version_from_git()
        version_file = get_version_from_file()
        if version_git == version_file:
            return
    except (GitDescribeError, IOError):
        pass

    version = get_version()
    f = open(convert_path("trep/__version__.py"), "wt")
    f.write(VERSION_PY % version)
    f.close()
    return version
Example #3
0
def find_package_tree(root_path, root_package):
    """
    Returns the package and all its sub-packages.

    Automated package discovery - extracted/modified from Distutils Cookbook:
    http://wiki.python.org/moin/Distutils/Cookbook/AutoPackageDiscovery

    """
    packages = [root_package]
    # Accept a root_path with Linux path separators.
    root_path = root_path.replace('/', os.path.sep)
    root_count = len(root_path.split(os.path.sep))
    for (dir_path, dir_names, _) in os.walk(convert_path(root_path)):
        # Prune dir_names *in-place* to prevent unwanted directory recursion
        for dir_name in list(dir_names):
            if not os.path.isfile(os.path.join(dir_path, dir_name, '__init__.py')):
                dir_names.remove(dir_name)
        if dir_names:
            prefix = dir_path.split(os.path.sep)[root_count:]
            packages.extend(['.'.join([root_package] + prefix + [dir_name]) for dir_name in dir_names])
    return packages
Example #4
0
def _find_packages(where='.', exclude=()):
    """Return a list all Python packages found within directory 'where'

    'where' should be supplied as a "cross-platform" (i.e. URL-style) path; it
    will be converted to the appropriate local path syntax.  'exclude' is a
    sequence of package names to exclude; '*' can be used as a wildcard in the
    names, such that 'foo.*' will exclude all subpackages of 'foo' (but not
    'foo' itself).
    """
    out = []
    stack = [(convert_path(where), '')]
    while stack:
        where, prefix = stack.pop(0)
        for name in os.listdir(where):
            fn = os.path.join(where, name)
            if ('.' not in name and os.path.isdir(fn) and
                    os.path.isfile(os.path.join(fn, '__init__.py'))):
                out.append(prefix + name)
                stack.append((fn, prefix + name + '.'))
    for pat in list(exclude) + ['ez_setup', 'distribute_setup']:
        from fnmatch import fnmatchcase
        out = [item for item in out if not fnmatchcase(item, pat)]
    return out
Example #5
0
from setuptools import setup, convert_path

main_ns = {}
with open(convert_path("pythonhere/version_here.py")) as ver_file:
    exec(ver_file.read(), main_ns)
    version = main_ns["__version__"]

with open(convert_path("README.rst")) as readme_file:
    long_description = readme_file.read()

setup(
    name="pythonhere",
    version=main_ns["__version__"],
    packages=[
        "pythonhere",
        "pythonhere.magic_here",
        "pythonhere.ui_here",
    ],
    description=
    "Here is the Kivy based app to run code from the Jupyter magic %there",
    long_description=long_description,
    long_description_content_type="text/x-rst",
    author="b3b",
    author_email="*****@*****.**",
    install_requires=[
        "kivy>=2.0.0",
        "herethere>=0.1.0,<0.2.0",
        "ifaddr",
        "ipython",
        "ipywidgets",
        "nest_asyncio",
Example #6
0
#!/usr/bin/env python
import os, sys, shutil
from subprocess import Popen
from setuptools import setup, find_packages, convert_path

# Set up app name and other info
NAME    = "EyeBreak"
script  = "bin/EyeBreak"
require = ["PyQt5"]
if sys.platform == 'darwin': require.append( 'pyinstaller' )

main_ns = {}
ver_path = convert_path( os.path.join( NAME, 'version.py' ) )
with open(ver_path, 'r') as ver_file:
  exec( ver_file.read(), main_ns )

def darwin_install():
  topdir = os.path.dirname(os.path.realpath(__file__))
  blddir = "/tmp/2020_build"
  wrkdir = os.path.join( blddir, "work" )
  dstdir = os.path.join( blddir, "dist" )
  icndir = os.path.join( topdir, "icons.iconset" )
  appdir = os.path.join( os.path.expanduser("~"), "Applications" )
  src    = os.path.join( dstdir, "{}.app".format(NAME) )
  dst    = os.path.join( appdir, "{}.app".format(NAME) )
  icon   = os.path.join( blddir, "icons.icns" )
  if not os.path.isdir(wrkdir): os.makedirs( wrkdir )
  if not os.path.isdir(dstdir): os.makedirs( dstdir )
  cmd  = ["iconutil", "-c", "icns", "-o", icon, icndir]
  proc = Popen( cmd )
  proc.communicate( )
Example #7
0
        return


############################################################
# Describing CK setup
r = setup(
    name='ck',
    version=current_version,
    url='https://github.com/ctuning/ck',
    license='BSD 3-clause',
    author='Grigori Fursin',
    author_email='*****@*****.**',
    description=
    'Collective Knowledge - a lightweight knowledge manager to organize, cross-link, share and reuse artifacts and workflows',
    long_description=open(convert_path('./README.md'),
                          encoding="utf-8").read(),
    long_description_content_type="text/markdown",
    packages=['ck'],
    package_dir={'ck': 'ck'},
    zip_safe=False,
    package_data={
        'ck': [
            'repo/.ck*', 'repo/.cm/*', 'repo/kernel/.cm/*',
            'repo/kernel/default/*', 'repo/kernel/default/.cm/*',
            'repo/module/.cm/*', 'repo/module/all/*.py',
            'repo/module/all/.cm/*', 'repo/module/demo/*.py',
            'repo/module/demo/.cm/*', 'repo/module/index/*.py',
            'repo/module/index/.cm/*', 'repo/module/kernel/*.py',
            'repo/module/kernel/.cm/*', 'repo/module/kernel/test/test*.py',
            'repo/module/module/*.py', 'repo/module/module/*.input',
Example #8
0
def get_version():
  ver_path = convert_path('pistarlab_landia/pistarlab_extension..py')
  with open(ver_path) as ver_file:
      exec(ver_file.read(), main_ns)
Example #9
0
import os
from os.path import dirname
from setuptools import setup, convert_path
from setuptools.command.install import install


main_ns = {}
with open(convert_path('able/version.py')) as ver_file:
    exec(ver_file.read(), main_ns)

with open(convert_path('README.rst')) as readme_file:
    long_description = readme_file.read()


class InstallRecipe(install):
    """Command to install `able` recipe,
    copies Java files to distribution `javaclass` directory."""

    def run(self):
        if 'ANDROIDAPI' not in os.environ:
            raise Exception(
                'This recipe should not be installed directly, '
                'only with the buildozer tool.'
            )

        # Find Java classes target directory from the environment
        distribution_dir = os.environ['PYTHONPATH'].split(':')[-1]
        distribution_name = distribution_dir.split('/')[-1]
        javaclass_dir = os.path.join(
            dirname(dirname(distribution_dir)),
            'javaclasses'
Example #10
0
import setuptools

app_name = "steamscraper"

with open("README.md") as fp:
    long_description = fp.read()

main_ns = {}
ver_path = setuptools.convert_path(f'{app_name}/version.py')
with open(ver_path) as ver_file:
    exec(ver_file.read(), main_ns)

setuptools.setup(
    name=app_name,
    version=main_ns['__version__'],
    description=
    "Extract all subscribed Steam Workshop mods for Ark Survival Evolved",
    long_description=long_description,
    long_description_content_type="text/markdown",
    author="Michael Hoffmann",
    author_email="*****@*****.**",
    packages=setuptools.find_packages(),
    install_requires=[
        'bs4',
        'steam',
    ],
    entry_points={'console_scripts': [f'{app_name}={app_name}.main:main']},
    python_requires=">=3.6",
    classifiers=[
        "Development Status :: 4 - Beta",
        "Intended Audience :: Developers",
Example #11
0
if SETUPTOOLS_USED:
    setup_kwargs['project_urls'] = {
        'Bug Reports': 'https://github.com/Nandaka/PixivUtil2/issues',
        'Funding': 'https://bit.ly/PixivUtilDonation',
        'Source': 'https://github.com/Nandaka/PixivUtil2',
    }

# get install_requires
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'requirements.txt')) as f:
    install_requires = f.read().split('\n')
install_requires = [x.strip() for x in install_requires]
# get program version
main_ns = {}
ver_path = convert_path('PixivConstant.py')
with open(ver_path) as ver_file:
    exec(ver_file.read(), main_ns)
version = main_ns['PIXIVUTIL_VERSION']
v_parts = version.split('-', 1)
main_version = '{0}.{1}.{2}'.format(v_parts[0][0:4], int(v_parts[0][4:6]), int(v_parts[0][6:7]))
if '-' in version:
    version = main_version + '.{}'.format(v_parts[1])
else:
    version = main_version
# get long_description
readme_path = convert_path('readme.txt')
with open(readme_path) as readme_file:
    long_description = readme_file.read()

setup(
Example #12
0
from sys import argv, exit
from json import dumps
from setuptools import setup, find_packages, convert_path

# Requirements for am1bcc_charge
requirements = [
    "OpenEye-orionplatform==2.3.0",
]

if argv[-1] == "--requires":
    print(dumps(requirements))
    exit()

# Obtain version of the package
_version_re = compile(r"__version__\s+=\s+(.*)")
version_file = convert_path("./am1bcc_charge/__init__.py")
with open(version_file, "rb") as f:
    version = str(
        literal_eval(_version_re.search(f.read().decode("utf-8")).group(1)))

setup(
    name="am1bcc_charge",
    version=version,
    packages=find_packages(exclude=["tests/*", "floes/*"]),
    author="Yuanqing Wang",
    author_email="*****@*****.**",
    description="charge using openeye quacpac",
    license="Other/Proprietary License",
    keywords="openeye cloud orion",
    include_package_data=True,
    install_requires=requirements,
Example #13
0
#!/usr/bin/env python
from setuptools import convert_path, setup, find_packages

version = {}
version_path = convert_path('defisdk/version.py')
with open(version_path) as f:
    exec(f.read(), version)

with open("README.md", "r") as fh:
    long_description = fh.read()

setup(
    name='defisdk',
    version=version['__version__'],
    author='Alex Bash',
    author_email='*****@*****.**',
    description='DeFiSDK.py',
    long_description=long_description,
    long_description_content_type="text/markdown",
    url='https://github.com/zeriontech/defi-sdk-py',
    packages=find_packages(),
    install_requires=[
        'aiohttp==3.7.3',
        'furl==2.1.0',
        'pysha3==1.0.2',
    ],
    python_requires='>=3.7',
)
Example #14
0
if SETUPTOOLS_USED:
    setup_kwargs['project_urls'] = {
        'Bug Reports': 'https://github.com/Nandaka/PixivUtil2/issues',
        'Funding': 'https://bit.ly/PixivUtilDonation',
        'Source': 'https://github.com/Nandaka/PixivUtil2',
    }

# get install_requires
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'requirements.txt')) as f:
    install_requires = f.read().split('\n')
install_requires = [x.strip() for x in install_requires]

# get long_description
readme_path = convert_path('readme.md')
with open(readme_path) as readme_file:
    long_description = readme_file.read()

setup(
    name='PixivUtil2',  # Required
    version=get_version(),
    description='Download images from Pixiv and more',
    long_description=long_description,
    url='https://github.com/Nandaka/PixivUtil2',
    author='Nandaka',
    # author_email='<>@<>.com',
    classifiers=[  # Optional
        'Development Status :: 5 - Production/Stable',
        'Environment :: Console',
        'License :: OSI Approved :: MIT License',
Example #15
0
                     ],
})

extensions = [
    Extension('lpsmap.ad3qp.factor_graph', ["lpsmap/ad3qp/factor_graph.pyx"]),
    Extension('lpsmap.ad3qp.base', ["lpsmap/ad3qp/base.pyx"]),
    Extension('lpsmap.ad3ext.sequence',
              ["lpsmap/ad3ext/sequence.pyx"]),
    Extension('lpsmap.ad3ext.tree',
              ["lpsmap/ad3ext/tree.pyx",
               "lpsmap/ad3ext/DependencyDecoder.cpp"]),
]

# read version information
version_ns = {}
with open(convert_path('lpsmap/version.py')) as f:
    exec(f.read(), version_ns)

setup(name='lp-sparsemap',
      version=version_ns['__version__'],
      libraries=[libad3],
      author="Vlad Niculae",
      author_email="*****@*****.**",
      url="https://github.com/deep-spin/lp-sparsemap",
      packages=find_packages(),
      install_requires=["numpy>=1.14.6"],
      extras_require={'torch': 'torch>=1.8.1'},
      package_data={'lpsmap': ['ad3qp/*.pxd', 'core/lib/*', 'core/include/ad3/*']},
      cmdclass=cmdclass,
      include_package_data=True,
      ext_modules=cythonize(extensions)
Example #16
0
from setuptools import setup, convert_path

main_ns = {}
with open(convert_path('restmagic/version.py')) as ver_file:
    exec(ver_file.read(), main_ns)

with open(convert_path('README.rst')) as readme_file:
    long_description = readme_file.read()

setup(
    name='restmagic',
    version=main_ns['__version__'],
    packages=['restmagic'],
    description='HTTP REST magic for IPython',
    long_description=long_description,
    long_description_content_type='text/x-rst',
    author='b3b',
    author_email='*****@*****.**',
    install_requires=[
        'ipython>=1.0',
        'requests-toolbelt>=0.8.0',
        'jsonpath-rw>=1.4.0',
        'lxml>=4.4.0',
    ],
    url='https://github.com/b3b/ipython-restmagic',
    project_urls={
        'Changelog':
        'https://github.com/b3b/ipython-restmagic/blob/master/CHANGELOG.rst',
        'Examples':
        ('https://nbviewer.jupyter.org/github/b3b/ipython-restmagic/tree/master/examples/'
         ),
Example #17
0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Jan 24 13:31:40 2021

@author: chris
"""

import setuptools

# this is the right way to import version.py here:
main_ns = {}
fname_version = setuptools.convert_path("tablarray/version.py")
with open(fname_version) as vf:
    exec(vf.read(), main_ns)
fname_readme = setuptools.convert_path("README.rst")
with open(fname_readme) as rf:
    README = rf.read()

setuptools.setup(
    name='tablarray',
    version=main_ns['__version__'],
    author="Chris Cannon",
    author_email='*****@*****.**',
    description='Extend broadcasting rules of numpy to abstract tabular'
    'shape of data from cellular shape',
    long_description=README,
    long_description_content_type='text/x-rst',
    license='BSD',
    url='https://github.com/chriscannon9001/tablarray',
    packages=setuptools.find_packages(include=[
Example #18
0
def load_package_meta():
    meta_path = convert_path('./sirbot/core/__meta__.py')
    meta_ns = {}
    with open(meta_path) as f:
        exec(f.read(), meta_ns)
    return meta_ns['DATA']
Example #19
0
            % namespace_package,
            'generate_brain_connectivity_cluster_file=%s.brain_connectivity.utils.generate_processing:main_generate_cluster_file'
            % namespace_package,
        ],
    }
    additional_setup_args["install_requires"] = ['numpy']
    additional_setup_args["zip_safe"] = False

else:
    # we create two helper scripts for generating the plugin XML file
    # if we are here, it means we are using distutils and setuptools is not available, and we cannot be in
    # a virtual environment.
    additional_setup_args["scripts"] = [
        'scripts/generate_brain_connectivity_plugin',
        'scripts/brain_connectivity_plugin_generator_wrapper.py'
    ]

setup(name="brain-connectivity-visualization",
      version=_get_version(),
      packages=packages,
      package_dir=package_dir,
      author='Lennart Bramlage, Raffi Enficiaud',
      author_email='*****@*****.**',
      maintainer='Raffi Enficiaud',
      maintainer_email='*****@*****.**',
      url='https://is.tuebingen.mpg.de/software-workshop',
      description='Brain fMRI connectivity visualization plugin for Paraview',
      long_description=open(convert_path('README.md')).read(),
      license='MIT',
      **additional_setup_args)
Example #20
0
from setuptools import setup, convert_path

main_ns = {}
ver_path = convert_path('able/version.py')
with open(ver_path) as ver_file:
    exec(ver_file.read(), main_ns)


setup(
    name='able',
    version=main_ns['__version__'],
    packages=['able', 'able.android'],
    description='Bluetooth Low Energy for Android',
    license='MIT',
)
Example #21
0
from setuptools import setup, convert_path

# read the contents of your README file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
    long_description = f.read()

print(convert_path('/performance'))
if __name__ == '__main__':
    setup(name="girth",
          packages=['girth', 'girth.performance'],
          package_dir={
              'girth': 'girth',
              'girth.performance': convert_path('./performance')
          },
          version="0.2",
          license="MIT",
          description="A python package for Item Response Theory.",
          long_description=long_description.replace('<ins>',
                                                    '').replace('</ins>', ''),
          long_description_content_type='text/markdown',
          author='Ryan C. Sanchez',
          author_email='*****@*****.**',
          url='https://eribean.github.io/girth/',
          download_url='https://github.com/eribean/girth/archive/0.2.tar.gz',
          keywords=['IRT', 'Psychometrics', 'Item Response Theory'],
          install_requires=['numpy', 'scipy'],
          classifiers=[
              'Development Status :: 3 - Alpha',
              'Intended Audience :: Science/Research',
Example #22
0
    version = output.group(1)

############################################################
setup(
    name='connectme',

    author="Grigori Fursin",
    author_email="*****@*****.**",

    version=version,

    description="ConnectME",

    license="Apache 2.0",

    long_description=open(convert_path('./README.md'), encoding="utf-8").read(),
    long_description_content_type="text/markdown",

    url="https://gfursin.github.io/connectme",

    python_requires="", # do not force for testing

    packages=find_packages(exclude=["tests*", "docs*"]),

    include_package_data=True,

    install_requires=[
    ],

    entry_points={"console_scripts": [
                      "connectme = connectme.cli:run",
Example #23
0
def _clean_orion_package_files(reqs_filename="orion-requirements.txt"):
    # Create the Orion packaging files
    reqs_path = convert_path("./{}".format(reqs_filename))
    if os.path.isfile(reqs_path):
        os.remove(reqs_path)
Example #24
0
def _version():
    ns = {}
    with open(convert_path("chatbot_dm/version.py"), "r") as fh:
        exec(fh.read(), ns)
    return ns['__version__']
Example #25
0
def _version():
    ns = {}
    with open(convert_path("params_flow/version.py"), "r") as fh:
        exec(fh.read(), ns)
    return ns['__version__']
Example #26
0
def find_package_data(
    where='.', package='',
    exclude=standard_exclude,
    exclude_directories=standard_exclude_directories,
    only_in_packages=True,
        show_ignored=False):
    """
    Return a dictionary suitable for use in ``package_data``
    in a distutils ``setup.py`` file.

    The dictionary looks like::

        {'package': [files]}

    Where ``files`` is a list of all the files in that package that
    don't match anything in ``exclude``.

    If ``only_in_packages`` is true, then top-level directories that
    are not packages won't be included (but directories under packages
    will).

    Directories matching any pattern in ``exclude_directories`` will
    be ignored; by default directories with leading ``.``, ``CVS``,
    and ``_darcs`` will be ignored.

    If ``show_ignored`` is true, then all the files that aren't
    included in package data are shown on stderr (for debugging
    purposes).

    Note patterns use wildcards, or can be exact paths (including
    leading ``./``), and all searching is case-insensitive.
    """

    out = {}
    stack = [(convert_path(where), '', package, only_in_packages)]
    while stack:
        where, prefix, package, only_in_packages = stack.pop(0)
        for name in os.listdir(where):
            fn = os.path.join(where, name)
            if os.path.isdir(fn):
                bad_name = False
                for pattern in exclude_directories:
                    if (fnmatchcase(name, pattern)
                            or fn.lower() == pattern.lower()):
                        bad_name = True
                        if show_ignored:
                            print >> sys.stderr, (
                                "Directory %s ignored by pattern %s"
                                % (fn, pattern))
                        break
                if bad_name:
                    continue
                if (os.path.isfile(os.path.join(fn, '__init__.py'))
                        and not prefix):
                    if not package:
                        new_package = name
                    else:
                        new_package = package + '.' + name
                    stack.append((fn, '', new_package, False))
                else:
                    stack.append((fn, prefix + name + '/',
                                  package, only_in_packages))
            elif package or not only_in_packages:
                # is a file
                bad_name = False
                for pattern in exclude:
                    if (fnmatchcase(name, pattern)
                            or fn.lower() == pattern.lower()):
                        bad_name = True
                        if show_ignored:
                            print >> sys.stderr, (
                                "File %s ignored by pattern %s"
                                % (fn, pattern))
                        break
                if bad_name:
                    continue
                out.setdefault(package, []).append(prefix + name)
    return out
Example #27
0
from setuptools import setup, convert_path

main_ns = {}
with open(convert_path("herethere/herethere_version.py")) as ver_file:
    exec(ver_file.read(), main_ns)
    version = main_ns["__version__"]

with open(convert_path("README.rst")) as readme_file:
    long_description = readme_file.read()

setup(
    name="herethere",
    version=main_ns["__version__"],
    packages=[
        "herethere",
        "herethere.everywhere",
        "herethere.here",
        "herethere.magic",
        "herethere.there",
        "herethere.there.commands",
    ],
    description="herethere",
    long_description=long_description,
    long_description_content_type="text/x-rst",
    author="b3b",
    author_email="*****@*****.**",
    install_requires=[
        "asyncssh",
        "click",
        "python-dotenv",
    ],
Example #28
0
def find_package_data(where=".",
                      package="",
                      exclude=standard_exclude,
                      exclude_directories=standard_exclude_directories,
                      only_in_packages=True,
                      show_ignored=False):
    """
    Return a dictionary suitable for use in ``package_data``
    in a distutils ``setup.py`` file.

    The dictionary looks like::

        {"package": [files]}

    Where ``files`` is a list of all the files in that package that
    don't match anything in ``exclude``.

    If ``only_in_packages`` is true, then top-level directories that
    are not packages won't be included (but directories under packages
    will).

    Directories matching any pattern in ``exclude_directories`` will
    be ignored; by default directories with leading ``.``, ``CVS``,
    and ``_darcs`` will be ignored.

    If ``show_ignored`` is true, then all the files that aren't
    included in package data are shown on stderr (for debugging
    purposes).

    Note patterns use wildcards, or can be exact paths (including
    leading ``./``), and all searching is case-insensitive.
    """

    out = {}
    stack = [(convert_path(where), "", package, only_in_packages)]
    while stack:
        where, prefix, package, only_in_packages = stack.pop(0)
        for name in os.listdir(where):
            fn = os.path.join(where, name)
            if os.path.isdir(fn):
                bad_name = False
                for pattern in exclude_directories:
                    if (fnmatchcase(name, pattern)
                            or fn.lower() == pattern.lower()):
                        bad_name = True
                        if show_ignored:
                            print >> sys.stderr, (
                                "Directory %s ignored by pattern %s" %
                                (fn, pattern))
                        break
                if bad_name:
                    continue
                if (os.path.isfile(os.path.join(fn, "__init__.py"))
                        and not prefix):
                    if not package:
                        new_package = name
                    else:
                        new_package = package + "." + name
                    stack.append((fn, "", new_package, False))
                else:
                    stack.append(
                        (fn, prefix + name + "/", package, only_in_packages))
            elif package or not only_in_packages:
                # is a file
                bad_name = False
                for pattern in exclude:
                    if (fnmatchcase(name, pattern)
                            or fn.lower() == pattern.lower()):
                        bad_name = True
                        if show_ignored:
                            print >> sys.stderr, (
                                "File %s ignored by pattern %s" %
                                (fn, pattern))
                        break
                if bad_name:
                    continue
                out.setdefault(package, []).append(prefix + name)
    return out
Example #29
0
from setuptools import setup, convert_path

# read the contents of your README file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
    long_description = f.read()

print(convert_path('/performance'))
if __name__ == '__main__':
    setup(name="BeeGen",
          packages=['beegen'],
          package_dir={'beegen': 'beegen'},
          version="0.2",
          license="MIT",
          description="A python package for Behavioral Genetics.",
          long_description=long_description.replace('<ins>',
                                                    '').replace('</ins>', ''),
          long_description_content_type='text/markdown',
          author='Ryan C. Sanchez',
          author_email='*****@*****.**',
          keywords=['BeeGen', 'Behavioral Genetics'],
          install_requires=['numpy', 'scipy'],
          classifiers=[
              'Development Status :: 3 - Alpha',
              'Intended Audience :: Science/Research',
              'Topic :: Scientific/Engineering',
              'License :: OSI Approved :: MIT License',
              'Programming Language :: Python :: 3.6',
              'Programming Language :: Python :: 3.7',
              'Programming Language :: Python :: 3.8'
Example #30
0
#!/usr/bin/env python
import os, shutil, importlib
from setuptools import setup, find_packages, convert_path
from setuptools.command.install import install

NAME = "video_utils"
DESC = "Package for transcoding video files to h264/h265 codec"

main_ns = {}
ver_path = convert_path("{}/version.py".format(NAME))
with open(ver_path) as ver_file:
    exec(ver_file.read(), main_ns)


def copyConfig():
    home = os.path.expanduser('~')
    pkg = importlib.import_module(NAME)
    src = os.path.join(pkg.DATADIR, 'settings.yml')
    dst = os.path.join(home, '.{}.yml'.format(NAME))
    if os.path.isfile(dst):
        if os.stat(dst).st_size > 0:
            return
    shutil.copy(src, dst)


class PostInstallCommand(install):
    """
  Post-installation for installation mode.
  Taken from https://stackoverflow.com/questions/20288711/post-install-script-w
  """
    def run(self):
Example #31
0

def get_reqs(reqs):
    return [str(ir.req) for ir in reqs]


requirements = get_reqs(
    parse_requirements("orion-requirements.txt", session=PipSession()))

if argv[-1] == "--requires":
    print(dumps(requirements))
    exit()

# Obtain version of the package
_version_re = compile(r"__version__\s+=\s+(.*)")
version_file = convert_path("./cubes/__init__.py")
with open(version_file, "rb") as f:
    version = str(
        literal_eval(_version_re.search(f.read().decode("utf-8")).group(1)))

setup(
    name="perses-orion",
    version=version,
    packages=find_packages(exclude=["tests/*", "floes/*"]),
    author="John D. Chodera",
    author_email="*****@*****.**",
    description=
    "Relative alchemical free energy calculations with perses on Orion",
    license="Other/Proprietary License",
    keywords="openeye cloud orion",
    include_package_data=True,
Example #32
0
import sys
import imp

############################################################
from setuptools import find_packages, setup, convert_path

############################################################
# Version
version = imp.load_source('codereef.__init__',
                          os.path.join('codereef', '__init__.py')).__version__

# Default portal
portal_url = 'https://codereef.ai/portal'

# Read description (TBD: should add short description!)
with open(convert_path('./README.md')) as f:
    long_readme = f.read()

# Package description
setup(
    name='codereef',
    author="Grigori Fursin",
    author_email="*****@*****.**",
    version=version,
    description="CodeReef client to deal with portable workflows",
    license="Apache Software License (Apache 2.0)",
    long_description_content_type='text/markdown',
    long_description=long_readme,
    url=portal_url,
    python_requires=">=2.7",
    packages=find_packages(exclude=["tests*", "docs*"]),
Example #33
0
#!/usr/bin/env python3

import os
from setuptools import setup, convert_path

embypy_objs = convert_path('embypy/objects')
embypy_utils = convert_path('embypy/utils')


def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()


with open('requirements.txt', 'r') as f:
    requirements = f.readlines()

setup(
    name='EmbyPy',
    version='0.4.4.0',
    author='Andriy Zasypkin',
    author_email='*****@*****.**',
    description='Python API wrapper for Emby Media Browser',
    long_description=read('README.md'),
    license='LGPLv3',
    keywords='Emby MediaBrowser API',
    url='https://pypi.org/project/EmbyPy/',
    package_dir={
        'embypy': 'embypy',
        'embypy.utils': embypy_utils,
        'embypy.objects': embypy_objs
    },
Example #34
0
# coding: utf8

# noinspection PyProtectedMember
from setuptools import setup, find_packages, convert_path

package_name = 'dfqueue'

meta_data = {}
meta_data_file_path = convert_path(package_name + '/__meta__.py')
with open(meta_data_file_path) as meta_data_file:
    exec(meta_data_file.read(), meta_data)

setup(name=package_name,
      version=meta_data['__version__'],
      install_requires="pandas>=0.23.4",
      packages=find_packages(),
      author=meta_data['__author__'],
      author_email=meta_data['__author_email__'],
      description=meta_data['__description__'],
      long_description=open('README.md').read(),
      include_package_data=True,
      url=meta_data['__github_url__'],
      classifiers=meta_data['__classifiers__'],
      license=meta_data['__licence__'],
      keywords=meta_data['__keywords__'])
Example #35
0
from re import compile
from ast import literal_eval
from sys import argv, exit
from json import dumps
from setuptools import setup, find_packages, convert_path

# Requirements for torsion
requirements = ["OpenEye-orionplatform==0.1.14",
                "OpenEye-snowball==0.13.6",
                "numpy==1.16.0",
                "sh",
                "scipy"]

# Obtain version of cuberecord
_version_re = compile(r'__version__\s+=\s+(.*)')
version_file = convert_path("./torsion/__init__.py")
with open(version_file, 'rb') as f:
    version = str(literal_eval(_version_re.search(f.read().decode('utf-8')).group(1)))

if argv[-1] == "--requires":
    print(dumps(requirements))
    exit()


setup(
    name='torsional-strain',
    version=version,
    packages=find_packages(exclude=['tests/*', 'floes/*']),
    author='Pfizer Simulation and Modeling Sciences',
    author_email='*****@*****.**',
    description='Torsional Profile Calculation',