-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #353 from sebp/drop-pkg_resources
Drop use of pkg_resources and specify dependencies in pyproject.toml
- Loading branch information
Showing
31 changed files
with
214 additions
and
233 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
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,4 @@ | ||
$env:CI_PYTHON_VERSION="3.10.*" | ||
$env:CI_PANDAS_VERSION="1.4.*" | ||
$env:CI_NUMPY_VERSION="1.21.*" | ||
$env:CI_SKLEARN_VERSION="1.2.*" |
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 @@ | ||
$env:CI_PYTHON_VERSION="3.11.*" | ||
$env:CI_PANDAS_VERSION="1.5.*" | ||
$env:CI_NUMPY_VERSION="1.23.*" | ||
$env:CI_SKLEARN_VERSION="1.2.*" |
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 @@ | ||
$env:CI_PYTHON_VERSION="3.8.*" | ||
$env:CI_PANDAS_VERSION="1.1.*" | ||
$env:CI_NUMPY_VERSION="1.19.*" | ||
$env:CI_SKLEARN_VERSION="1.2.*" |
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 @@ | ||
$env:CI_PYTHON_VERSION="3.9.*" | ||
$env:CI_PANDAS_VERSION="1.3.*" | ||
$env:CI_NUMPY_VERSION="1.21.*" | ||
$env:CI_SKLEARN_VERSION="1.2.*" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,6 +1,6 @@ | ||
# shellcheck shell=sh | ||
export CONDA_PYTHON_VERSION='3.10.*' | ||
export PANDAS_VERSION='1.4.*' | ||
export NUMPY_VERSION='1.21.*' | ||
export SKLEARN_VERSION='1.2.*' | ||
export NO_SLOW=true | ||
export CI_PYTHON_VERSION='3.10.*' | ||
export CI_PANDAS_VERSION='1.4.*' | ||
export CI_NUMPY_VERSION='1.21.*' | ||
export CI_SKLEARN_VERSION='1.2.*' | ||
export CI_NO_SLOW=true |
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,6 +1,6 @@ | ||
# shellcheck shell=sh | ||
export CONDA_PYTHON_VERSION='3.11.*' | ||
export PANDAS_VERSION='1.5.* ' | ||
export NUMPY_VERSION='1.23.*' | ||
export SKLEARN_VERSION='1.2.*' | ||
export NO_SLOW=false | ||
export CI_PYTHON_VERSION='3.11.*' | ||
export CI_PANDAS_VERSION='1.5.*' | ||
export CI_NUMPY_VERSION='1.23.*' | ||
export CI_SKLEARN_VERSION='1.2.*' | ||
export CI_NO_SLOW=false |
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,6 +1,6 @@ | ||
# shellcheck shell=sh | ||
export CONDA_PYTHON_VERSION='3.8.*' | ||
export PANDAS_VERSION='1.0.*' | ||
export NUMPY_VERSION='1.19.*' | ||
export SKLEARN_VERSION='1.2.*' | ||
export NO_SLOW=false | ||
export CI_PYTHON_VERSION='3.8.*' | ||
export CI_PANDAS_VERSION='1.0.*' | ||
export CI_NUMPY_VERSION='1.19.*' | ||
export CI_SKLEARN_VERSION='1.2.*' | ||
export CI_NO_SLOW=false |
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,6 +1,6 @@ | ||
# shellcheck shell=sh | ||
export CONDA_PYTHON_VERSION='3.9.*' | ||
export PANDAS_VERSION='1.3.*' | ||
export NUMPY_VERSION='1.21.*' | ||
export SKLEARN_VERSION='1.2.*' | ||
export NO_SLOW=true | ||
export CI_PYTHON_VERSION='3.9.*' | ||
export CI_PANDAS_VERSION='1.3.*' | ||
export CI_NUMPY_VERSION='1.21.*' | ||
export CI_SKLEARN_VERSION='1.2.*' | ||
export CI_NO_SLOW=true |
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,31 @@ | ||
name: sksurv-test | ||
channels: | ||
- sebp | ||
- defaults | ||
dependencies: | ||
- coverage | ||
- cython>=0.29 | ||
- ecos | ||
- ipykernel | ||
- ipython!=8.7.0 | ||
- joblib | ||
- matplotlib>=3.6.2,<3.7 | ||
- nbformat | ||
- numexpr | ||
- numpy={CI_NUMPY_VERSION} | ||
- osqp!=0.6.0,!=0.6.1 | ||
- packaging | ||
- pandas={CI_PANDAS_VERSION} | ||
- pip | ||
- pytest | ||
- python={CI_PYTHON_VERSION} | ||
- scikit-learn={CI_SKLEARN_VERSION} | ||
- scipy>=1.3.2 | ||
- seaborn>=0.11.2,<0.12 | ||
- setuptools-scm | ||
- wheel | ||
- pip: | ||
- build | ||
- importlib-resources>=1.3 | ||
- nbval>=0.10.0 | ||
- tomli |
This file was deleted.
Oops, something went wrong.
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,38 @@ | ||
import argparse | ||
import os | ||
|
||
parser = argparse.ArgumentParser() | ||
parser.add_argument("yaml_file") | ||
|
||
|
||
def get_pinned_packages(): | ||
pkgs = { | ||
"NUMPY", | ||
"PANDAS", | ||
"SKLEARN", | ||
"PYTHON", | ||
} | ||
pinned = {} | ||
for env_name in pkgs: | ||
key = f"CI_{env_name}_VERSION" | ||
ver = os.environ.get(key, "*") | ||
pinned[key] = ver | ||
return pinned | ||
|
||
|
||
def render_requirements(filename): | ||
pinned = get_pinned_packages() | ||
with open(filename) as fin: | ||
contents = "".join(fin.readlines()) | ||
|
||
return contents.format(**pinned) | ||
|
||
|
||
def main(): | ||
args = parser.parse_args() | ||
req = render_requirements(args.yaml_file) | ||
print(req) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
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.