mirror of
https://github.com/chatmail/core.git
synced 2026-05-24 01:06:31 +03:00
fix upload error?! (#1454)
* use latest setuptools * clear indexes also if nothing was uploaded to dc/* branches
This commit is contained in:
@@ -7,6 +7,10 @@ executors:
|
|||||||
doxygen:
|
doxygen:
|
||||||
docker:
|
docker:
|
||||||
- image: hrektts/doxygen
|
- image: hrektts/doxygen
|
||||||
|
python:
|
||||||
|
docker:
|
||||||
|
- image: 3.7.7-stretch
|
||||||
|
|
||||||
|
|
||||||
restore-workspace: &restore-workspace
|
restore-workspace: &restore-workspace
|
||||||
attach_workspace:
|
attach_workspace:
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ echo -----------------------
|
|||||||
# Bundle external shared libraries into the wheels
|
# Bundle external shared libraries into the wheels
|
||||||
pushd $WHEELHOUSEDIR
|
pushd $WHEELHOUSEDIR
|
||||||
|
|
||||||
pip3 install -U pip
|
pip3 install -U pip setuptools
|
||||||
pip3 install devpi-client
|
pip3 install devpi-client
|
||||||
devpi use https://m.devpi.net
|
devpi use https://m.devpi.net
|
||||||
devpi login dc --password $DEVPI_LOGIN
|
devpi login dc --password $DEVPI_LOGIN
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ def run():
|
|||||||
projectnames = get_projectnames(baseurl, username, indexname)
|
projectnames = get_projectnames(baseurl, username, indexname)
|
||||||
if indexname == "master" or not indexname:
|
if indexname == "master" or not indexname:
|
||||||
continue
|
continue
|
||||||
assert projectnames == ["deltachat"]
|
clear_index = not projectnames
|
||||||
for projectname in projectnames:
|
for projectname in projectnames:
|
||||||
dates = get_release_dates(baseurl, username, indexname, projectname)
|
dates = get_release_dates(baseurl, username, indexname, projectname)
|
||||||
if not dates:
|
if not dates:
|
||||||
@@ -60,8 +60,11 @@ def run():
|
|||||||
date = datetime.datetime(*max(dates))
|
date = datetime.datetime(*max(dates))
|
||||||
if (datetime.datetime.now() - date) > datetime.timedelta(days=MAXDAYS):
|
if (datetime.datetime.now() - date) > datetime.timedelta(days=MAXDAYS):
|
||||||
assert username and indexname
|
assert username and indexname
|
||||||
url = baseurl + username + "/" + indexname
|
clear_index = True
|
||||||
subprocess.check_call(["devpi", "index", "-y", "--delete", url])
|
break
|
||||||
|
if clear_index:
|
||||||
|
url = baseurl + username + "/" + indexname
|
||||||
|
subprocess.check_call(["devpi", "index", "-y", "--delete", url])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user