seo-dev-env 0.1.1__tar.gz → 0.1.2__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.
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/PKG-INFO +2 -2
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/generators.py +22 -15
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/utils.py +32 -24
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo_dev_env.egg-info/PKG-INFO +2 -2
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/setup.py +14 -14
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/LICENSE.ls +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/README.md +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/__init__.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/cli.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/commandes.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/debutant/app.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/debutant/index.html +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/debutant/style.css +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/intermediaire/app/__init__.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/intermediaire/app/core/__init__.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/intermediaire/app/core/config.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/intermediaire/app/models.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/intermediaire/app/routes.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/intermediaire/app/taches/__init__.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/intermediaire/app/taches/models.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/intermediaire/app/taches/routes.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/intermediaire/app/utilisateurs/__init__.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/intermediaire/app/utilisateurs/models.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/intermediaire/app/utilisateurs/routes.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/intermediaire/config.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/intermediaire/docker-compose.yml +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/intermediaire/run.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/pro/Dockerfile +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/pro/app/__init__.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/pro/app/api/__init__.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/pro/app/api/v1/__init__.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/pro/app/api/v1/endpoints.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/pro/app/core/config.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/pro/app/core/security.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/pro/app/db/base.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/pro/app/db/models.py +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/pro/docker-compose.yml +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo_dev_env.egg-info/SOURCES.txt +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo_dev_env.egg-info/dependency_links.txt +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo_dev_env.egg-info/entry_points.txt +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo_dev_env.egg-info/requires.txt +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo_dev_env.egg-info/top_level.txt +0 -0
- {seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/setup.cfg +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: seo-dev-env
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Générateur d'environnements de développement pour tous niveaux
|
|
5
|
-
Home-page: https://github.com/
|
|
5
|
+
Home-page: https://github.com/elkast/seo-dev-env
|
|
6
6
|
Author: Votre Nom
|
|
7
7
|
Author-email: orsinimelchisedek@gmail.com
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -98,21 +98,28 @@ class IntermediaireWebGenerator(EnvironnementGenerator):
|
|
|
98
98
|
class ProWebGenerator(EnvironnementGenerator):
|
|
99
99
|
"""Générateur pro - Applications professionnelles"""
|
|
100
100
|
|
|
101
|
-
def __init__(self, chemin):
|
|
102
|
-
super().__init__('pro', 'web', chemin)
|
|
103
|
-
self.packages = [
|
|
104
|
-
'flask',
|
|
105
|
-
'flask-restx',
|
|
106
|
-
'flask-cors',
|
|
107
|
-
'flask-sqlalchemy',
|
|
108
|
-
'flask-migrate',
|
|
109
|
-
'flask-jwt-extended',
|
|
110
|
-
'python-dotenv',
|
|
111
|
-
'gunicorn',
|
|
112
|
-
'psycopg2-binary'
|
|
113
|
-
]
|
|
114
|
-
|
|
115
|
-
def
|
|
101
|
+
def __init__(self, chemin):
|
|
102
|
+
super().__init__('pro', 'web', chemin)
|
|
103
|
+
self.packages = [
|
|
104
|
+
'flask',
|
|
105
|
+
'flask-restx',
|
|
106
|
+
'flask-cors',
|
|
107
|
+
'flask-sqlalchemy',
|
|
108
|
+
'flask-migrate',
|
|
109
|
+
'flask-jwt-extended',
|
|
110
|
+
'python-dotenv',
|
|
111
|
+
'gunicorn',
|
|
112
|
+
'psycopg2-binary'
|
|
113
|
+
]
|
|
114
|
+
|
|
115
|
+
def _creer_structure(self):
|
|
116
|
+
# Création du fichier requirements
|
|
117
|
+
creer_fichier(
|
|
118
|
+
self.chemin_projet / 'requirements.txt',
|
|
119
|
+
"\n".join(self.packages)
|
|
120
|
+
)
|
|
121
|
+
|
|
122
|
+
def _post_creation(self):
|
|
116
123
|
# Initialiser un dépôt Git
|
|
117
124
|
try:
|
|
118
125
|
subprocess.run(['git', 'init', str(self.chemin_projet)], check=True)
|
|
@@ -1,24 +1,32 @@
|
|
|
1
|
-
import os
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
chemin
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import os
|
|
2
|
+
import shutil
|
|
3
|
+
from pathlib import Path
|
|
4
|
+
|
|
5
|
+
def creer_fichier(chemin, contenu):
|
|
6
|
+
"""Crée un fichier avec le contenu spécifié"""
|
|
7
|
+
chemin = Path(chemin)
|
|
8
|
+
chemin.parent.mkdir(parents=True, exist_ok=True)
|
|
9
|
+
with open(chemin, 'w', encoding='utf-8') as f:
|
|
10
|
+
f.write(contenu)
|
|
11
|
+
|
|
12
|
+
def copier_dossier(source, destination):
|
|
13
|
+
"""Copie récursivement un dossier"""
|
|
14
|
+
source = Path(source)
|
|
15
|
+
destination = Path(destination)
|
|
16
|
+
|
|
17
|
+
destination.mkdir(parents=True, exist_ok=True)
|
|
18
|
+
|
|
19
|
+
for item in source.iterdir():
|
|
20
|
+
# Skip .gitignore and other hidden files that might have encoding issues
|
|
21
|
+
if item.name.startswith('.'):
|
|
22
|
+
continue
|
|
23
|
+
|
|
24
|
+
dest_item = destination / item.name
|
|
25
|
+
if item.is_dir():
|
|
26
|
+
copier_dossier(item, dest_item)
|
|
27
|
+
else:
|
|
28
|
+
# Use shutil.copy2 to preserve metadata and handle binary files
|
|
29
|
+
try:
|
|
30
|
+
shutil.copy2(item, dest_item)
|
|
31
|
+
except Exception as e:
|
|
32
|
+
print(f"⚠️ Erreur lors de la copie de {item.name}: {e}")
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: seo-dev-env
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Générateur d'environnements de développement pour tous niveaux
|
|
5
|
-
Home-page: https://github.com/
|
|
5
|
+
Home-page: https://github.com/elkast/seo-dev-env
|
|
6
6
|
Author: Votre Nom
|
|
7
7
|
Author-email: orsinimelchisedek@gmail.com
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -3,20 +3,20 @@ from setuptools import setup, find_packages
|
|
|
3
3
|
with open("README.md", "r", encoding="utf-8") as fh:
|
|
4
4
|
long_description = fh.read()
|
|
5
5
|
|
|
6
|
-
setup(
|
|
7
|
-
name="seo-dev-env",
|
|
8
|
-
version="0.1.
|
|
9
|
-
author="Votre Nom",
|
|
10
|
-
author_email="orsinimelchisedek@gmail.com",
|
|
11
|
-
description="Générateur d'environnements de développement pour tous niveaux",
|
|
12
|
-
long_description=long_description,
|
|
13
|
-
long_description_content_type="text/markdown",
|
|
14
|
-
url="https://github.com/
|
|
15
|
-
packages=find_packages(),
|
|
16
|
-
include_package_data=True,
|
|
17
|
-
package_data={
|
|
18
|
-
"seo": ["templates
|
|
19
|
-
},
|
|
6
|
+
setup(
|
|
7
|
+
name="seo-dev-env",
|
|
8
|
+
version="0.1.2",
|
|
9
|
+
author="Votre Nom",
|
|
10
|
+
author_email="orsinimelchisedek@gmail.com",
|
|
11
|
+
description="Générateur d'environnements de développement pour tous niveaux",
|
|
12
|
+
long_description=long_description,
|
|
13
|
+
long_description_content_type="text/markdown",
|
|
14
|
+
url="https://github.com/elkast/seo-dev-env",
|
|
15
|
+
packages=find_packages(),
|
|
16
|
+
include_package_data=True,
|
|
17
|
+
package_data={
|
|
18
|
+
"seo": ["templates/**/*"]
|
|
19
|
+
},
|
|
20
20
|
classifiers=[
|
|
21
21
|
"Programming Language :: Python :: 3",
|
|
22
22
|
"License :: OSI Approved :: MIT License",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/intermediaire/app/utilisateurs/__init__.py
RENAMED
|
File without changes
|
{seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/intermediaire/app/utilisateurs/models.py
RENAMED
|
File without changes
|
{seo_dev_env-0.1.1 → seo_dev_env-0.1.2}/seo/templates/intermediaire/app/utilisateurs/routes.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|