示例#1
0
    def test_single_env(self):
        with self.create_repo() as repo:
            self.add_env(repo, 'master', """
            env:
             - python
            channels:
             - defaults 
            """)
            resolve.build_manifest_branches(repo)

            self.assertIn('manifest/master', repo.branches)
            manifest = repo.branches['manifest/master']
            manifest.checkout()
            with open(os.path.join(repo.working_dir, 'env.manifest'), 'r') as fh:
                manifest_contents = fh.readlines()
            pkg_names = [pkg.split('\t', 1)[1].split('-')[0] for pkg in manifest_contents]
            self.assertIn('python', pkg_names)
            self.assertIn('zlib', pkg_names)
示例#2
0
    def setUp(self):
        repo = create_repo('deployable_2_envs')
        default = add_env(repo, 'default', """
            env:
             - python
            channels:
             - defaults 
            """)
        resolve.build_manifest_branches(repo)

        bleeding = add_env(repo, 'bleeding', """
            env:
             - python >2
             - numpy
            channels:
             - defaults 
            """)
        resolve.build_manifest_branches(repo)
        for tag in tag_dates.tag_by_branch(repo):
            label_tag.progress_label(repo, tag.name)

        update_env(repo, default, """
            env:
             - python 2.*
            channels: 
             - defaults 
            """)
        resolve.build_manifest_branches(repo)
        for tag in tag_dates.tag_by_branch(repo):
            self.default_next_tag = tag.name
            label_tag.progress_label(repo, tag.name)

        self.repo = repo
    def test_single_env(self):
        with self.create_repo() as repo:
            self.add_env(
                repo,
                "master",
                """
            env:
             - python
            channels:
             - defaults 
            """,
            )
            resolve.build_manifest_branches(repo)

            self.assertIn("manifest/master", repo.branches)
            manifest = repo.branches["manifest/master"]
            manifest.checkout()
            with open(os.path.join(repo.working_dir, "env.manifest"), "r") as fh:
                manifest_contents = fh.readlines()
            pkg_names = [pkg.split("\t", 1)[1].split("-")[0] for pkg in manifest_contents]
            self.assertIn("python", pkg_names)
            self.assertIn("zlib", pkg_names)
示例#4
0
    def setUp(self):
        repo = create_repo('deployable_2_envs')
        default = add_env(
            repo, 'default', """
            env:
             - python
            channels:
             - defaults 
            """)
        resolve.build_manifest_branches(repo)

        bleeding = add_env(
            repo, 'bleeding', """
            env:
             - python >2
             - numpy
            channels:
             - defaults 
            """)
        resolve.build_manifest_branches(repo)
        for tag in tag_dates.tag_by_branch(repo):
            label_tag.progress_label(repo, tag.name)

        update_env(
            repo, default, """
            env:
             - python 2.*
            channels: 
             - defaults 
            """)
        resolve.build_manifest_branches(repo)
        for tag in tag_dates.tag_by_branch(repo):
            self.default_next_tag = tag.name
            label_tag.progress_label(repo, tag.name)

        self.repo = repo