Skip to content

Commit 1b812ad

Browse files
authored
feat: module renaming (#8)
* feat: project module renamed to epa_syllabifier README.md, tests, code and all names related with module has been changed * fix(Makefile): adds a pip installation of module with edit mode * fix: undo changelog deletion * docs(README.md): minor changes
1 parent 6cc1bea commit 1b812ad

File tree

9 files changed

+68
-41
lines changed

9 files changed

+68
-41
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3636
### Fix
3737

3838
- empty case and Makefile improvements(#5)
39-
- minors and black over the code
39+
- minors and black over the code

Makefile

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Makefile for the epa-syllabicate project
1+
# Makefile for the epa-syllabifier project
22

33
.PHONY: help install install-dev test test-verbose test-coverage clean format lint all venv activate
44

@@ -67,6 +67,8 @@ install-dev: ensure-venv ## Install development dependencies
6767
@echo "$(GREEN)Installing development dependencies...$(NC)"
6868
$(VENV_PIP) install -e ".[dev]"
6969
@echo "$(YELLOW)Using virtual environment: $(VENV_DIR)$(NC)"
70+
# add module install using editable mode
71+
$(VENV_PIP) install -e ".[dev]"
7072

7173
test: install-dev ## Run all tests
7274
@echo "$(GREEN)Running tests...$(NC)"
@@ -92,10 +94,10 @@ test-coverage: install-dev ## Run tests with code coverage
9294
@echo "$(GREEN)Running tests with coverage...$(NC)"
9395
@if [ -d "$(VENV_DIR)" ]; then \
9496
echo "$(BLUE)Using virtual environment: $(VENV_DIR)$(NC)"; \
95-
$(VENV_PYTHON) -m pytest --cov=epa_syllabicate --cov-report=html --cov-report=term tests/; \
97+
$(VENV_PYTHON) -m pytest --cov=epa_syllabifier --cov-report=html --cov-report=term tests/; \
9698
else \
9799
echo "$(YELLOW)No virtual environment found, using system Python$(NC)"; \
98-
$(PYTHON) -m pytest --cov=epa_syllabicate --cov-report=html --cov-report=term tests/; \
100+
$(PYTHON) -m pytest --cov=epa_syllabifier --cov-report=html --cov-report=term tests/; \
99101
fi
100102

101103
test-watch: install-dev ## Run tests in watch mode (requires pytest-watch)
@@ -112,20 +114,20 @@ format: ## Format code with black
112114
@echo "$(GREEN)Formatting code...$(NC)"
113115
@if [ -d "$(VENV_DIR)" ]; then \
114116
echo "$(BLUE)Using virtual environment: $(VENV_DIR)$(NC)"; \
115-
$(VENV_PYTHON) -m black epa_syllabicate/ tests/; \
117+
$(VENV_PYTHON) -m black epa_syllabifier/ tests/; \
116118
else \
117119
echo "$(YELLOW)No virtual environment found, using system Python$(NC)"; \
118-
$(PYTHON) -m black epa_syllabicate/ tests/; \
120+
$(PYTHON) -m black epa_syllabifier/ tests/; \
119121
fi
120122

121123
lint: ## Check code format
122124
@echo "$(GREEN)Checking code format...$(NC)"
123125
@if [ -d "$(VENV_DIR)" ]; then \
124126
echo "$(BLUE)Using virtual environment: $(VENV_DIR)$(NC)"; \
125-
$(VENV_PYTHON) -m black --check epa_syllabicate/ tests/; \
127+
$(VENV_PYTHON) -m black --check epa_syllabifier/ tests/; \
126128
else \
127129
echo "$(YELLOW)No virtual environment found, using system Python$(NC)"; \
128-
$(PYTHON) -m black --check epa_syllabicate/ tests/; \
130+
$(PYTHON) -m black --check epa_syllabifier/ tests/; \
129131
fi
130132

131133
clean: ## Clean temporary files
@@ -171,7 +173,7 @@ quick-test: ## Quick test without detailed output
171173
fi
172174

173175
# Command to run a specific test
174-
# Usage: make test-file FILE=test_syllabicate.py
176+
# Usage: make test-file FILE=test_syllabifier.py
175177
test-file: install-dev ## Run a specific test file (use FILE=filename)
176178
@echo "$(GREEN)Running $(FILE)...$(NC)"
177179
@if [ -d "$(VENV_DIR)" ]; then \

README.md

Lines changed: 42 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
# EPA Syllabicate
1+
# EPA Syllabifier
22

33
Módulo Python para la silabificación de palabras.
44

55
## Uso
66

77
```python
8-
from epa_syllabicate import syllabicate
9-
10-
# Ejemplo de uso
11-
word = "ehemplo"
12-
silabes = syllabicate(word)
13-
print(silabas) # ['e', 'hem', 'plo']
8+
>>> from epa_syllabifier import syllabify
9+
>>> syllabify("arcançía")
10+
['ar', 'can', 'çía']
1411
```
1512

1613
## Desarrollo
@@ -20,11 +17,14 @@ print(silabas) # ['e', 'hem', 'plo']
2017
Para contribuir al proyecto, primero clona el repositorio y luego instala las dependencias de desarrollo:
2118

2219
```bash
23-
git clone https://github.com/tu-usuario/epa-syllabicate.git
24-
cd epa-syllabicate
25-
python -m env .venv
26-
source .venv/bin/activate
27-
python -m pip install -e ".[dev]"
20+
git clone https://github.com/andalugeeks/epa-syllabifier.git
21+
cd epa-syllabifier
22+
23+
# Configuración completa de desarrollo (crea venv e instala dependencias)
24+
make dev-setup
25+
26+
# Ver comando para activar el entorno virtual
27+
make activate
2828
```
2929

3030
### Ejecución de tests
@@ -33,10 +33,38 @@ Para ejecutar los tests:
3333

3434
```bash
3535
# Ejecutar todos los tests
36-
pytest
36+
make test
3737

3838
# Ejecutar tests con cobertura
39-
pytest --cov=epa_syllabicate
39+
make test-coverage
40+
41+
# Ejecutar tests con salida detallada
42+
make test-verbose
43+
44+
# Ejecutar tests
45+
make quick-test
46+
```
47+
48+
### Comandos útiles de desarrollo
49+
50+
```bash
51+
# Ver todos los comandos disponibles
52+
make help
53+
54+
# Formatear código con Black
55+
make format
56+
57+
# Verificar formato del código
58+
make lint
59+
60+
# Construir el paquete
61+
make build
62+
63+
# Limpiar archivos temporales
64+
make clean
65+
66+
# Configuración completa: limpieza + instalación + tests
67+
make all
4068
```
4169

4270
## Requisitos

epa_syllabicate/__init__.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

epa_syllabifier/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
"""
2+
EPA Syllabifier - Módulo para silabificación de palabras
3+
"""
4+
from .syllabicator import syllabify
5+
6+
all = ["syllabify"]

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ requires = ["hatchling"]
33
build-backend = "hatchling.build"
44

55
[project]
6-
name = "epa_syllabicate"
6+
name = "epa_syllabifier"
77
version = "0.2.2"
88
description = "Automatic syllabification module for Spanish words"
99
readme = "README.md"
1010
requires-python = ">=3.8"
1111
license = "MIT"
1212
authors = [
13-
{ name = "EPA Team" }
13+
{ name = "Andalugeeks Team" }
1414
]
1515
keywords = ["syllabification", "spanish", "nlp", "text-processing", "linguistics"]
1616
classifiers = [
@@ -31,9 +31,9 @@ classifiers = [
3131
dependencies = []
3232

3333
[project.urls]
34-
"Homepage" = "https://github.com/andalugeeks/epa-syllabicate"
35-
"Bug Tracker" = "https://github.com/andalugeeks/epa-syllabicate/issues"
36-
"Repository" = "https://github.com/andalugeeks/epa-syllabicate.git"
34+
"Homepage" = "https://github.com/andalugeeks/epa-syllabifier"
35+
"Bug Tracker" = "https://github.com/andalugeeks/epa-syllabifier/issues"
36+
"Repository" = "https://github.com/andalugeeks/epa-syllabifier.git"
3737

3838
[project.optional-dependencies]
3939
dev = [

tests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""
2-
Tests para el módulo epa_syllabicate
2+
Tests para el módulo epa_syllabifier
33
"""
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
import unittest
66
import csv
77
import os
8-
from epa_syllabicate import syllabify
8+
from epa_syllabifier import syllabify
99

1010

11-
class TestSyllabicate(unittest.TestCase):
11+
class TestSyllabifier(unittest.TestCase):
1212

1313
@classmethod
1414
def setUpClass(cls):
@@ -75,7 +75,7 @@ def test_method(self):
7575
test_method = make_test(word, expected_syllables)
7676
test_method.__name__ = test_name
7777
test_method.__doc__ = f'Test para la palabra "{word}" -> {expected_syllables}'
78-
setattr(TestSyllabicate, test_name, test_method)
78+
setattr(TestSyllabifier, test_name, test_method)
7979

8080

8181
# Generate individual tests

0 commit comments

Comments
 (0)