From 82dc63713a349c37286be24594de56ba55b8e36a Mon Sep 17 00:00:00 2001 From: ajshedivy Date: Fri, 19 Apr 2024 15:35:12 -0500 Subject: [PATCH] rename module --- .github/CONTRIBUTING.md | 2 +- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- .github/workflows/pr_checks.yml | 2 +- Makefile | 4 ++-- RELEASE_PROCESS.md | 2 +- pyproject.toml | 4 ++-- scripts/release.sh | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 6c15574..ffdc11c 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -139,7 +139,7 @@ When you're ready to contribute code to address an open issue, please follow the We also strive to maintain high test coverage, so most contributions should include additions to [the unit tests](https://github.com/ajshedivy/python-sc/tree/main/tests). These tests are run with [`pytest`](https://docs.pytest.org/en/latest/), which you can use to locally run any test modules that you've added or changed. - For example, if you've fixed a bug in `python_sc/a/b.py`, you can run the tests specific to that module with + For example, if you've fixed a bug in `python_wsdb/a/b.py`, you can run the tests specific to that module with pytest -v tests/a/b_test.py diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index d3ac39b..fbc258c 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -17,7 +17,7 @@ body: ```python # All necessary imports at the beginning - import python_sc + import python_wsdb # A succinct reproducing example trimmed down to the essential parts: assert False is True, "Oh no!" diff --git a/.github/workflows/pr_checks.yml b/.github/workflows/pr_checks.yml index 9011d99..caf2997 100644 --- a/.github/workflows/pr_checks.yml +++ b/.github/workflows/pr_checks.yml @@ -9,7 +9,7 @@ on: branches: - main paths: - - 'python_sc/**' + - 'python_wsdb/**' jobs: changelog: diff --git a/Makefile b/Makefile index 1f8d1f8..f8984d9 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .PHONY : docs docs : rm -rf docs/build/ - sphinx-autobuild -b html --watch python_sc/ docs/source/ docs/build/ + sphinx-autobuild -b html --watch python_wsdb/ docs/source/ docs/build/ .PHONY : run-checks run-checks : @@ -9,7 +9,7 @@ run-checks : black --check . ruff check . mypy . - CUDA_VISIBLE_DEVICES='' pytest -v --color=yes --doctest-modules tests/ python_sc/ + CUDA_VISIBLE_DEVICES='' pytest -v --color=yes --doctest-modules tests/ python_wsdb/ .PHONY : build build : diff --git a/RELEASE_PROCESS.md b/RELEASE_PROCESS.md index 00408f8..54660e4 100644 --- a/RELEASE_PROCESS.md +++ b/RELEASE_PROCESS.md @@ -2,7 +2,7 @@ ## Steps -1. Update the version in `python_sc/version.py`. +1. Update the version in `python_wsdb/version.py`. 3. Run the release script: diff --git a/pyproject.toml b/pyproject.toml index 31724e0..39c8dce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,10 +65,10 @@ exclude = [ include-package-data = true [tool.setuptools.package-data] -python_sc = ["py.typed"] +python_wsdb = ["py.typed"] [tool.setuptools.dynamic] -version = {attr = "python_sc.version.VERSION"} +version = {attr = "python_wsdb.version.VERSION"} [tool.black] line-length = 100 diff --git a/scripts/release.sh b/scripts/release.sh index e1233e1..82a39ce 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -2,7 +2,7 @@ set -e -TAG=$(python -c 'from python_sc.version import VERSION; print("v" + VERSION)') +TAG=$(python -c 'from python_wsdb.version import VERSION; print("v" + VERSION)') read -p "Creating new release for $TAG. Do you want to continue? [Y/n] " prompt