forked from psychoinformatics-de/datalad-debian
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 psychoinformatics-de#5 from mih/master
Modernization
- Loading branch information
Showing
26 changed files
with
2,952 additions
and
83 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 @@ | ||
datalad_helloworld/_version.py export-subst |
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,27 @@ | ||
name: docs | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Set up environment | ||
run: | | ||
git config --global user.email "test@github.land" | ||
git config --global user.name "GitHub Almighty" | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements-devel.txt | ||
pip install . | ||
- name: Build docs | ||
run: | | ||
make -C docs html |
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,55 @@ | ||
name: crippled-filesystems | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
test: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Set up system | ||
shell: bash | ||
run: | | ||
bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh) | ||
# enable repo for devel git-annex, if needed | ||
#sudo sed -e 's|\(deb.*data\)|#\1|' -e 's|/debian |/debian-devel |' /etc/apt/sources.list.d/neurodebian.sources.list | sudo tee /etc/apt/sources.list.d/neurodebian-devel.sources.list | ||
sudo apt-get update -qq | ||
sudo apt-get install eatmydata | ||
sudo eatmydata apt-get install git-annex-standalone dosfstools | ||
# 500 MB VFAT FS in a box | ||
sudo dd if=/dev/zero of=/crippledfs.img count=500 bs=1M | ||
sudo mkfs.vfat /crippledfs.img | ||
# mount | ||
sudo mkdir /crippledfs | ||
sudo mount -o "uid=$(id -u),gid=$(id -g)" /crippledfs.img /crippledfs | ||
- name: Set up environment | ||
run: | | ||
git config --global user.email "test@github.land" | ||
git config --global user.name "GitHub Almighty" | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python 3.5 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.5 | ||
- name: Install dependencies | ||
run: | | ||
pip install -r requirements-devel.txt | ||
python -m pip install --upgrade pip | ||
- name: Installation | ||
run: | | ||
# package install | ||
python -m pip install . | ||
- name: Run tests | ||
env: | ||
# forces all test repos/paths into the VFAT FS | ||
TMPDIR: /crippledfs | ||
run: | | ||
mkdir -p __testhome__ | ||
cd __testhome__ | ||
# give detailed info on actual test setup | ||
datalad wtf | ||
echo "== mount >>" | ||
mount | ||
echo "<< mount ==" | ||
python -m nose -s -v --with-doctest --with-coverage --cover-package datalad_helloworld datalad_helloworld |
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,47 @@ | ||
name: win2019 | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
|
||
runs-on: windows-2019 | ||
|
||
steps: | ||
- name: Configure windows system | ||
run: | | ||
# https://support.microsoft.com/en-us/help/121007/how-to-disable-8-3-file-name-creation-on-ntfs-partitions | ||
fsutil.exe behavior set disable8dot3 1 | ||
- name: Set up environment | ||
run: | | ||
git config --global user.email "test@github.land" | ||
git config --global user.name "GitHub Almighty" | ||
- uses: actions/checkout@v1 | ||
# on windows it makes sense to aim for the latest, nothing comes with the system | ||
# anyways | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
- name: Set up git-annex | ||
run: | | ||
# latest version | ||
python -c "import urllib.request as r; r.urlretrieve('https://downloads.kitenet.net/git-annex/windows/current/git-annex-installer.exe', 'C:\\git-annex-installer.exe')" | ||
# specific version mih uses to debug on real win10 box | ||
7z x -o"C:\\Program Files\Git" C:\\git-annex-installer.exe | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements-devel.txt | ||
pip install colorama | ||
- name: Installation | ||
run: | | ||
# package install | ||
python -m pip install . | ||
- name: Run tests | ||
run: | | ||
mkdir -p __testhome__ | ||
cd __testhome__ | ||
# give detailed info on actual test setup | ||
datalad wtf | ||
python -m nose -s -v --with-doctest --with-coverage --cover-package datalad_helloworld datalad_helloworld |
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 |
---|---|---|
|
@@ -5,5 +5,8 @@ | |
*.py[coe] | ||
.#* | ||
.*.swp | ||
pip-wheel-metadata | ||
docs/build | ||
docs/source/generated | ||
build/ | ||
dist/ |
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,2 @@ | ||
include versioneer.py | ||
include datalad_helloworld/_version.py |
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,14 @@ | ||
PYTHON ?= python | ||
|
||
clean: | ||
$(PYTHON) setup.py clean | ||
rm -rf dist build bin docs/build docs/source/generated *.egg-info | ||
-find . -name '*.pyc' -delete | ||
-find . -name '__pycache__' -type d -delete | ||
|
||
release-pypi: | ||
# avoid upload of stale builds | ||
test ! -e dist | ||
$(PYTHON) setup.py sdist | ||
python setup.py bdist_wheel --universal | ||
twine upload dist/* |
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.