コード例 #1
0
    def test_check_pip_version_failure(self, mock_sys_exit):

        mock_pip = mock.Mock()
        mock_pip.__version__ = '0.0.0'
        sys.modules['pip'] = mock_pip

        self.assertEqual(mock_sys_exit.call_count, 0)
        check_pip_version()
        self.assertEqual(mock_sys_exit.call_count, 1)
        self.assertEqual(mock_sys_exit.call_args_list[0][0], (1, ))
コード例 #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.

import os

from setuptools import setup, find_packages

from dist_utils import check_pip_version
from dist_utils import fetch_requirements
from dist_utils import parse_version_string

check_pip_version()

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, 'st2auth_keystone_backend', '__init__.py')

version = parse_version_string(INIT_FILE)
install_reqs, dep_links = fetch_requirements(REQUIREMENTS_FILE)

setup(
    name='st2-auth-backend-keystone',
    version=version,
    description='StackStorm authentication backend which reads credentials from an OpenStack Keystone instance.',
    author='StackStorm, Inc.',
    author_email='*****@*****.**',
    url='https://github.com/StackStorm/st2-auth-backend-keystone',
コード例 #3
0
# 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.

import os.path

from setuptools import setup, find_packages

from dist_utils import check_pip_version
from dist_utils import fetch_requirements
from dist_utils import apply_vagrant_workaround

from st2client import __version__

check_pip_version()

ST2_COMPONENT = "st2client"
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
REQUIREMENTS_FILE = os.path.join(BASE_DIR, "requirements.txt")
README_FILE = os.path.join(BASE_DIR, "README.rst")

install_reqs, dep_links = fetch_requirements(REQUIREMENTS_FILE)
apply_vagrant_workaround()

with open(README_FILE) as f:
    readme = f.read()

setup(
    name=ST2_COMPONENT,
    version=__version__,
コード例 #4
0
 def test_check_pip_version_success(self):
     self.assertTrue(check_pip_version())
コード例 #5
0
ファイル: setup.py プロジェクト: Kami/raspberry-pi-ham-radio
import logging

from glob import glob
from os.path import splitext, basename, join as pjoin
from unittest import TextTestRunner, TestLoader

from setuptools import setup, find_packages

from distutils.core import Command
from setuptools import setup

from dist_utils import fetch_requirements
from dist_utils import get_version_string
from dist_utils import check_pip_version

check_pip_version("19.1.0")

BASE_DIR = os.path.dirname(os.path.abspath(__file__))
REQUIREMENTS_FILE = os.path.join(BASE_DIR, "requirements.txt")
TESTS_REQUIREMENTS_FILE = os.path.join(BASE_DIR, "test-requirements.txt")

install_reqs, _ = fetch_requirements(REQUIREMENTS_FILE)
test_reqs, _ = fetch_requirements(TESTS_REQUIREMENTS_FILE)

sys.path.insert(0, BASE_DIR)

version = get_version_string(os.path.join(BASE_DIR,
                                          "radio_bridge/__init__.py"))

setup(
    name="radio-bridge",