Browse Source

renamed project to sensospot_grid

main
Holger Frey 4 years ago
parent
commit
5ce0f2268b
  1. 6
      .pre-commit-config.yaml
  2. 14
      CONTRIBUTING.md
  3. 12
      Makefile
  4. 8
      pyproject.toml
  5. 2
      run.py
  6. 0
      sensospot_grid/__init__.py
  7. 0
      sensospot_grid/arial.ttf
  8. 0
      sensospot_grid/images.py
  9. 0
      sensospot_grid/parameters.py
  10. 2
      tox.ini

6
.pre-commit-config.yaml

@ -13,7 +13,7 @@ repos: @@ -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: @@ -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

14
CONTRIBUTING.md

@ -11,7 +11,7 @@ Types of Contributions @@ -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. @@ -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: @@ -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 @@ -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 <new version>

12
Makefile

@ -51,16 +51,16 @@ clean-test: ## remove test and coverage artifacts @@ -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 @@ -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 @@ -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

8
pyproject.toml

@ -5,11 +5,11 @@ requires = ["flit"] @@ -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 = [ @@ -49,7 +49,7 @@ dev = [
]
[tool.flit.scripts]
sensospot_images = "sensospot_images:run"
sensospot_grid = "sensospot_grid:run"
[tool.black]
line-length = 79

2
run.py

@ -1,7 +1,7 @@ @@ -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

0
sensospot_images/__init__.py → sensospot_grid/__init__.py

0
sensospot_images/arial.ttf → sensospot_grid/arial.ttf

0
sensospot_images/images.py → sensospot_grid/images.py

0
sensospot_images/parameters.py → sensospot_grid/parameters.py

2
tox.ini

@ -11,4 +11,4 @@ deps = @@ -11,4 +11,4 @@ deps =
pip>=20.0.2
changedir = {toxinidir}/tests
commands = pytest --cov=sensospot_images
commands = pytest --cov=sensospot_grid

Loading…
Cancel
Save