-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(API): Setup the library for development
- Loading branch information
Showing
13 changed files
with
98 additions
and
16 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
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 @@ | ||
/api/python/src/cellxgene_ontology_guide/_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
File renamed without changes.
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,11 @@ | ||
install: | ||
pip install -e . | ||
|
||
install-dev: | ||
pip install -e .[test] | ||
|
||
clean: | ||
rm -rf ./build ./src/cellxgene_ontology_guide.egg-info | ||
|
||
unit-tests: | ||
python -m pytest tests |
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 API | ||
|
||
# Install | ||
|
||
```bash | ||
make install | ||
``` | ||
|
||
# Run Unit Tests | ||
|
||
```bash | ||
make install-dev | ||
make unit-tests | ||
``` |
File renamed without changes.
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,35 @@ | ||
[build-system] | ||
requires = ["setuptools>=69", "setuptools-scm>=8"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "cellxgene_ontology_guide" | ||
dynamic = ["version"] | ||
description = "Access ontology data used by CZ cellxgene" | ||
authors = [ | ||
{ name = "Chan Zuckerberg Initiative Foundation", email = "[email protected]" } | ||
] | ||
license = { text = "MIT" } | ||
readme = "README.md" | ||
requires-python = "~= 3.11" | ||
dependencies = [ | ||
"owlready2" | ||
] | ||
|
||
[project.optional-dependencies] | ||
test = ["pytest"] | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
include = ["cellxgene_ontology_guide"] | ||
|
||
[tool.pytest.ini_options] | ||
pythonpath = ["src/cellxgene_ontology_guide"] | ||
|
||
[tool.setuptools_scm] | ||
version_file = "src/cellxgene_ontology_guide/_version.py" | ||
version_scheme = "python-simplified-semver" | ||
root = "../.." | ||
relative_to = "__file__" | ||
#TODO: setup the github tag for the pypi releases so setuptools-SCM can identify it using a python regex | ||
#tag_regex="^python-api-(?P<version>[vV]?\d+(?:\.\d+){0,2}[^\+]*)(?:\+.*)?$')" |
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,3 @@ | ||
import _version | ||
|
||
__version__ = _version.__version__ |
File renamed without changes.
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,5 @@ | ||
import cellxgene_ontology_guide | ||
|
||
|
||
def test_version(): | ||
assert cellxgene_ontology_guide.__version__ |
Binary file modified
BIN
-158 KB
(99%)
tools/ontology-builder/src/ontology-references/all_ontology.json.gz
Binary file not shown.