コード例 #1
0
 def testModuleExtract(self):
     from distutils import __version__
     self.assertEqual(get_module_constant('distutils', '__version__'),
                      __version__)
     self.assertEqual(get_module_constant('sys', 'version'), sys.version)
     self.assertEqual(get_module_constant('setuptools.tests', '__doc__'),
                      __doc__)
コード例 #2
0
ファイル: __init__.py プロジェクト: aoqfonseca/peon
    def testModuleExtract(self):
        if not get_module_constant:
            return  # skip on non-bytecode platforms
        from email import __version__

        self.assertEqual(get_module_constant("email", "__version__"), __version__)
        self.assertEqual(get_module_constant("sys", "version"), sys.version)
        self.assertEqual(get_module_constant("setuptools.tests", "__doc__"), __doc__)
コード例 #3
0
ファイル: __init__.py プロジェクト: hbxjw119/pythonpackage
 def testModuleExtract(self):
     from distutils import __version__
     self.assertEqual(
         get_module_constant('distutils','__version__'), __version__
     )
     self.assertEqual(
         get_module_constant('sys','version'), sys.version
     )
     self.assertEqual(
         get_module_constant('setuptools.tests','__doc__'),__doc__
     )
コード例 #4
0
    def testModuleExtract(self):
        if not hasattr(dep, 'get_module_constant'):
            # skip on non-bytecode platforms
            return

        from email import __version__
        self.assertEqual(dep.get_module_constant('email', '__version__'),
                         __version__)
        self.assertEqual(dep.get_module_constant('sys', 'version'),
                         sys.version)
        self.assertEqual(
            dep.get_module_constant('setuptools.tests', '__doc__'), __doc__)
コード例 #5
0
ファイル: __init__.py プロジェクト: 0x/kivi-tests
    def testModuleExtract(self):
        if not hasattr(dep, 'get_module_constant'):
            # skip on non-bytecode platforms
            return

        from email import __version__
        self.assertEqual(
            dep.get_module_constant('email','__version__'), __version__
        )
        self.assertEqual(
            dep.get_module_constant('sys','version'), sys.version
        )
        self.assertEqual(
            dep.get_module_constant('setuptools.tests','__doc__'),__doc__
        )
コード例 #6
0
 def test_basic(self):
     """
     Invoke get_module_constant on a module in
     the test package.
     """
     mod_name = 'setuptools.tests.mod_with_constant'
     val = depends.get_module_constant(mod_name, 'value')
     assert val == 'three, sir!'
     assert 'setuptools.tests.mod_with_constant' not in sys.modules
コード例 #7
0
ファイル: test_depends.py プロジェクト: pypa/setuptools
 def test_basic(self):
     """
     Invoke get_module_constant on a module in
     the test package.
     """
     mod_name = 'setuptools.tests.mod_with_constant'
     val = depends.get_module_constant(mod_name, 'value')
     assert val == 'three, sir!'
     assert 'setuptools.tests.mod_with_constant' not in sys.modules
コード例 #8
0
#!/usr/bin/env python

from setuptools.depends import get_module_constant
from setuptools import setup

setup(
    name = 'detectlanguage',
    packages = ['detectlanguage'],
    version = get_module_constant('detectlanguage', '__version__'),
    description = 'Language Detection API Client',
    author = 'Laurynas Butkus',
    author_email = '*****@*****.**',
    url = 'https://github.com/detectlanguage/detectlanguage-python',
    download_url = 'https://github.com/detectlanguage/detectlanguage-python',
    keywords = ['language', 'identification', 'detection', 'api', 'client'],
    install_requires= ['requests>=2.4.2'],
    classifiers = [],
    license = 'MIT',
)
コード例 #9
0
ファイル: setup.py プロジェクト: huihui571/vim-light
#!/usr/bin/env python

from setuptools import setup, find_packages
from setuptools.depends import get_module_constant

import os

__AUTHOR__ = 'David Halter'
__AUTHOR_EMAIL__ = '*****@*****.**'

# Get the version from within jedi. It's defined in exactly one place now.
version = get_module_constant("jedi", "__version__")

readme = open('README.rst').read() + '\n\n' + open('CHANGELOG.rst').read()
with open('requirements.txt') as f:
    install_requires = f.read().splitlines()

assert os.path.isfile("jedi/third_party/typeshed/LICENSE"), \
    "Please download the typeshed submodule first (Hint: git submodule update --init)"
assert os.path.isfile("jedi/third_party/django-stubs/LICENSE.txt"), \
    "Please download the django-stubs submodule first (Hint: git submodule update --init)"

setup(
    name='jedi',
    version=version,
    description=
    'An autocompletion tool for Python that can be used for text editors.',
    author=__AUTHOR__,
    author_email=__AUTHOR_EMAIL__,
    include_package_data=True,
    maintainer=__AUTHOR__,
コード例 #10
0
ファイル: setup.py プロジェクト: zifeng12345/python-memcached
#!/usr/bin/env python

from setuptools.depends import get_module_constant
from setuptools import setup  # noqa

version = get_module_constant('memcache', '__version__')
setup(
    name="python-memcached",
    version=version,
    description="Pure python memcached client",
    long_description=open("README.md").read(),
    author="Evan Martin",
    author_email="*****@*****.**",
    maintainer="Sean Reifschneider",
    maintainer_email="*****@*****.**",
    url="https://github.com/linsomniac/python-memcached",
    download_url=
    "https://github.com/linsomniac/python-memcached/releases/download/{0}/python-memcached-{0}.tar.gz"
    .format(version),
    py_modules=["memcache"],
    install_requires=open('requirements.txt').read().split(),
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: Python Software Foundation License",
        "Operating System :: OS Independent",
        "Programming Language :: Python",
        "Topic :: Internet",
        "Topic :: Software Development :: Libraries :: Python Modules",
        "Programming Language :: Python",
        "Programming Language :: Python :: 2",
コード例 #11
0
ファイル: setup.py プロジェクト: sproutman/wavcmp
from setuptools import setup
from setuptools.depends import get_module_constant
from setuptools.extension import Extension

version = get_module_constant("wavcmp", "__version__", default=None)
assert version

try:
    from Cython.Build import cythonize
    import numpy # should be after setup_requires, but that's convoluted
except ImportError:
    ext_modules = []
else:
    ext_modules = cythonize([
        Extension("wavcmp._compiled", ["wavcmp/_compiled.pyx"],
                  include_dirs=[numpy.get_include()],
                  extra_compile_args=[]) # -O3 not always better than -O2
    ])

setup(
    name="wavcmp",
    version=version,
    description="compare audio files",
    classifiers=[
        "Development Status :: 4 - Beta",
        "Environment :: Console",
        "Intended Audience :: End Users/Desktop",
        "License :: OSI Approved :: MIT License",
        "Natural Language :: English",
        "Operating System :: OS Independent",
        "Programming Language :: Python :: 2",
コード例 #12
0
ファイル: setup.py プロジェクト: zholos/wavcmp
from setuptools import setup
from setuptools.depends import get_module_constant
from setuptools.extension import Extension

version = get_module_constant("wavcmp", "__version__", default=None)
assert version

try:
    from Cython.Build import cythonize
    import numpy  # should be after setup_requires, but that's convoluted
except ImportError:
    ext_modules = []
else:
    ext_modules = cythonize([
        Extension("wavcmp._compiled", ["wavcmp/_compiled.pyx"],
                  include_dirs=[numpy.get_include()],
                  extra_compile_args=[])  # -O3 not always better than -O2
    ])

setup(name="wavcmp",
      version=version,
      description="compare audio files",
      classifiers=[
          "Development Status :: 4 - Beta",
          "Environment :: Console",
          "Intended Audience :: End Users/Desktop",
          "License :: OSI Approved :: MIT License",
          "Natural Language :: English",
          "Operating System :: OS Independent",
          "Programming Language :: Python :: 2",
          "Programming Language :: Python :: 3",
コード例 #13
0
#!/usr/bin/env python

import sys
import os
try:
    from setuptools import setup
    from setuptools.depends import get_module_constant
except ImportError:
    from distutils.core import setup

# import dockerhub_status_image_api
HERE = os.path.abspath(os.path.dirname(__file__))
__version__ = get_module_constant("dockerhub_status_image_api", "__version__")
__doc__ = get_module_constant("dockerhub_status_image_api", "__doc__")
__author__ = get_module_constant("dockerhub_status_image_api", "__author__")


def read_file_named(file_name):
    file_path = os.path.join(HERE, file_name)
    with open(file_path) as file:
        return file.read()


def read_requirements_file(file_name):
    content = read_file_named(file_name)
    lines = []
    for line in content.splitlines():
        comment_index = line.find("#")
        if comment_index >= 0:
            line = line[:comment_index]
        line = line.strip()
コード例 #14
0
ファイル: setup.py プロジェクト: Stackdriver/python-memcached
#!/usr/bin/env python

from setuptools.depends import get_module_constant
from setuptools import setup  # noqa


setup(name="python-memcached",
      version=get_module_constant('memcache', '__version__'),
      description="Pure python memcached client",
      long_description=open("README.md").read(),
      author="Evan Martin",
      author_email="*****@*****.**",
      maintainer="Sean Reifschneider",
      maintainer_email="*****@*****.**",
      url="http://www.tummy.com/Community/software/python-memcached/",
      download_url="ftp://ftp.tummy.com/pub/python-memcached/",
      py_modules=["memcache"],
      install_requires=open('requirements.txt').read().split(),
      classifiers=[
          "Development Status :: 5 - Production/Stable",
          "Intended Audience :: Developers",
          "License :: OSI Approved :: Python Software Foundation License",
          "Operating System :: OS Independent",
          "Programming Language :: Python",
          "Topic :: Internet",
          "Topic :: Software Development :: Libraries :: Python Modules",
          "Programming Language :: Python",
          "Programming Language :: Python :: 2",
          "Programming Language :: Python :: 2.6",
          "Programming Language :: Python :: 2.7",
          "Programming Language :: Python :: 3",
コード例 #15
0
# Direct dependencies; minimal set that this should be compatible with.
# Pinned dependencies that we've tested with are present in requirements.txt
runtime_deps = ['aiohttp', 'bs4', 'mypy_extensions']

dev_deps = [
    'coverage', 'hypothesis==3.1.0', 'mypy', 'pytest', 'pytest-asyncio',
    'pytest-cov', 'tox', 'vcrpy', 'yapf'
]

setup(
    name='MTGJSON4',

    # Versions should comply with PEP440.  For a discussion on single-sourcing
    # the version across setup.py and the project code, see
    # https://packaging.python.org/en/latest/single_source_version.html
    version=get_module_constant('mtgjson4.mtg_globals', '__version__'),
    description='Build JSON files for distribution for Magic: The Gathering',
    long_description=
    'Create JSON files of Magic: The Gathering cards for distribution from sources such as Gatherer',

    # The project's main homepage.
    url='https://github.com/mtgjson/mtgjson-python',

    # Author details
    author='Zach Halpern',
    author_email='*****@*****.**',

    # Choose your license
    license='GPL-3.0',

    # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
コード例 #16
0
 def testModuleExtract(self):
     from email import __version__
     assert dep.get_module_constant('email', '__version__') == __version__
     assert dep.get_module_constant('sys', 'version') == sys.version
     assert dep.get_module_constant('setuptools.tests',
                                    '__doc__') == __doc__
コード例 #17
0
ファイル: __init__.py プロジェクト: jimfulton/setuptools
 def testModuleExtract(self):
     from email import __version__
     assert dep.get_module_constant('email', '__version__') == __version__
     assert dep.get_module_constant('sys', 'version') == sys.version
     assert dep.get_module_constant('setuptools.tests', '__doc__') == __doc__
コード例 #18
0
#!/usr/bin/env python

from setuptools.depends import get_module_constant
from setuptools import setup

setup(
    name='convertapi',
    packages=['convertapi'],
    version=get_module_constant('convertapi', '__version__'),
    description='Convert API Python Client',
    long_description=
    'Convert various files like MS Word, Excel, PowerPoint, Images to PDF and Images. Create PDF and Images from url and raw HTML. Extract and create PowerPoint presentation from PDF. Merge, Encrypt, Split, Repair and Decrypt PDF files. All supported files conversions and manipulations can be found at https://www.convertapi.com/doc/supported-formats',
    author='Tomas Rutkauskas',
    author_email='*****@*****.**',
    url='https://github.com/ConvertAPI/convertapi-python',
    download_url='https://github.com/ConvertAPI/convertapi-python',
    keywords=['convert', 'api', 'client', 'conversion'],
    install_requires=['requests>=2.4.2'],
    classifiers=[],
    license='MIT',
)