Loading .flake8 0 → 100644 +16 −0 Original line number Diff line number Diff line [flake8] ignore = D1, D401 exclude = # No need to traverse our git directory .git, # There's no value in checking cache directories __pycache__, # The conf file is mostly autogenerated, ignore it# docs, # This contains our built documentation build, .eggs, .pkg, .tox, max-complexity = 10 max-line-length = 160 .gitattributes 0 → 100644 +1 −0 Original line number Diff line number Diff line *.ets filter=lfs diff=lfs merge=lfs -text .gitignore 0 → 100644 +64 −0 Original line number Diff line number Diff line # Prerequisites *.d # Compiled Object files *.slo *.lo *.o *.obj # Precompiled Headers *.gch *.pch # Compiled Dynamic libraries *.dylib *.dll # Fortran module files *.mod *.smod # Compiled Static libraries *.lai *.la *.a *.lib # Executables *.exe *.out *.app # Vim *.swp *.bak *~ # Python *.pyc #automake autoconfig.h* # Miscellaneous compilation files/directories .libs/ build-ext/ build/ htmlcov/ .eggs/* dist/ .vscode TODO*.md .tox .pytest_cache .coverage **/.ipynb_checkpoints/** docs/build/* *.idea *.egg-info/ .recipe/out **/*.c out/* __pycache__/* .venv/* .gitlab-ci.yml 0 → 100644 +83 −0 Original line number Diff line number Diff line image: conda/miniconda3 stages: - lint - test - build - deploy lint: stage: lint script: - conda install python=3.6 - pip install -e . - pip install flake8 pep8-naming flake8-docstrings - flake8 --config=.flake8 scared tests setup.py test: stage: test script: - conda install python=3.6 psutil pycrypto - python setup.py test -v build:pypi: stage: build script: - conda install python=3.6 - pip install -U pip setuptools wheel - python setup.py sdist bdist_wheel only: - tags artifacts: paths: - "dist/*" deploy:pypi: stage: deploy only: - tags when: manual script: - conda install python=3.6 - pip install -U pip setuptools wheel twine - twine upload --repository-url $PYPI_REPOSITORY dist/* -u $PYPI_USERNAME -p $PYPI_PWD build:conda: stage: build script: - conda install python=3.6 conda-build conda-verify - conda config --add channels $ANACONDA_CHANNEL - conda build --output-folder out .recipe only: - tags artifacts: paths: - "out/*/*.tar.bz2" deploy:conda: stage: deploy script: - conda install python=3.6 anaconda-client - conda config --add channels $ANACONDA_CHANNEL - anaconda login --username $ANACONDA_USERNAME --password $ANACONDA_PWD - anaconda upload out/linux-64/scared*.bz2 only: - tags when: manual artifacts: paths: - "out/*/*.tar.bz2" pages: stage: build script: - conda install python=3.6 - pip install -e . - cd docs - ./build_doc.sh artifacts: paths: - public only: - tags .recipe/build.sh 0 → 100644 +9 −0 Original line number Diff line number Diff line #vim : set ft=sh et: cd $SRC_DIR $PYTHON setup.py sdist $PYTHON setup.py bdist_wheel $PYTHON setup.py install --single-version-externally-managed --record=record.txt Loading
.flake8 0 → 100644 +16 −0 Original line number Diff line number Diff line [flake8] ignore = D1, D401 exclude = # No need to traverse our git directory .git, # There's no value in checking cache directories __pycache__, # The conf file is mostly autogenerated, ignore it# docs, # This contains our built documentation build, .eggs, .pkg, .tox, max-complexity = 10 max-line-length = 160
.gitattributes 0 → 100644 +1 −0 Original line number Diff line number Diff line *.ets filter=lfs diff=lfs merge=lfs -text
.gitignore 0 → 100644 +64 −0 Original line number Diff line number Diff line # Prerequisites *.d # Compiled Object files *.slo *.lo *.o *.obj # Precompiled Headers *.gch *.pch # Compiled Dynamic libraries *.dylib *.dll # Fortran module files *.mod *.smod # Compiled Static libraries *.lai *.la *.a *.lib # Executables *.exe *.out *.app # Vim *.swp *.bak *~ # Python *.pyc #automake autoconfig.h* # Miscellaneous compilation files/directories .libs/ build-ext/ build/ htmlcov/ .eggs/* dist/ .vscode TODO*.md .tox .pytest_cache .coverage **/.ipynb_checkpoints/** docs/build/* *.idea *.egg-info/ .recipe/out **/*.c out/* __pycache__/* .venv/*
.gitlab-ci.yml 0 → 100644 +83 −0 Original line number Diff line number Diff line image: conda/miniconda3 stages: - lint - test - build - deploy lint: stage: lint script: - conda install python=3.6 - pip install -e . - pip install flake8 pep8-naming flake8-docstrings - flake8 --config=.flake8 scared tests setup.py test: stage: test script: - conda install python=3.6 psutil pycrypto - python setup.py test -v build:pypi: stage: build script: - conda install python=3.6 - pip install -U pip setuptools wheel - python setup.py sdist bdist_wheel only: - tags artifacts: paths: - "dist/*" deploy:pypi: stage: deploy only: - tags when: manual script: - conda install python=3.6 - pip install -U pip setuptools wheel twine - twine upload --repository-url $PYPI_REPOSITORY dist/* -u $PYPI_USERNAME -p $PYPI_PWD build:conda: stage: build script: - conda install python=3.6 conda-build conda-verify - conda config --add channels $ANACONDA_CHANNEL - conda build --output-folder out .recipe only: - tags artifacts: paths: - "out/*/*.tar.bz2" deploy:conda: stage: deploy script: - conda install python=3.6 anaconda-client - conda config --add channels $ANACONDA_CHANNEL - anaconda login --username $ANACONDA_USERNAME --password $ANACONDA_PWD - anaconda upload out/linux-64/scared*.bz2 only: - tags when: manual artifacts: paths: - "out/*/*.tar.bz2" pages: stage: build script: - conda install python=3.6 - pip install -e . - cd docs - ./build_doc.sh artifacts: paths: - public only: - tags
.recipe/build.sh 0 → 100644 +9 −0 Original line number Diff line number Diff line #vim : set ft=sh et: cd $SRC_DIR $PYTHON setup.py sdist $PYTHON setup.py bdist_wheel $PYTHON setup.py install --single-version-externally-managed --record=record.txt