def pull_bh_data_dev(min_build_date):
    beta_docs = bh.pull_build_id_docs(
        min_build_day=min_build_date, channel="aurora"
    )
    return bh.version2df(beta_docs, keep_rc=True, keep_release=True).assign(
        chan="aurora"
    )
Exemple #2
0
def pull_bh_data_dev(min_build_date):
    beta_docs = bh.pull_build_id_docs(min_build_day=min_build_date,
                                      channel="aurora")
    df = (bh.version2df(
        beta_docs, keep_rc=True,
        keep_release=True).assign(chan="aurora").rename(columns={
            "pub_date": "date",
            "disp_vers": "version"
        }))
    return df[["version", "build_id", "date", "chan"]]
def pull_bh_data_rls(min_build_date):
    major_re = re.compile(r"^(\d+)\.\d+$")

    def major(v):
        m = major_re.findall(v)
        if not m:
            return None
        [maj] = m
        return int(maj)

    rls_docs = bh.pull_build_id_docs(
        min_build_day=min_build_date, channel="release"
    )
    df = (
        bh.version2df(
            rls_docs, major_version=None, keep_rc=False, keep_release=True
        )
        .assign(chan="release", major=lambda x: x.disp_vers.map(major))
        .assign(is_major=lambda x: x.major.notnull())
    )
    return df
bh_rls[:3]

# %%
' 	disp_vers 	build_id 	pub_date 	chan 	major 	is_major'.split()

# %%
bh_dev_rc.pipe(list)

# %%
min_build_date = '2019'
# beta_docs = bh.pull_build_id_docs(
#         min_build_day=min_build_date, channel="beta"
#     )

dev_chan_docs = bh.pull_build_id_docs(
        min_build_day=min_build_date, channel="aurora"
    )

# %%
# pull_bh_data_dev(min_build_date).disp_vers.drop_duplicates()

# %%
# beta_docs

# %%

min_build_date="2019"
min_pd_date="2019-01-01"

bh_dev_rc = (
        pull_bh_data_dev(min_build_date=min_build_date)