Skip to content
This repository has been archived by the owner on Oct 6, 2021. It is now read-only.

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson committed Jan 24, 2020
1 parent a6ed3cc commit 1b9ccd0
Show file tree
Hide file tree
Showing 6 changed files with 199 additions and 0 deletions.
119 changes: 119 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
# Custom config files
*.conf.custom

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# Cython
*.c
*.cpp

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
doc/build/

# pydocmd
_build/
mkdocs.yml

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/

.idea/
.vs/
*.~lock.*
36 changes: 36 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
language: python
matrix:
include:
- os: linux
python: 3.6
dist: bionic
- os: linux
python: 3.7
dist: bionic
- os: linux
python: 3.8
dist: bionic
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda info -a

install:
- conda create -n test-environment python=$TRAVIS_PYTHON_VERSION
- source activate test-environment
- pip install -e .[dev]
- conda info -a
after_success:
- coveralls
script:
- black ./ -l 79 --check
- travis_wait 40 bash travis/run_tests.sh
notifications:
email:
recipients:
- adam.tyson@ucl.ac.uk
on_success: change
on_failure: always
Empty file added neuro/__init__.py
Empty file.
41 changes: 41 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
from setuptools import setup, find_namespace_packages

requirements = ["brainrender", "napari"]


setup(
name="neuro",
version="0.0.1a",
description="Visualisation and analysis of brain imaging data",
install_requires=requirements,
extras_require={
"dev": [
"sphinx",
"recommonmark",
"sphinx_rtd_theme",
"pydoc-markdown",
"black",
"pytest-cov",
"pytest",
"gitpython",
"coveralls",
"coverage<=4.5.4",
]
},
python_requires=">=3.6",
packages=find_namespace_packages(exclude=("docs", "tests*")),
include_package_data=True,
url="https://github.com/SainsburyWellcomeCentre/neuro",
author="Adam Tyson",
author_email="adam.tyson@ucl.ac.uk",
classifiers=[
"Development Status :: 3 - Alpha",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
],
zip_safe=False,
)
2 changes: 2 additions & 0 deletions tests/tests/test_nothing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_nothing():
assert True
1 change: 1 addition & 0 deletions travis/run_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pytest --cov=neuro

0 comments on commit 1b9ccd0

Please sign in to comment.