-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Use importlib.metadata for versioning (#195)
* build: Use importlib.metadata for versioning * docs: Use importlib.metadata for version
- Loading branch information
Showing
6 changed files
with
255 additions
and
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,150 @@ | ||
from ._version import __version__ | ||
from .core import * | ||
from .io import * | ||
from .ops import * | ||
from .extras import * | ||
from .vis import * | ||
try: | ||
from importlib.metadata import PackageNotFoundError, version | ||
except ImportError: | ||
from importlib_metadata import PackageNotFoundError, version | ||
|
||
try: | ||
__version__ = version("bioframe") | ||
except PackageNotFoundError: | ||
__version__ = "unknown" | ||
|
||
__all__ = [ | ||
"arrops", | ||
"from_any", | ||
"from_dict", | ||
"from_list", | ||
"from_series", | ||
"is_bedframe", | ||
"is_cataloged", | ||
"is_chrom_dtype", | ||
"is_complete_ucsc_string", | ||
"is_contained", | ||
"is_covering", | ||
"is_overlapping", | ||
"is_sorted", | ||
"is_tiling", | ||
"is_viewframe", | ||
"make_viewframe", | ||
"parse_region", | ||
"parse_region_string", | ||
"sanitize_bedframe", | ||
"to_ucsc_string", | ||
"update_default_colnames", | ||
"binnify", | ||
"digest", | ||
"frac_gc", | ||
"frac_gene_coverage", | ||
"frac_mapped", | ||
"make_chromarms", | ||
"pair_by_distance", | ||
"seq_gc", | ||
"SCHEMAS", | ||
"UCSCClient", | ||
"assemblies_available", | ||
"assembly_info", | ||
"fetch_centromeres", | ||
"fetch_chromsizes", | ||
"load_fasta", | ||
"read_bam", | ||
"read_bigbed", | ||
"read_bigwig", | ||
"read_chromsizes", | ||
"read_pairix", | ||
"read_tabix", | ||
"read_table", | ||
"to_bigbed", | ||
"to_bigwig", | ||
"assign_view", | ||
"closest", | ||
"cluster", | ||
"complement", | ||
"count_overlaps", | ||
"coverage", | ||
"expand", | ||
"merge", | ||
"overlap", | ||
"select", | ||
"select_indices", | ||
"select_labels", | ||
"select_mask", | ||
"setdiff", | ||
"sort_bedframe", | ||
"subtract", | ||
"trim", | ||
"plot_intervals", | ||
"to_ucsc_colorstring", | ||
] | ||
|
||
from .core import ( | ||
arrops, | ||
from_any, | ||
from_dict, | ||
from_list, | ||
from_series, | ||
is_bedframe, | ||
is_cataloged, | ||
is_chrom_dtype, | ||
is_complete_ucsc_string, | ||
is_contained, | ||
is_covering, | ||
is_overlapping, | ||
is_sorted, | ||
is_tiling, | ||
is_viewframe, | ||
make_viewframe, | ||
parse_region, | ||
parse_region_string, | ||
sanitize_bedframe, | ||
to_ucsc_string, | ||
update_default_colnames, | ||
) | ||
from .extras import ( | ||
binnify, | ||
digest, | ||
frac_gc, | ||
frac_gene_coverage, | ||
frac_mapped, | ||
make_chromarms, | ||
pair_by_distance, | ||
seq_gc, | ||
) | ||
from .io import ( | ||
SCHEMAS, | ||
UCSCClient, | ||
assemblies_available, | ||
assembly_info, | ||
fetch_centromeres, | ||
fetch_chromsizes, | ||
load_fasta, | ||
read_bam, | ||
read_bigbed, | ||
read_bigwig, | ||
read_chromsizes, | ||
read_pairix, | ||
read_tabix, | ||
read_table, | ||
to_bigbed, | ||
to_bigwig, | ||
) | ||
from .ops import ( | ||
assign_view, | ||
closest, | ||
cluster, | ||
complement, | ||
count_overlaps, | ||
coverage, | ||
expand, | ||
merge, | ||
overlap, | ||
select, | ||
select_indices, | ||
select_labels, | ||
select_mask, | ||
setdiff, | ||
sort_bedframe, | ||
subtract, | ||
trim, | ||
) | ||
from .vis import plot_intervals, to_ucsc_colorstring | ||
|
||
del version, PackageNotFoundError |
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 |
---|---|---|
@@ -1,21 +1,50 @@ | ||
from . import arrops | ||
|
||
from . import specs | ||
from .specs import * | ||
|
||
from . import stringops | ||
from .stringops import * | ||
|
||
from . import checks | ||
from .checks import * | ||
|
||
from . import construction | ||
from .construction import * | ||
from .checks import ( | ||
is_bedframe, | ||
is_cataloged, | ||
is_contained, | ||
is_covering, | ||
is_overlapping, | ||
is_sorted, | ||
is_tiling, | ||
is_viewframe, | ||
) | ||
from .construction import ( | ||
from_any, | ||
from_dict, | ||
from_list, | ||
from_series, | ||
make_viewframe, | ||
sanitize_bedframe, | ||
) | ||
from .specs import is_chrom_dtype, update_default_colnames | ||
from .stringops import ( | ||
is_complete_ucsc_string, | ||
parse_region, | ||
parse_region_string, | ||
to_ucsc_string, | ||
) | ||
|
||
__all__ = [ | ||
"arrops", | ||
*specs.__all__, | ||
*stringops.__all__, | ||
*checks.__all__, | ||
*construction.__all__, | ||
"is_bedframe", | ||
"is_cataloged", | ||
"is_contained", | ||
"is_covering", | ||
"is_overlapping", | ||
"is_sorted", | ||
"is_tiling", | ||
"is_viewframe", | ||
"from_any", | ||
"from_dict", | ||
"from_list", | ||
"from_series", | ||
"make_viewframe", | ||
"sanitize_bedframe", | ||
"is_chrom_dtype", | ||
"update_default_colnames", | ||
"is_complete_ucsc_string", | ||
"parse_region", | ||
"parse_region_string", | ||
"to_ucsc_string", | ||
] |
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 |
---|---|---|
@@ -1,17 +1,34 @@ | ||
from .assembly import assemblies_available, assembly_info | ||
from .fileops import ( | ||
load_fasta, | ||
read_bam, | ||
read_bigbed, | ||
read_bigwig, | ||
read_chromsizes, | ||
read_pairix, | ||
read_tabix, | ||
read_table, | ||
to_bigbed, | ||
to_bigwig, | ||
) | ||
from .resources import UCSCClient, fetch_centromeres, fetch_chromsizes | ||
from .schemas import SCHEMAS | ||
|
||
from . import fileops | ||
from .fileops import * | ||
|
||
from . import resources | ||
from .resources import * | ||
|
||
from . import assembly | ||
from .assembly import * | ||
|
||
__all__ = [ | ||
"assemblies_available", | ||
"assembly_info", | ||
"read_table", | ||
"read_chromsizes", | ||
"read_tabix", | ||
"read_pairix", | ||
"read_bam", | ||
"load_fasta", | ||
"read_bigwig", | ||
"to_bigwig", | ||
"read_bigbed", | ||
"to_bigbed", | ||
"UCSCClient", | ||
"fetch_centromeres", | ||
"fetch_chromsizes", | ||
"SCHEMAS", | ||
*fileops.__all__, | ||
*resources.__all__, | ||
*assembly.__all__, | ||
] |
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
Oops, something went wrong.