def test_apply_vagrant_workaround(self): with mock.patch('os.link') as _: os.environ['USER'] = '******' apply_vagrant_workaround() self.assertTrue(os.link) with mock.patch('os.link') as _: os.environ['USER'] = '******' apply_vagrant_workaround() self.assertFalse(getattr(os, 'link', None))
def test_apply_vagrant_workaround(self): with mock.patch("os.link") as _: os.environ["USER"] = "******" apply_vagrant_workaround() self.assertTrue(os.link) with mock.patch("os.link") as _: os.environ["USER"] = "******" apply_vagrant_workaround() self.assertFalse(getattr(os, "link", None))
from __future__ import absolute_import import os.path from setuptools import setup from setuptools import find_packages from dist_utils import fetch_requirements from dist_utils import apply_vagrant_workaround BASE_DIR = os.path.dirname(os.path.abspath(__file__)) REQUIREMENTS_FILE = os.path.join(BASE_DIR, 'requirements.txt') install_reqs, dep_links = fetch_requirements(REQUIREMENTS_FILE) apply_vagrant_workaround() setup( name='stackstorm-runner-windows-command', version='2.5.0', description=('Windows command action runner for StackStorm event-driven ' 'automation platform'), author='StackStorm', author_email='*****@*****.**', license='Apache License (2.0)', url='https://stackstorm.com/', install_requires=install_reqs, dependency_links=dep_links, test_suite='tests', zip_safe=False, include_package_data=True, packages=find_packages(exclude=['setuptools', 'tests']),
import os.path from setuptools import setup from setuptools import find_packages from dist_utils import fetch_requirements from dist_utils import apply_vagrant_workaround from python_runner import __version__ BASE_DIR = os.path.dirname(os.path.abspath(__file__)) REQUIREMENTS_FILE = os.path.join(BASE_DIR, 'requirements.txt') install_reqs, dep_links = fetch_requirements(REQUIREMENTS_FILE) apply_vagrant_workaround() setup( name='stackstorm-runner-python', version=__version__, description='Python action runner for StackStorm event-driven automation platform', author='StackStorm', author_email='*****@*****.**', license='Apache License (2.0)', url='https://stackstorm.com/', install_requires=install_reqs, dependency_links=dep_links, test_suite='tests', zip_safe=False, include_package_data=True, packages=find_packages(exclude=['setuptools', 'tests']), package_data={'python_runner': ['runner.yaml']},
import dist_utils import os.path import setuptools MODULE_NAME = 'orquestaconvert' BASE_DIR = os.path.dirname(os.path.abspath(__file__)) REQUIREMENTS_FILE = os.path.join(BASE_DIR, 'requirements.txt') INIT_FILE = os.path.join(BASE_DIR, MODULE_NAME + '/__init__.py') install_reqs, dep_links = dist_utils.fetch_requirements(REQUIREMENTS_FILE) with open("README.md", "r") as fh: long_description = fh.read() dist_utils.apply_vagrant_workaround() setuptools.setup( name=MODULE_NAME, version=dist_utils.get_version_string(INIT_FILE), description= 'Tool to convert OpenStack Mistral workflows to StackStorm Orquesta workflows', long_description=long_description, long_description_content_type="text/markdown", author='StackStorm', author_email='*****@*****.**', url='https://stackstorm.com/', install_requires=install_reqs, dependency_links=dep_links, test_suite=MODULE_NAME, zip_safe=False,