def test_fetch_requirements(self): expected_reqs = [ 'RandomWords', 'amqp==2.5.1', 'argcomplete', 'bcrypt==3.1.6', 'flex==6.14.0', 'logshipper', 'orquesta', 'st2-auth-backend-flat-file', 'logshipper-editable', 'python_runner', 'SomePackageHq', 'SomePackageSvn', 'gitpython==2.1.11', 'ose-timer==0.7.5', 'oslo.config<1.13,>=1.12.1', 'requests[security]<2.22.0,>=2.21.0', 'retrying==1.3.3', 'zake==0.2.2' ] expected_links = [ 'git+https://github.com/Kami/logshipper.git@stackstorm_patched#egg=logshipper', 'git+https://github.com/StackStorm/orquesta.git@224c1a589a6007eb0598a62ee99d674e7836d369#egg=orquesta', # NOQA 'git+https://github.com/StackStorm/st2-auth-backend-flat-file.git@master#egg=st2-auth-backend-flat-file', # NOQA 'git+https://github.com/Kami/logshipper.git@stackstorm_patched#egg=logshipper-editable', 'git+https://github.com/StackStorm/st2.git#egg=python_runner&subdirectory=contrib/runners/python_runner', # NOQA 'hg+https://hg.repo/some_pkg.git#egg=SomePackageHq', 'svn+svn://svn.repo/some_pkg/trunk/@ma-branch#egg=SomePackageSvn' ] reqs, links = fetch_requirements(REQUIREMENTS_PATH_1) self.assertEqual(reqs, expected_reqs) self.assertEqual(links, expected_links) # Also test it on requirements.txt in repo root reqs, links = fetch_requirements(REQUIREMENTS_PATH_2) self.assertGreater(len(reqs), 0) self.assertGreater(len(links), 0)
def test_fetch_requirements(self): expected_reqs = [ "RandomWords", "amqp==2.5.1", "argcomplete", "bcrypt==3.1.6", "flex==6.14.0", "logshipper", "orquesta", "st2-auth-backend-flat-file", "logshipper-editable", "python_runner", "SomePackageHq", "SomePackageSvn", "gitpython==2.1.11", "ose-timer==0.7.5", "oslo.config<1.13,>=1.12.1", "requests[security]<2.22.0,>=2.21.0", "retrying==1.3.3", "zake==0.2.2", ] expected_links = [ "git+https://github.com/Kami/logshipper.git@stackstorm_patched#egg=logshipper", "git+https://github.com/Anshika-Gautam/[email protected]#egg=orquesta", # NOQA "git+https://github.com/StackStorm/st2-auth-backend-flat-file.git@master#egg=st2-auth-backend-flat-file", # NOQA "git+https://github.com/Kami/logshipper.git@stackstorm_patched#egg=logshipper-editable", "git+https://github.com/StackStorm/st2.git#egg=python_runner&subdirectory=contrib/runners/python_runner", # NOQA "hg+https://hg.repo/some_pkg.git#egg=SomePackageHq", "svn+svn://svn.repo/some_pkg/trunk/@ma-branch#egg=SomePackageSvn", ] reqs, links = fetch_requirements(REQUIREMENTS_PATH_1) self.assertEqual(reqs, expected_reqs) self.assertEqual(links, expected_links) # Also test it on requirements.txt in repo root reqs, links = fetch_requirements(REQUIREMENTS_PATH_2) self.assertGreater(len(reqs), 0) self.assertGreater(len(links), 0)
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', license='Apache License (2.0)', download_url='https://github.com/StackStorm/st2-auth-backend-keystone/tarball/master', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: Apache Software License', 'Programming Language :: Python', 'Programming Language :: Python :: 2',
# See the License for the specific language governing permissions and # limitations under the License. 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,
# limitations under the License. import os import sys from setuptools import setup from setuptools import find_packages from dist_utils import fetch_requirements from dist_utils import get_version_string 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, install_dep_links = fetch_requirements(REQUIREMENTS_FILE) test_reqs, test_dep_links = fetch_requirements(TESTS_REQUIREMENTS_FILE) sys.path.insert(0, BASE_DIR) version = get_version_string(os.path.join(BASE_DIR, "dcsm/__init__.py")) setup( name="dcsm", version=version, description= ("Simple Docker Compose secrets management using RSA asymmetric crypto + YAML secrets files" ), long_description=open("README.md").read(), long_description_content_type="text/markdown", author="Tomaz Muraus",
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", version=version, description= ("Software for Ham Radio Repeater based automation designed to run on Raspberry Pi." ), long_description=open("README.md").read(), long_description_content_type="text/markdown",
# 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. from __future__ import absolute_import 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='*****@*****.**',