-
Notifications
You must be signed in to change notification settings - Fork 13
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 #71 from dkazanc/pyproject
reformating the project with pyproject
- Loading branch information
Showing
51 changed files
with
234 additions
and
1,282 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: tomobar_conda_upload | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
|
||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install dependencies with Conda | ||
run: | | ||
$CONDA/bin/conda env update --file conda-recipe/environment/environment.yml --name base | ||
- name: Decrypt a secret | ||
run: ./.scripts/decrypt_secret.sh | ||
env: | ||
LARGE_SECRET_PASSPHRASE: ${{ secrets.LARGE_SECRET_PASSPHRASE }} | ||
|
||
- name: Upload the tested package to conda cloud | ||
run: | | ||
chmod +x ./.scripts/conda_upload.sh | ||
./.scripts/conda_upload.sh |
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,32 @@ | ||
#!/bin/bash | ||
|
||
PKG_NAME=tomobar | ||
USER=dkazanc | ||
OS=linux-64 | ||
CONDA_TOKEN=$(cat $HOME/.secrets/my_secret.json) | ||
|
||
mkdir ~/conda-bld | ||
conda config --set anaconda_upload no | ||
export CONDA_BLD_PATH=~/conda-bld | ||
#export VERSION=`date +%Y.%m` | ||
#conda install --yes anaconda-client | ||
#conda build . --numpy=1.20 --python=3.9 | ||
#conda build . --numpy=1.21 --python=3.9 | ||
#conda build . --numpy=1.22 --python=3.9 | ||
#conda build . --numpy=1.20 --python=3.10 | ||
#conda build . --numpy=1.21 --python=3.10 | ||
#conda build . --numpy=1.22 --python=3.10 | ||
|
||
for python_ver in 3.9 3.10; do | ||
for numpy_ver in 1.21 1.22 1.23 1.24; do | ||
export VERSION=`date +%Y.%m`"-py"$python_ver"_np"$numpy_ver | ||
conda build . --numpy $numpy_ver --python $python_ver | ||
done | ||
done | ||
|
||
# upload packages to conda | ||
find $CONDA_BLD_PATH/$OS -name *.tar.bz2 | while read file | ||
do | ||
echo $file | ||
$CONDA/bin/anaconda -v --show-traceback --token $CONDA_TOKEN upload $file --force | ||
done |
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,8 +1,8 @@ | ||
#!/bin/sh | ||
|
||
# Decrypt the file | ||
mkdir $HOME/secrets | ||
mkdir $HOME/.secrets | ||
# --batch to prevent interactive command | ||
# --yes to assume "yes" for questions | ||
gpg --quiet --batch --yes --decrypt --passphrase="$LARGE_SECRET_PASSPHRASE" \ | ||
--output $HOME/secrets/my_secret.json ./scripts/my_secret.json.gpg | ||
--output $HOME/.secrets/my_secret.json ./.scripts/my_secret.json.gpg |
File renamed without changes.
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
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
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 |
---|---|---|
@@ -1,8 +1,3 @@ | ||
set -xe | ||
cp -rv "$RECIPE_DIR/../test" "$SRC_DIR/" | ||
#!/bin/bash | ||
|
||
cd $SRC_DIR | ||
|
||
cmake -G "Unix Makefiles" $RECIPE_DIR/../ -DBUILD_PYTHON_WRAPPER=ON -DCONDA_BUILD=ON -DCMAKE_BUILD_TYPE="Release" -DLIBRARY_LIB=$CONDA_PREFIX/lib -DLIBRARY_INC=$CONDA_PREFIX -DCMAKE_INSTALL_PREFIX=$PREFIX | ||
|
||
make install | ||
python -m pip install . |
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,10 +1,4 @@ | ||
python: | ||
- 3.5 | ||
- 3.6 | ||
- 3.7 | ||
- 3.10 | ||
numpy: | ||
- 1.12 | ||
- 1.14 | ||
- 1.15 | ||
- 1.16 | ||
- 1.21 | ||
- 1.24 |
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,17 @@ | ||
name: tomobar | ||
channels: | ||
- conda-forge | ||
- anaconda | ||
dependencies: | ||
- conda-forge::numpy | ||
- conda-forge::python | ||
- conda-forge::pytest | ||
- conda-forge::pytest-xdist | ||
- conda-forge::pytest-cov | ||
- conda-forge::flake8 | ||
- conda-forge::pyproject-flake8 | ||
- conda-forge::pydocstyle | ||
- conda-forge::setuptools | ||
- anaconda::ipython | ||
- anaconda::conda-build | ||
- anaconda::anaconda-client |
File renamed without changes.
Oops, something went wrong.