Skip to content

Commit 1cb396e

Browse files
committed
minor doc updates
1 parent 5bfdd1e commit 1cb396e

File tree

6 files changed

+664
-25
lines changed

6 files changed

+664
-25
lines changed

.mailmap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# I pick the account with the most modified files in git shortlog -sne
2-
# This is used by Git to consolidate the users who used multiple accounts
31
Andreas Prlic <[email protected]> Andreas Prlic <[email protected]>
42
Andreas Prlic <[email protected]> Andreas Prlic <[email protected]>
53
Caitlin Gong <[email protected]> Caitlin Gong <[email protected]>
4+
# I pick the account with the most modified files in git shortlog -sne
65
Katie Stahl <[email protected]> katie stahl <[email protected]>
76
Manuel Holtgrewe <[email protected]> Manuel Holtgrewe <[email protected]>
87
98
Reece Hart <[email protected]> Reece Hart <[email protected]>
109
Reece Hart <[email protected]> Reece Hart <[email protected]>
11-
Reece Hart <[email protected]> Reece Hart <[email protected]>
1210
Reece Hart <[email protected]> Reece Hart <[email protected]>
11+
Reece Hart <[email protected]> Reece Hart <[email protected]>
1312
Rudy Rico <[email protected]> Rudolph Rico <[email protected]>
13+
# This is used by Git to consolidate the users who used multiple accounts

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ help: ## Display help message
2121
install: devready
2222
.PHONY: devready
2323
devready: ## Prepare local dev env: Create virtual env, install the pre-commit hooks
24-
$(call INFO_MESSAGE, Prepare local dev env: Create virtual env and install the pre-commit hooks)
24+
$(call INFO_MESSAGE, "⚙️ Prepare local dev env: Create virtual env and install the pre-commit hooks")
2525
uv sync --dev
2626
uv run pre-commit install
27-
@echo '⚠️ You must activate the virtual env with `source .venv/bin/activate`'
27+
@echo '⚠️ Activate the virtual env with `source .venv/bin/activate`'
2828

2929
.PHONY: build
3030
build: ## Build package
31-
$(call INFO_MESSAGE, "Building package")
31+
$(call INFO_MESSAGE, "🛠️ Build package")
3232
rm -fr dist
3333
uv build
3434

3535
.PHONY: publish
36-
publish: build ## publish package to PyPI
37-
$(call INFO_MESSAGE, "Publishing package")
36+
publish: build ## Publish package to PyPI
37+
$(call INFO_MESSAGE, "Publish package to PyPI")
3838
uv publish # Requires UV_PUBLISH_TOKEN or Trusted Publishing setup
3939

4040
############################################################################
@@ -72,20 +72,20 @@ docs-test: ## Test if documentation can be built without warnings or errors
7272

7373
.PHONY: clean
7474
clean: ## Remove temporary and backup files
75-
$(call INFO_MESSAGE, "Remove temporary and backup files")
75+
$(call INFO_MESSAGE, "🧹 Remove temporary and backup files")
7676
find . \( -name "*~" -o -name "*.bak" \) -exec rm -frv {} +
7777

7878
.PHONY: cleaner
7979
cleaner: clean ## Remove files and directories that are easily rebuilt
80-
$(call INFO_MESSAGE, "Remove files and directories that are easily rebuilt")
80+
$(call INFO_MESSAGE, "🗑️ Remove files and directories that are easily rebuilt")
8181
rm -frv .cache .DS_Store .pytest_cache .ruff_cache build coverage.xml dist docs/_build site
8282
find . \( -name __pycache__ -type d \) -exec rm -frv {} +
8383
find . \( -name "*.pyc" -o -name "*.egg-info" \) -exec rm -frv {} +
8484
find . \( -name "*.orig" -o -name "*.rej" \) -exec rm -frv {} +
8585

8686
.PHONY: cleanest
87-
cleanest: cleaner ## Remove all files that can be rebuilt
88-
$(call INFO_MESSAGE, "Remove files and directories that can be rebuilt")
87+
cleanest: cleaner ## Remove files and directories that can be rebuilt
88+
$(call INFO_MESSAGE, "🗑️🔥 Remove files and directories that can be rebuilt")
8989
rm -frv .eggs .tox .venv venv
9090

9191
.PHONY: distclean

pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,27 @@ authors = [
2323
{email = "[email protected]", name = "biocommons contributors"}
2424
]
2525
classifiers = [
26+
"Development Status :: 5 - Production/Stable",
2627
"Intended Audience :: Developers",
2728
"Programming Language :: Python :: 3",
2829
"Programming Language :: Python :: 3.11",
2930
"Programming Language :: Python :: 3.12",
3031
"Programming Language :: Python :: 3.13",
3132
"Programming Language :: Python",
33+
"Topic :: Scientific/Engineering :: Bio-Informatics",
34+
"Topic :: Scientific/Engineering :: Medical Science Apps.",
3235
"Topic :: Software Development :: Libraries :: Python Modules"
3336
]
3437
dependencies = ["coloredlogs ~= 15.0", "pyyaml ~= 6.0"]
3538
description = "biocommons.example package (namespaced)"
3639
dynamic = ["version"]
3740
keywords = [
38-
"HGVS",
3941
"biocommons",
4042
"bioinformatics",
43+
"computational biology",
44+
"genome variation",
4145
"genomics",
46+
"hgvs",
4247
"variation"
4348
]
4449
license = "Apache-2.0"
@@ -192,10 +197,13 @@ select = [
192197

193198
[tool.setuptools]
194199
include-package-data = true
200+
package-dir = {"" = "src"}
201+
zip-safe = true
195202

196203
[tool.setuptools.package-data]
197204
# "*" = ["_data/*/*.json.gz"]
198205
# "*" = ["*.gz", "*.json", "*.yaml"]
206+
# hgvs = ["_data/*"]
199207

200208
[tool.setuptools.packages.find]
201209
exclude = ["*.pyc", "__pycache__"]

sbin/makefile-extract-documentation

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,24 @@
1010
import fileinput
1111
import re
1212

13-
BOLD = "\033[1m"
14-
COMMAND_COLOR = "\033[36m"
15-
HEADER_COLOR = "\033[32m"
16-
RESET = "\033[0m"
17-
SECTION_COLOR = "\033[93m"
18-
UNDERLINE = "\033[4m"
13+
CSI = "\033["
14+
BOLD = CSI + "1m"
15+
COMMAND_COLOR = CSI + "36m"
16+
HEADER_COLOR = CSI + "32m"
17+
RESET = CSI + "0m"
18+
SECTION_COLOR = CSI + "95m"
19+
UNDERLINE = CSI + "4m"
1920

20-
print(f"""🌟🌟 {BOLD}{HEADER_COLOR}{UNDERLINE}biocommons conventional make targets{RESET} 🌟🌟
21+
print(f"""🌟🌟 {BOLD}{HEADER_COLOR}{UNDERLINE}MAKE TARGETS{RESET} 🌟🌟
2122
22-
Using these targets promots consistency between local development and ci/cd commands.
23+
usage: make [target ...]
2324
24-
usage: make [target ...]""")
25+
biocommons packages consolidate command invocations in make targets to promote
26+
consistency across developers and environments (including GitHub actions). Using
27+
other invocations is not supported and will be ignored in bug reports.
28+
29+
This makefile supports the following targets:
30+
""")
2531

2632
for line in fileinput.input(): # noqa: SIM115
2733
if m := re.match(r"#= (.+)", line):

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ python =
99
3.13: py313
1010

1111
[testenv]
12-
passenv = PYTHON_VERSION
1312
allowlist_externals = uv
1413
commands =
1514
uv sync --python {envpython}
1615
uv run python -m pytest --doctest-modules tests --cov --cov-config=pyproject.toml --cov-report=xml
1716
ty check
17+
passenv = PYTHON_VERSION

0 commit comments

Comments
 (0)