Py-Project-Packagor 1.0.0__tar.gz → 1.0.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.
- py_project_packagor-1.0.2/PKG-INFO +79 -0
- py_project_packagor-1.0.2/README.md +70 -0
- {py_project_packagor-1.0.0 → py_project_packagor-1.0.2}/pyproject.toml +5 -2
- py_project_packagor-1.0.2/src/Py_Project_Packagor.egg-info/PKG-INFO +79 -0
- {py_project_packagor-1.0.0 → py_project_packagor-1.0.2}/src/py_project_packagor/init.py +1 -1
- py_project_packagor-1.0.0/PKG-INFO +0 -33
- py_project_packagor-1.0.0/README.md +0 -26
- py_project_packagor-1.0.0/src/Py_Project_Packagor.egg-info/PKG-INFO +0 -33
- {py_project_packagor-1.0.0 → py_project_packagor-1.0.2}/setup.cfg +0 -0
- {py_project_packagor-1.0.0 → py_project_packagor-1.0.2}/src/Py_Project_Packagor.egg-info/SOURCES.txt +0 -0
- {py_project_packagor-1.0.0 → py_project_packagor-1.0.2}/src/Py_Project_Packagor.egg-info/dependency_links.txt +0 -0
- {py_project_packagor-1.0.0 → py_project_packagor-1.0.2}/src/Py_Project_Packagor.egg-info/entry_points.txt +0 -0
- {py_project_packagor-1.0.0 → py_project_packagor-1.0.2}/src/Py_Project_Packagor.egg-info/top_level.txt +0 -0
- {py_project_packagor-1.0.0 → py_project_packagor-1.0.2}/src/py_project_packagor/__init__.py +0 -0
- {py_project_packagor-1.0.0 → py_project_packagor-1.0.2}/src/py_project_packagor/make_path.py +0 -0
- {py_project_packagor-1.0.0 → py_project_packagor-1.0.2}/src/py_project_packagor/py.typed +0 -0
- {py_project_packagor-1.0.0 → py_project_packagor-1.0.2}/src/py_project_packagor/pyproject_contain.py +0 -0
- {py_project_packagor-1.0.0 → py_project_packagor-1.0.2}/src/py_project_packagor/readme_contain.py +0 -0
- {py_project_packagor-1.0.0 → py_project_packagor-1.0.2}/src/py_project_packagor/run.py +0 -0
- {py_project_packagor-1.0.0 → py_project_packagor-1.0.2}/src/py_project_packagor/write.py +0 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: Py_Project_Packagor
|
|
3
|
+
Version: 1.0.2
|
|
4
|
+
Summary: Générateur de projet python
|
|
5
|
+
Author-email: Fabrice Kopf <contact@fabricekopf.fr>
|
|
6
|
+
Project-URL: Repository, https://github.com/Jean-LouisB/Py-Project-Generator.git
|
|
7
|
+
Project-URL: Changelog, https://github.com/Jean-LouisB/Py-Project-Generator/blob/0fa0b2edafdbc8b0ed3545c8162e27adb3d908e1/CHANGELOG.md
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
|
|
10
|
+
# Py Project Packagor
|
|
11
|
+
|
|
12
|
+
`py_project_packagor` est un générateur interactif de structure pour démarrer un
|
|
13
|
+
package Python. Sa commande `py-init` demande les informations du projet, puis
|
|
14
|
+
crée les fichiers de base nécessaires à sa construction et à sa documentation.
|
|
15
|
+
|
|
16
|
+
## Installation globale
|
|
17
|
+
|
|
18
|
+
Il est conseiller une installation globale.
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
pip install Py-Project-Packagor
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Redémarrez ensuite le terminal si nécessaire.
|
|
25
|
+
|
|
26
|
+
Pour mettre à jour l'installation locale après avoir modifié le code :
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
pip install --force .
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Utilisation
|
|
33
|
+
|
|
34
|
+
Placez-vous dans le dossier où vous souhaitez créer le nouveau projet, puis
|
|
35
|
+
lancez :
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
py-init
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
La commande demande le nom du projet, sa version, sa description, le nom de
|
|
42
|
+
l'auteur et son adresse e-mail. Les valeurs affichées entre parenthèses sont
|
|
43
|
+
des suggestions ; renseignez notamment le nom et l'e-mail de l'auteur pour les
|
|
44
|
+
inscrire dans les métadonnées du package.
|
|
45
|
+
|
|
46
|
+
Le nom du projet est utilisé pour créer le dossier du module sous `src/` ; il
|
|
47
|
+
est converti en minuscules et les espaces sont remplacés par des underscores.
|
|
48
|
+
|
|
49
|
+
### Exemple de structure générée
|
|
50
|
+
|
|
51
|
+
```text
|
|
52
|
+
mon_projet/
|
|
53
|
+
├── README.md
|
|
54
|
+
├── pyproject.toml
|
|
55
|
+
└── src/
|
|
56
|
+
└── mon_projet/
|
|
57
|
+
├── __init__.py
|
|
58
|
+
└── py.typed
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Le fichier `pyproject.toml` contient les métadonnées du package et sa
|
|
62
|
+
configuration de build avec setuptools. Un fichier marqueur `py.typed` est
|
|
63
|
+
également créé dans le module.
|
|
64
|
+
|
|
65
|
+
> **Attention :** la commande écrit ou remplace `README.md`, `pyproject.toml`,
|
|
66
|
+
> `src/<nom_du_module>/__init__.py` et `src/<nom_du_module>/py.typed` dans le
|
|
67
|
+
> dossier courant. Lancez-la dans un dossier adapté et sauvegardez tout fichier
|
|
68
|
+
> que vous souhaitez conserver.
|
|
69
|
+
|
|
70
|
+
## Construire le package généré
|
|
71
|
+
|
|
72
|
+
Dans le dossier du nouveau projet, construisez les distributions avec `build` :
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
python -m pip install build
|
|
76
|
+
python -m build
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Les fichiers de distribution sont créés dans `dist/`.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Py Project Packagor
|
|
2
|
+
|
|
3
|
+
`py_project_packagor` est un générateur interactif de structure pour démarrer un
|
|
4
|
+
package Python. Sa commande `py-init` demande les informations du projet, puis
|
|
5
|
+
crée les fichiers de base nécessaires à sa construction et à sa documentation.
|
|
6
|
+
|
|
7
|
+
## Installation globale
|
|
8
|
+
|
|
9
|
+
Il est conseiller une installation globale.
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pip install Py-Project-Packagor
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Redémarrez ensuite le terminal si nécessaire.
|
|
16
|
+
|
|
17
|
+
Pour mettre à jour l'installation locale après avoir modifié le code :
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pip install --force .
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Utilisation
|
|
24
|
+
|
|
25
|
+
Placez-vous dans le dossier où vous souhaitez créer le nouveau projet, puis
|
|
26
|
+
lancez :
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
py-init
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
La commande demande le nom du projet, sa version, sa description, le nom de
|
|
33
|
+
l'auteur et son adresse e-mail. Les valeurs affichées entre parenthèses sont
|
|
34
|
+
des suggestions ; renseignez notamment le nom et l'e-mail de l'auteur pour les
|
|
35
|
+
inscrire dans les métadonnées du package.
|
|
36
|
+
|
|
37
|
+
Le nom du projet est utilisé pour créer le dossier du module sous `src/` ; il
|
|
38
|
+
est converti en minuscules et les espaces sont remplacés par des underscores.
|
|
39
|
+
|
|
40
|
+
### Exemple de structure générée
|
|
41
|
+
|
|
42
|
+
```text
|
|
43
|
+
mon_projet/
|
|
44
|
+
├── README.md
|
|
45
|
+
├── pyproject.toml
|
|
46
|
+
└── src/
|
|
47
|
+
└── mon_projet/
|
|
48
|
+
├── __init__.py
|
|
49
|
+
└── py.typed
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Le fichier `pyproject.toml` contient les métadonnées du package et sa
|
|
53
|
+
configuration de build avec setuptools. Un fichier marqueur `py.typed` est
|
|
54
|
+
également créé dans le module.
|
|
55
|
+
|
|
56
|
+
> **Attention :** la commande écrit ou remplace `README.md`, `pyproject.toml`,
|
|
57
|
+
> `src/<nom_du_module>/__init__.py` et `src/<nom_du_module>/py.typed` dans le
|
|
58
|
+
> dossier courant. Lancez-la dans un dossier adapté et sauvegardez tout fichier
|
|
59
|
+
> que vous souhaitez conserver.
|
|
60
|
+
|
|
61
|
+
## Construire le package généré
|
|
62
|
+
|
|
63
|
+
Dans le dossier du nouveau projet, construisez les distributions avec `build` :
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
python -m pip install build
|
|
67
|
+
python -m build
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Les fichiers de distribution sont créés dans `dist/`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "Py_Project_Packagor"
|
|
3
|
-
version = "1.0.
|
|
3
|
+
version = "1.0.2"
|
|
4
4
|
description = "Générateur de projet python"
|
|
5
5
|
authors = [
|
|
6
6
|
{ name = "Fabrice Kopf", email= "contact@fabricekopf.fr" },
|
|
@@ -20,4 +20,7 @@ include = ["py_project_packagor*"]
|
|
|
20
20
|
|
|
21
21
|
[tool.setuptools.package-data]
|
|
22
22
|
func = ["py.typed"]
|
|
23
|
-
|
|
23
|
+
|
|
24
|
+
[project.urls]
|
|
25
|
+
Repository = "https://github.com/Jean-LouisB/Py-Project-Generator.git"
|
|
26
|
+
Changelog = "https://github.com/Jean-LouisB/Py-Project-Generator/blob/0fa0b2edafdbc8b0ed3545c8162e27adb3d908e1/CHANGELOG.md"
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: Py_Project_Packagor
|
|
3
|
+
Version: 1.0.2
|
|
4
|
+
Summary: Générateur de projet python
|
|
5
|
+
Author-email: Fabrice Kopf <contact@fabricekopf.fr>
|
|
6
|
+
Project-URL: Repository, https://github.com/Jean-LouisB/Py-Project-Generator.git
|
|
7
|
+
Project-URL: Changelog, https://github.com/Jean-LouisB/Py-Project-Generator/blob/0fa0b2edafdbc8b0ed3545c8162e27adb3d908e1/CHANGELOG.md
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
|
|
10
|
+
# Py Project Packagor
|
|
11
|
+
|
|
12
|
+
`py_project_packagor` est un générateur interactif de structure pour démarrer un
|
|
13
|
+
package Python. Sa commande `py-init` demande les informations du projet, puis
|
|
14
|
+
crée les fichiers de base nécessaires à sa construction et à sa documentation.
|
|
15
|
+
|
|
16
|
+
## Installation globale
|
|
17
|
+
|
|
18
|
+
Il est conseiller une installation globale.
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
pip install Py-Project-Packagor
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Redémarrez ensuite le terminal si nécessaire.
|
|
25
|
+
|
|
26
|
+
Pour mettre à jour l'installation locale après avoir modifié le code :
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
pip install --force .
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Utilisation
|
|
33
|
+
|
|
34
|
+
Placez-vous dans le dossier où vous souhaitez créer le nouveau projet, puis
|
|
35
|
+
lancez :
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
py-init
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
La commande demande le nom du projet, sa version, sa description, le nom de
|
|
42
|
+
l'auteur et son adresse e-mail. Les valeurs affichées entre parenthèses sont
|
|
43
|
+
des suggestions ; renseignez notamment le nom et l'e-mail de l'auteur pour les
|
|
44
|
+
inscrire dans les métadonnées du package.
|
|
45
|
+
|
|
46
|
+
Le nom du projet est utilisé pour créer le dossier du module sous `src/` ; il
|
|
47
|
+
est converti en minuscules et les espaces sont remplacés par des underscores.
|
|
48
|
+
|
|
49
|
+
### Exemple de structure générée
|
|
50
|
+
|
|
51
|
+
```text
|
|
52
|
+
mon_projet/
|
|
53
|
+
├── README.md
|
|
54
|
+
├── pyproject.toml
|
|
55
|
+
└── src/
|
|
56
|
+
└── mon_projet/
|
|
57
|
+
├── __init__.py
|
|
58
|
+
└── py.typed
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Le fichier `pyproject.toml` contient les métadonnées du package et sa
|
|
62
|
+
configuration de build avec setuptools. Un fichier marqueur `py.typed` est
|
|
63
|
+
également créé dans le module.
|
|
64
|
+
|
|
65
|
+
> **Attention :** la commande écrit ou remplace `README.md`, `pyproject.toml`,
|
|
66
|
+
> `src/<nom_du_module>/__init__.py` et `src/<nom_du_module>/py.typed` dans le
|
|
67
|
+
> dossier courant. Lancez-la dans un dossier adapté et sauvegardez tout fichier
|
|
68
|
+
> que vous souhaitez conserver.
|
|
69
|
+
|
|
70
|
+
## Construire le package généré
|
|
71
|
+
|
|
72
|
+
Dans le dossier du nouveau projet, construisez les distributions avec `build` :
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
python -m pip install build
|
|
76
|
+
python -m build
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Les fichiers de distribution sont créés dans `dist/`.
|
|
@@ -18,7 +18,7 @@ class Project:
|
|
|
18
18
|
)
|
|
19
19
|
|
|
20
20
|
self.author = f"""[
|
|
21
|
-
{{ name = "{author_fullname}", email= "{author_email}" }},
|
|
21
|
+
{{ name = "{self.author_fullname}", email= "{self.author_email}" }},
|
|
22
22
|
]"""
|
|
23
23
|
|
|
24
24
|
self.norm_project_name = self.project_name.lower().replace(" ", "_")
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: Py_Project_Packagor
|
|
3
|
-
Version: 1.0.0
|
|
4
|
-
Summary: Générateur de projet python
|
|
5
|
-
Author-email: Fabrice Kopf <contact@fabricekopf.fr>
|
|
6
|
-
Description-Content-Type: text/markdown
|
|
7
|
-
|
|
8
|
-
# Votre Package PY_PROJECT_PACKAGER
|
|
9
|
-
|
|
10
|
-
Créer et activer votre environnement.
|
|
11
|
-
|
|
12
|
-
Installer build:
|
|
13
|
-
```
|
|
14
|
-
pip install build
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
Installer votre package:
|
|
18
|
-
|
|
19
|
-
```
|
|
20
|
-
python3 -m build
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Il crée un dossier /dist contenant votre package prêt à être installé.
|
|
24
|
-
Ainsi qu'une archive.
|
|
25
|
-
|
|
26
|
-
## Installer votre package dans un autre projet:
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
pip install from_chemin/dist/nom_de_votre_package
|
|
30
|
-
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# Votre Package PY_PROJECT_PACKAGER
|
|
2
|
-
|
|
3
|
-
Créer et activer votre environnement.
|
|
4
|
-
|
|
5
|
-
Installer build:
|
|
6
|
-
```
|
|
7
|
-
pip install build
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
Installer votre package:
|
|
11
|
-
|
|
12
|
-
```
|
|
13
|
-
python3 -m build
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
Il crée un dossier /dist contenant votre package prêt à être installé.
|
|
17
|
-
Ainsi qu'une archive.
|
|
18
|
-
|
|
19
|
-
## Installer votre package dans un autre projet:
|
|
20
|
-
|
|
21
|
-
```
|
|
22
|
-
pip install from_chemin/dist/nom_de_votre_package
|
|
23
|
-
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: Py_Project_Packagor
|
|
3
|
-
Version: 1.0.0
|
|
4
|
-
Summary: Générateur de projet python
|
|
5
|
-
Author-email: Fabrice Kopf <contact@fabricekopf.fr>
|
|
6
|
-
Description-Content-Type: text/markdown
|
|
7
|
-
|
|
8
|
-
# Votre Package PY_PROJECT_PACKAGER
|
|
9
|
-
|
|
10
|
-
Créer et activer votre environnement.
|
|
11
|
-
|
|
12
|
-
Installer build:
|
|
13
|
-
```
|
|
14
|
-
pip install build
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
Installer votre package:
|
|
18
|
-
|
|
19
|
-
```
|
|
20
|
-
python3 -m build
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Il crée un dossier /dist contenant votre package prêt à être installé.
|
|
24
|
-
Ainsi qu'une archive.
|
|
25
|
-
|
|
26
|
-
## Installer votre package dans un autre projet:
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
pip install from_chemin/dist/nom_de_votre_package
|
|
30
|
-
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
|
|
File without changes
|
{py_project_packagor-1.0.0 → py_project_packagor-1.0.2}/src/Py_Project_Packagor.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{py_project_packagor-1.0.0 → py_project_packagor-1.0.2}/src/py_project_packagor/make_path.py
RENAMED
|
File without changes
|
|
File without changes
|
{py_project_packagor-1.0.0 → py_project_packagor-1.0.2}/src/py_project_packagor/pyproject_contain.py
RENAMED
|
File without changes
|
{py_project_packagor-1.0.0 → py_project_packagor-1.0.2}/src/py_project_packagor/readme_contain.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|