-
Notifications
You must be signed in to change notification settings - Fork 2
/
bootstrapit.sh
104 lines (82 loc) · 3.07 KB
/
bootstrapit.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#!/bin/bash
# Bootstrapit Project Configuration
# Author info is used to populate
# - License Info
# - setup.py fields
# - README.md contributor info
# This can also be a company or organization name and email
AUTHOR_NAME="Manuel Barkhau"
AUTHOR_EMAIL="[email protected]"
KEYWORDS="markdown svgbob extension"
DESCRIPTION="svgbob extension for Python Markdown"
# Valid Options are "None" or any valid SPDX Identifier:
# - None (All Rights Reserved)
# - MIT
# - GPL-3.0-only
# - Apache-2.0
# - GPL-2.0-only
# - BSD-3-Clause
# - AGPL-3.0-only
# - LGPL-3.0-only
# - MPL-2.0
#
# See: https://choosealicense.com/licenses/
# License text pulled from:
# https://github.com/spdx/license-list-data/tree/master/text
LICENSE_ID="MIT"
PACKAGE_NAME="markdown-svgbob"
MODULE_NAME="markdown_svgbob"
GIT_REPO_NAMESPACE="mbarkhau"
GIT_REPO_DOMAIN="gitlab.com"
PACKAGE_VERSION="v202406.1023"
# These must be valid (space separated) conda package names.
# A separate conda environment will be created for each of these.
#
# Some valid options (as of late 2018) are:
# - python=2.7
# - python=3.5
# - python=3.6
# - python=3.7
# - pypy2.7
# - pypy3.5
DEFAULT_PYTHON_VERSION="python=3.7"
SUPPORTED_PYTHON_VERSIONS="python=3.7 python=2.7 pypy3.5"
# GIT_REPO_URL=https://${GIT_REPO_DOMAIN}/${GIT_REPO_NAMESPACE}/${PACKAGE_NAME}
# SPDX_LICENSE_ID="MIT"
# LICENSE_NAME="MIT License"
# LICENSE_CLASSIFIER="License :: OSI Approved :: MIT License"
# LICENSE_CLASSIFIER="License :: Other/Proprietary License"
# COPYRIGHT_STRING="Copyright (c) ${YEAR} ${AUTHOR_NAME} (${AUTHOR_EMAIL}) - ${LICENSE_NAME}"
# Pages are used by the ci runner to host coverage reports
# PAGES_DOMAIN=gitlab.io
# PAGES_DOMAIN=github.io
# PAGES_DOMAIN=bitbucket.io
# PAGES_DOMAIN=gitlab-pages.yourdomain.com
# DOCKER_REGISTRY_DOMAIN=registry.gitlab.com
# DOCKER_REGISTRY_DOMAIN=docker.yourdomain.com
#
# DOCKER_ROOT_IMAGE=registry.gitlab.com/mbarkhau/bootstrapit/root
# DOCKER_ENV_BUILDER_IMAGE=registry.gitlab.com/mbarkhau/bootstrapit/env_builder
# DOCKER_REGISTRY_URL=${DOCKER_REGISTRY_DOMAIN}/${GIT_REPO_NAMESPACE}/${PACKAGE_NAME}
# DOCKER_BASE_IMAGE=${DOCKER_REGISTRY_URL}/base
# LICENSE_NAME="Proprietary License"
# classifiers: https://pypi.org/pypi?%3Aaction=list_classifiers
# 1: Disables a failsafe for publishing to pypi
IS_PUBLIC=1
# PAGES_URL="https://${NAMESPACE}.${PAGES_DOMAIN}/${PACKAGE_NAME}/"
## Download and run the actual update script
if [[ $KEYWORDS == "keywords used on pypi" ]]; then
echo "FAILSAFE! Default bootstrapit config detected.";
echo "Did you forget to update parameters in your 'bootstrapit.sh' ?"
exit 1;
fi
PROJECT_DIR=$(dirname "$0");
if ! [[ -f "$PROJECT_DIR/scripts/bootstrapit_update.sh" ]]; then
mkdir -p "$PROJECT_DIR/scripts/";
RAW_FILES_URL="https://gitlab.com/mbarkhau/bootstrapit/raw/master";
curl --silent "$RAW_FILES_URL/scripts/bootstrapit_update.sh" \
> "$PROJECT_DIR/scripts/bootstrapit_update.sh.tmp";
mv "$PROJECT_DIR/scripts/bootstrapit_update.sh.tmp" \
"$PROJECT_DIR/scripts/bootstrapit_update.sh";
fi
source "$PROJECT_DIR/scripts/bootstrapit_update.sh";