mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-15 12:47:56 +08:00
20
.travis.yml
20
.travis.yml
@@ -1,8 +1,8 @@
|
||||
language: python
|
||||
python:
|
||||
- "3.6"
|
||||
dist: xenial
|
||||
sudo: required
|
||||
node_js:
|
||||
- "8"
|
||||
- 8
|
||||
cache:
|
||||
pip: true
|
||||
install:
|
||||
@@ -15,14 +15,12 @@ install:
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- name: "Branch Tests"
|
||||
script:
|
||||
- set -eo pipefail
|
||||
- flake8 server
|
||||
- black --check
|
||||
- npm run --prefix client/ build
|
||||
- npm run --prefix client/ unit-test
|
||||
- pytest -s server/test
|
||||
- name: "Branch Tests 3.7"
|
||||
python: "3.7"
|
||||
script: ./travis-build.sh
|
||||
- name: "Branch Tests 3.6"
|
||||
python: "3.6"
|
||||
script: ./travis-build.sh
|
||||
- name: "Smoke Tests"
|
||||
if: branch = master AND type = cron
|
||||
script:
|
||||
|
||||
2
makefile
2
makefile
@@ -123,6 +123,6 @@ install-release : uninstall
|
||||
@echo "Installed cellxgene from pypi.org"
|
||||
|
||||
uninstall :
|
||||
yes | pip uninstall cellxgene || true
|
||||
pip uninstall -y cellxgene || :
|
||||
|
||||
.PHONY : install install-dev install-release-test install-release uninstall
|
||||
|
||||
@@ -12,3 +12,4 @@ pandas>=0.23.1
|
||||
scanpy>=1.3.2
|
||||
scipy>=1.1.0
|
||||
scikit-learn>=0.19.1,!=0.20.0
|
||||
tables>=3.5.1
|
||||
|
||||
10
setup.py
10
setup.py
@@ -1,13 +1,4 @@
|
||||
from setuptools import setup, find_packages
|
||||
import sys
|
||||
|
||||
if sys.version_info[0:2] != (3, 6):
|
||||
raise ImportError(
|
||||
"cellxgene currently only supports python 3.6. Python 3.7 is known to fail; we will look at supporting "
|
||||
"versions other than 3.6 in the future."
|
||||
"See https://github.com/chanzuckerberg/cellxgene#conda-and-virtual-environments "
|
||||
"for more help with installation."
|
||||
)
|
||||
|
||||
with open("README.md", "rb") as fh:
|
||||
long_description = fh.read().decode()
|
||||
@@ -40,6 +31,7 @@ setup(
|
||||
"Programming Language :: JavaScript",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.6",
|
||||
"Programming Language :: Python :: 3.7",
|
||||
"Programming Language :: Python :: 3 :: Only",
|
||||
"Topic :: Scientific/Engineering :: Bio-Informatics",
|
||||
],
|
||||
|
||||
5
travis-build.sh
Executable file
5
travis-build.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
set -eo pipefail
|
||||
flake8 server
|
||||
npm run --prefix client/ build
|
||||
npm run --prefix client/ unit-test
|
||||
pytest -s server/test
|
||||
Reference in New Issue
Block a user