Skip to content

Commit

Permalink
Add project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson authored Apr 30, 2020
1 parent 6f2ca63 commit d4de359
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,11 @@ dmypy.json

# Pyre type checker
.pyre/

.idea/
.vs/
*.~lock.*


# macOS
*.DS_Store
41 changes: 41 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
language: python
matrix:
include:
- os: linux
python: 3.6
dist: bionic
- os: linux
python: 3.7
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:
- [email protected]
on_success: change
on_failure: always
#deploy:
# - provider: pypi
# user: __token__
# distributions: sdist bdist_wheel
# skip_existing: true
# on:
# branch: master
# tags: true
Empty file added brainglobe/__init__.py
Empty file.
33 changes: 33 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
from setuptools import setup, find_namespace_packages

requirements = []


setup(
name="brainglobe",
version="0.0.1a",
description="TBC",
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/brainglobe/brainglobe",
author="TBC",
author_email="[email protected]",
classifiers=["Development Status :: 3 - Alpha",],
zip_safe=False,
)
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=brainglobe

0 comments on commit d4de359

Please sign in to comment.