Skip to content

Commit

Permalink
Mccalluc/make package (#40)
Browse files Browse the repository at this point in the history
* move to subdir

* dependencies

* requirements: .

* pull version from file
  • Loading branch information
mccalluc authored Mar 16, 2022
1 parent 4a14a10 commit 7fafb26
Show file tree
Hide file tree
Showing 17 changed files with 40 additions and 6 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# portal-visualization
Given HuBMAP Dataset JSON, creates a Vitessce configuration.
Included as a submodule in [portal-ui](https://github.com/hubmapconsortium/portal-ui).
Included as a python package in [portal-ui](https://github.com/hubmapconsortium/portal-ui):
If there are updates here that need to be visible there:
- bump `VERSION.txt`.
- make a new git tag: `V=$(cat VERSION.txt); git tag $V; git push origin $V`.
- update portal-ui `requirements.txt`.

## Background

Expand Down
1 change: 1 addition & 0 deletions VERSION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.1
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools>=42"]
build-backend = "setuptools.build_meta"
6 changes: 2 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
vitessce==1.0.5
hubmap-commons==2.0.12
requests==2.27.1
nbformat==5.1.3
.
# Specified in setup.cfg
28 changes: 28 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
[metadata]
name = portal-visualization
version = file: VERSION.txt
author = Chuck McCallum
author_email = [email protected]
description = Given HuBMAP Dataset JSON, creates a Vitessce configuration.
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/hubmapconsortium/portal-visualization
classifiers =
Programming Language :: Python :: 3
License :: OSI Approved :: MIT License
Operating System :: OS Independent

[options]
package_dir =
= src
packages = find:
python_requires = >=3.6
install_requires =
vitessce==1.0.5
hubmap-commons>=2.0.12
requests>=2.27.1
nbformat==5.1.3

[options.packages.find]
where = src

[flake8]
max-line-length = 99
ignore =
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/test_builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from hubmap_commons.type_client import TypeClient

from src.builder_factory import get_view_config_builder, has_visualization
from src.portal_visualization.builder_factory import get_view_config_builder, has_visualization


@dataclass
Expand Down

0 comments on commit 7fafb26

Please sign in to comment.