This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
193 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,8 @@ | |
], | ||
"python.testing.unittestEnabled": false, | ||
"cSpell.words": [ | ||
"Conda", | ||
"Cython", | ||
"sagemath" | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
#!/usr/bin/env bash | ||
|
||
######################################################################## | ||
# Generate auto-generated conda environment files | ||
######################################################################### | ||
|
||
STRIP_COMMENTS="sed s/#.*//;" | ||
|
||
shopt -s extglob | ||
|
||
DEVELOP_SPKG_PATTERN="@(_develop$(for a in $(head -n 1 build/pkgs/_develop/dependencies); do echo -n "|"$a; done))" | ||
|
||
BOOTSTRAP_PACKAGES=$(echo $(${STRIP_COMMENTS} build/pkgs/_bootstrap/distros/conda.txt)) | ||
SYSTEM_PACKAGES= | ||
OPTIONAL_SYSTEM_PACKAGES= | ||
SAGELIB_SYSTEM_PACKAGES= | ||
SAGELIB_OPTIONAL_SYSTEM_PACKAGES= | ||
DEVELOP_SYSTEM_PACKAGES= | ||
for PKG_BASE in $(./sage --package list --has-file distros/conda.txt); do | ||
PKG_SCRIPTS=build/pkgs/$PKG_BASE | ||
SYSTEM_PACKAGES_FILE=$PKG_SCRIPTS/distros/conda.txt | ||
PKG_TYPE=$(cat $PKG_SCRIPTS/type) | ||
PKG_SYSTEM_PACKAGES=$(echo $(${STRIP_COMMENTS} $SYSTEM_PACKAGES_FILE)) | ||
if [ -n "PKG_SYSTEM_PACKAGES" ]; then | ||
if [ -f $PKG_SCRIPTS/spkg-configure.m4 ]; then | ||
case "$PKG_BASE:$PKG_TYPE" in | ||
*:standard) | ||
SYSTEM_PACKAGES+=" $PKG_SYSTEM_PACKAGES" | ||
;; | ||
$DEVELOP_SPKG_PATTERN:*) | ||
DEVELOP_SYSTEM_PACKAGES+=" $PKG_SYSTEM_PACKAGES" | ||
;; | ||
*) | ||
OPTIONAL_SYSTEM_PACKAGES+=" $PKG_SYSTEM_PACKAGES" | ||
;; | ||
esac | ||
else | ||
case "$PKG_TYPE" in | ||
standard) | ||
SAGELIB_SYSTEM_PACKAGES+=" $PKG_SYSTEM_PACKAGES" | ||
;; | ||
*) | ||
SAGELIB_OPTIONAL_SYSTEM_PACKAGES+=" $PKG_SYSTEM_PACKAGES" | ||
;; | ||
esac | ||
fi | ||
fi | ||
done | ||
echo >&2 $0:$LINENO: generate conda enviroment files | ||
( | ||
echo "name: sage-build" | ||
echo "channels:" | ||
echo " - conda-forge" | ||
echo " - nodefaults" | ||
echo "dependencies:" | ||
for pkg in $SYSTEM_PACKAGES; do | ||
echo " - $pkg" | ||
done | ||
echo " # Packages needed for ./bootstrap" | ||
for pkg in $BOOTSTRAP_PACKAGES; do | ||
echo " - $pkg" | ||
done | ||
) > environment.yml | ||
|
||
( | ||
sed 's/name: sage-build/name: sage/' environment.yml | ||
echo " # Additional packages providing all dependencies for the Sage library" | ||
for pkg in $SAGELIB_SYSTEM_PACKAGES; do | ||
echo " - $pkg" | ||
done | ||
) > src/environment.yml | ||
|
||
( | ||
sed 's/name: sage/name: sage-dev/' src/environment.yml | ||
echo " # Additional dev tools" | ||
for pkg in $DEVELOP_SYSTEM_PACKAGES; do | ||
echo " - $pkg" | ||
done | ||
) > src/environment-dev.yml | ||
|
||
( | ||
cat environment.yml | ||
echo " # optional packages" | ||
for pkg in $OPTIONAL_SYSTEM_PACKAGES; do | ||
echo " - $pkg" | ||
done | ||
) > environment-optional.yml | ||
|
||
( | ||
cat src/environment.yml | ||
echo " # optional packages" | ||
for pkg in $OPTIONAL_SYSTEM_PACKAGES $SAGELIB_OPTIONAL_SYSTEM_PACKAGES; do | ||
echo " - $pkg" | ||
done | ||
) > src/environment-optional.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
\_develop: Represents system packages recommended for development | ||
================================================================= | ||
|
||
Description | ||
----------- | ||
|
||
Script package representing a list of system packages recommended for developers. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
git pytest pytest_xdist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
openssh | ||
pycodestyle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Needed for devcontainer support in VS code | ||
gpgconf | ||
openssh-client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SAGE_SPKG_CONFIGURE([_develop], [ | ||
sage_spkg_install__develop=yes | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#! /usr/bin/env bash | ||
# Nothing to do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
optional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
jupyter_sphinx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
$(PYTHON) pluggy packaging attrs py pyparsing importlib_metadata | $(PYTHON_TOOLCHAIN) | ||
$(PYTHON) pluggy packaging attrs py pyparsing importlib_metadata tomli | $(PYTHON_TOOLCHAIN) | ||
|
||
---------- | ||
All lines of this file are ignored except the first. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
pytest_xdist: pytest xdist plugin for distributed testing and loop-on-failing modes | ||
=================================================================================== | ||
|
||
Description | ||
----------- | ||
|
||
pytest xdist plugin for distributed testing and loop-on-failing modes | ||
|
||
License | ||
------- | ||
|
||
MIT | ||
|
||
Upstream Contact | ||
---------------- | ||
|
||
https://pypi.org/project/pytest-xdist/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
$(PYTHON) pytest | $(PYTHON_TOOLCHAIN) | ||
|
||
---------- | ||
All lines of this file are ignored except the first. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pytest-xdist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pytest-xdist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
optional |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.