quipus-generate 0.1.16__tar.gz → 0.1.18__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (22) hide show
  1. {quipus_generate-0.1.16 → quipus_generate-0.1.18}/PKG-INFO +1 -1
  2. {quipus_generate-0.1.16 → quipus_generate-0.1.18}/amautta_project/entity_generator.py +5 -0
  3. {quipus_generate-0.1.16 → quipus_generate-0.1.18}/amautta_project/git_generator.py +5 -0
  4. {quipus_generate-0.1.16 → quipus_generate-0.1.18}/quipus_generate.egg-info/PKG-INFO +1 -1
  5. {quipus_generate-0.1.16 → quipus_generate-0.1.18}/setup.py +1 -1
  6. {quipus_generate-0.1.16 → quipus_generate-0.1.18}/LICENSE +0 -0
  7. {quipus_generate-0.1.16 → quipus_generate-0.1.18}/README.md +0 -0
  8. {quipus_generate-0.1.16 → quipus_generate-0.1.18}/amautta_project/__init__.py +0 -0
  9. {quipus_generate-0.1.16 → quipus_generate-0.1.18}/amautta_project/cli.py +0 -0
  10. {quipus_generate-0.1.16 → quipus_generate-0.1.18}/amautta_project/docker_modified.py +0 -0
  11. {quipus_generate-0.1.16 → quipus_generate-0.1.18}/amautta_project/main_modified.py +0 -0
  12. {quipus_generate-0.1.16 → quipus_generate-0.1.18}/amautta_project/microservice_generator.py +0 -0
  13. {quipus_generate-0.1.16 → quipus_generate-0.1.18}/amautta_project/migration_generator.py +0 -0
  14. {quipus_generate-0.1.16 → quipus_generate-0.1.18}/amautta_project/proyect_generator.py +0 -0
  15. {quipus_generate-0.1.16 → quipus_generate-0.1.18}/amautta_project/readme_modified.py +0 -0
  16. {quipus_generate-0.1.16 → quipus_generate-0.1.18}/amautta_project/site_generator.py +0 -0
  17. {quipus_generate-0.1.16 → quipus_generate-0.1.18}/quipus_generate.egg-info/SOURCES.txt +0 -0
  18. {quipus_generate-0.1.16 → quipus_generate-0.1.18}/quipus_generate.egg-info/dependency_links.txt +0 -0
  19. {quipus_generate-0.1.16 → quipus_generate-0.1.18}/quipus_generate.egg-info/entry_points.txt +0 -0
  20. {quipus_generate-0.1.16 → quipus_generate-0.1.18}/quipus_generate.egg-info/requires.txt +0 -0
  21. {quipus_generate-0.1.16 → quipus_generate-0.1.18}/quipus_generate.egg-info/top_level.txt +0 -0
  22. {quipus_generate-0.1.16 → quipus_generate-0.1.18}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: quipus-generate
3
- Version: 0.1.16
3
+ Version: 0.1.18
4
4
  Summary: Generador de proyectos FastAPI con arquitectura Hexagonal.
5
5
  Author: Juan David Corrales Saldarriaga
6
6
  Author-email: sistemas@amauttasistems.com
@@ -1,4 +1,5 @@
1
1
  import inflection
2
+ import sys
2
3
  import os
3
4
 
4
5
  def create(name, microservice = None):
@@ -397,6 +398,10 @@ def create(name, microservice = None):
397
398
  )
398
399
  }
399
400
 
401
+ if microservice is None and not os.path.isfile(f"{os.getcwd()}/Dockerfile"):
402
+ print("ℹ️ No se encuentra en la carpeta de un microservicio.")
403
+ sys.exit()
404
+
400
405
  if microservice is not None:
401
406
  path = f"{microservice}/app/{name}"
402
407
  else:
@@ -1,5 +1,6 @@
1
1
  from pathlib import Path
2
2
  import subprocess
3
+ import sys
3
4
  import os
4
5
 
5
6
  def run_command(command, cwd=None):
@@ -54,6 +55,10 @@ def create(proccess, name):
54
55
  ".gitignore": gitignore,
55
56
  }
56
57
 
58
+ if os.path.isfile(f"{os.getcwd()}/.gitignore"):
59
+ print("ℹ️ El proyecto git ya se encuentra inicializado.")
60
+ sys.exit()
61
+
57
62
  # Crear archivos
58
63
  for archivo, content in archivos.items():
59
64
  ruta_archivo = os.path.join(name, archivo)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: quipus-generate
3
- Version: 0.1.16
3
+ Version: 0.1.18
4
4
  Summary: Generador de proyectos FastAPI con arquitectura Hexagonal.
5
5
  Author: Juan David Corrales Saldarriaga
6
6
  Author-email: sistemas@amauttasistems.com
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name="quipus-generate",
8
- version="0.1.16",
8
+ version="0.1.18",
9
9
  packages=find_packages(),
10
10
  entry_points={
11
11
  "console_scripts": [