From 5ce0f2268be2230448981c3a55e11ee1c7b263c4 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Thu, 29 Apr 2021 09:26:20 +0200 Subject: [PATCH] renamed project to sensospot_grid --- .pre-commit-config.yaml | 6 +++--- CONTRIBUTING.md | 14 +++++++------- Makefile | 12 ++++++------ pyproject.toml | 8 ++++---- run.py | 2 +- {sensospot_images => sensospot_grid}/__init__.py | 0 {sensospot_images => sensospot_grid}/arial.ttf | Bin {sensospot_images => sensospot_grid}/images.py | 0 .../parameters.py | 0 tox.ini | 2 +- 10 files changed, 22 insertions(+), 22 deletions(-) rename {sensospot_images => sensospot_grid}/__init__.py (100%) rename {sensospot_images => sensospot_grid}/arial.ttf (100%) rename {sensospot_images => sensospot_grid}/images.py (100%) rename {sensospot_images => sensospot_grid}/parameters.py (100%) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index acf361f..8ea2da6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: hooks: - id: isort-project name: isort_project - entry: isort -rc sensospot_images + entry: isort -rc sensospot_grid language: system pass_filenames: false - id: isort-test @@ -23,12 +23,12 @@ repos: pass_filenames: false - id: black name: black - entry: black sensospot_images tests + entry: black sensospot_grid tests language: system pass_filenames: false - id: flake8 name: flake8 - entry: flake8 sensospot_images tests + entry: flake8 sensospot_grid tests language: system pass_filenames: false - id: pytest diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 822b1d5..2beb882 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -11,7 +11,7 @@ Types of Contributions ### Report Bugs -Report bugs at https://github.com/holgi/sensospot_images/issues. +Report bugs at https://github.com/holgi/sensospot_grid/issues. If you are reporting a bug, please include: @@ -37,7 +37,7 @@ articles, and such. ### Submit Feedback -The best way to send feedback is to file an issue at https://github.com/holgi/sensospot_images/issues. +The best way to send feedback is to file an issue at https://github.com/holgi/sensospot_grid/issues. If you are proposing a feature: @@ -49,16 +49,16 @@ If you are proposing a feature: Get Started! ------------ -Ready to contribute? Here's how to set up `sensospot_images` for local development. +Ready to contribute? Here's how to set up `sensospot_grid` for local development. -1. Fork the `sensospot_images` repo on GitHub. +1. Fork the `sensospot_grid` repo on GitHub. 2. Clone your fork locally:: - `$ git clone git@github.com:your_name_here/sensospot_images.git` + `$ git clone git@github.com:your_name_here/sensospot_grid.git` 3. Install your local copy into a virtualenv. - `$ cd sensospot_images/` + `$ cd sensospot_grid/` `$ make devenv` 4. Create a branch for local development:: @@ -107,7 +107,7 @@ Deploying --------- A reminder for the maintainers on how to deploy. -Bump the version in `sensospot_images/__init__.py` and +Bump the version in `sensospot_grid/__init__.py` and make sure all your changes are committed (including an entry in CHANGES.md). $ git tag diff --git a/Makefile b/Makefile index 171618f..1825765 100644 --- a/Makefile +++ b/Makefile @@ -51,16 +51,16 @@ clean-test: ## remove test and coverage artifacts rm -fr htmlcov/ lint: ## reformat with black and check style with flake8 - isort sensospot_images + isort sensospot_grid isort tests - black sensospot_images tests - flake8 sensospot_images tests + black sensospot_grid tests + flake8 sensospot_grid tests test: lint ## run tests quickly with the default Python pytest tests -x --disable-warnings -m "not app" coverage: lint ## full test suite, check code coverage and open coverage report - pytest tests --cov=sensospot_images + pytest tests --cov=sensospot_grid coverage html $(BROWSER) htmlcov/index.html @@ -71,7 +71,7 @@ install: ## install updated project.toml with flint flit install --pth-file devenv: ## setup development environment - python3 -m venv --prompt sensospot_images .venv + python3 -m venv --prompt sensospot_grid .venv .venv/bin/pip3 install --upgrade pip .venv/bin/pip3 install flit .venv/bin/flit install --pth-file @@ -80,7 +80,7 @@ repo: devenv ## complete project setup with development environment and git repo git init . git add . git commit -m "import of project template" - git remote add origin https://git.cpi.imtek.uni-freiburg.de/holgi/sensospot_images.git + git remote add origin https://git.cpi.imtek.uni-freiburg.de/holgi/sensospot_grid.git git push -u origin main --no-verify .venv/bin/pre-commit install --install-hooks diff --git a/pyproject.toml b/pyproject.toml index 6d4e05a..b435629 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,11 +5,11 @@ requires = ["flit"] build-backend = "flit.buildapi" [tool.flit.metadata] -module = "sensospot_images" -dist-name = "sensospot_images" +module = "sensospot_grid" +dist-name = "sensospot_grid" author = "Holger Frey" author-email = "frey@imtek.de" -home-page = "https://github.com/holgi/sensospot_images" +home-page = "https://git.cpi.imtek.uni-freiburg.de/holgi/sensospot_grid" description-file = "README.md" license = "Beerware" @@ -49,7 +49,7 @@ dev = [ ] [tool.flit.scripts] -sensospot_images = "sensospot_images:run" +sensospot_grid = "sensospot_grid:run" [tool.black] line-length = 79 diff --git a/run.py b/run.py index 70c9c98..f7a6464 100644 --- a/run.py +++ b/run.py @@ -1,7 +1,7 @@ from pathlib import Path from PIL import Image, ImageDraw, ImageFont -from sensospot_images import process +from sensospot_grid import process from sensospot_data import parse_file from sensospot_data.parameters import _search_measurement_params_file diff --git a/sensospot_images/__init__.py b/sensospot_grid/__init__.py similarity index 100% rename from sensospot_images/__init__.py rename to sensospot_grid/__init__.py diff --git a/sensospot_images/arial.ttf b/sensospot_grid/arial.ttf similarity index 100% rename from sensospot_images/arial.ttf rename to sensospot_grid/arial.ttf diff --git a/sensospot_images/images.py b/sensospot_grid/images.py similarity index 100% rename from sensospot_images/images.py rename to sensospot_grid/images.py diff --git a/sensospot_images/parameters.py b/sensospot_grid/parameters.py similarity index 100% rename from sensospot_images/parameters.py rename to sensospot_grid/parameters.py diff --git a/tox.ini b/tox.ini index e0f73c6..e682b5d 100644 --- a/tox.ini +++ b/tox.ini @@ -11,4 +11,4 @@ deps = pip>=20.0.2 changedir = {toxinidir}/tests -commands = pytest --cov=sensospot_images +commands = pytest --cov=sensospot_grid