...
För följande kommandon antas att working dir är VersionVisualizer, och att de körs som Admin på WIndows och sudo eller root på Linux. Dessa skript finns också incheckade med källkoden i repot (https://bitbucket.drift.inera.se/projects/NTJP/repos/versionvisualizer/)
Linux:
Kodblock | ||
---|---|---|
| ||
# Activate the env VV2ENV/bin/activate # Set up VENV python -m pip install --upgrade pip build pip2pi # First time only # Build whl and bundle deps python -m build python -mpip wheel --wheel-dir wheels dist/*.whl dir2pi wheels # Upload to Nexus cd wheels for whl in \$(find simple -name '*.whl') do curl --fail -u ${CREDENTIALS} --upload-file \$whl https://nexus.drift.inera.se/repository/maven-snapshots/se/inera/ntjp/pypi/\$whl done |
...