From fda8836707fb8e33173556a14d8ca393d1cc4954 Mon Sep 17 00:00:00 2001
From: Pepitoww <96070621+Pepitoww@users.noreply.github.com>
Date: Thu, 29 Sep 2022 16:57:00 +0200
Subject: [PATCH 1/6] Create python-publish.yml

---
 .github/workflows/python-publish.yml | 39 ++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 .github/workflows/python-publish.yml

diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml
new file mode 100644
index 0000000..ec70354
--- /dev/null
+++ b/.github/workflows/python-publish.yml
@@ -0,0 +1,39 @@
+# This workflow will upload a Python Package using Twine when a release is created
+# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
+
+# This workflow uses actions that are not certified by GitHub.
+# They are provided by a third-party and are governed by
+# separate terms of service, privacy policy, and support
+# documentation.
+
+name: Upload Python Package
+
+on:
+  release:
+    types: [published]
+
+permissions:
+  contents: read
+
+jobs:
+  deploy:
+
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@v3
+    - name: Set up Python
+      uses: actions/setup-python@v3
+      with:
+        python-version: '3.x'
+    - name: Install dependencies
+      run: |
+        python -m pip install --upgrade pip
+        pip install build
+    - name: Build package
+      run: python -m build
+    - name: Publish package
+      uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
+      with:
+        user: __token__
+        password: ${{ secrets.PYPI_API_TOKEN }}

From 9baafa7ced9d5c70a89ebc6de9e0abfff31f6357 Mon Sep 17 00:00:00 2001
From: Pepitoww <96070621+Pepitoww@users.noreply.github.com>
Date: Thu, 29 Sep 2022 17:10:42 +0200
Subject: [PATCH 2/6] testV1

---
 .github/workflows/python-publish.yml |  4 +++-
 pyproject.toml                       | 21 +++++++++++++++++++++
 src/blabla/__init__.py               |  0
 main.py => src/blabla/main.py        |  8 ++++----
 4 files changed, 28 insertions(+), 5 deletions(-)
 create mode 100644 pyproject.toml
 create mode 100644 src/blabla/__init__.py
 rename main.py => src/blabla/main.py (95%)

diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml
index ec70354..e05bebe 100644
--- a/.github/workflows/python-publish.yml
+++ b/.github/workflows/python-publish.yml
@@ -31,7 +31,9 @@ jobs:
         python -m pip install --upgrade pip
         pip install build
     - name: Build package
-      run: python -m build
+      run: |
+        python3 -m pip install --upgrade build 
+        python -m build
     - name: Publish package
       uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
       with:
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..c2b9890
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,21 @@
+[build-system]
+requires = ["hatchling"]
+build-backend = "hatchling.build"
+[project]
+name = "blabla"
+version = "0.0.1"
+authors = [
+  { name="blabla", email="lucas.bonnemains@isen.yncrea.fr" },
+]
+description = "A small example package"
+readme = "README.md"
+requires-python = ">=3.7"
+classifiers = [
+    "Programming Language :: Python :: 3",
+    "License :: OSI Approved :: MIT License",
+    "Operating System :: OS Independent",
+]
+
+[project.urls]
+"Homepage" = "https://github.com/pypa/sampleproject"
+"Bug Tracker" = "https://github.com/pypa/sampleproject/issues"
\ No newline at end of file
diff --git a/src/blabla/__init__.py b/src/blabla/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/main.py b/src/blabla/main.py
similarity index 95%
rename from main.py
rename to src/blabla/main.py
index 991edee..61f0528 100644
--- a/main.py
+++ b/src/blabla/main.py
@@ -1,5 +1,5 @@
-def say_hello():
-    print("Say Hello !")
-
-if __name__ == '__main__':
+def say_hello():
+    print("Say Hello !")
+
+if __name__ == '__main__':
     say_hello()
\ No newline at end of file

From cb191c87cdb5b2acc6ade9d7fd42146be19e7dd1 Mon Sep 17 00:00:00 2001
From: Pepitoww <96070621+Pepitoww@users.noreply.github.com>
Date: Thu, 29 Sep 2022 17:20:48 +0200
Subject: [PATCH 3/6] test2

---
 pyproject.toml                    | 4 ++--
 src/{blabla => lucas}/__init__.py | 0
 src/{blabla => lucas}/main.py     | 0
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename src/{blabla => lucas}/__init__.py (100%)
 rename src/{blabla => lucas}/main.py (100%)

diff --git a/pyproject.toml b/pyproject.toml
index c2b9890..8609148 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -2,10 +2,10 @@
 requires = ["hatchling"]
 build-backend = "hatchling.build"
 [project]
-name = "blabla"
+name = "lucas"
 version = "0.0.1"
 authors = [
-  { name="blabla", email="lucas.bonnemains@isen.yncrea.fr" },
+  { name="lucas", email="lucas.bonnemains@isen.yncrea.fr" },
 ]
 description = "A small example package"
 readme = "README.md"
diff --git a/src/blabla/__init__.py b/src/lucas/__init__.py
similarity index 100%
rename from src/blabla/__init__.py
rename to src/lucas/__init__.py
diff --git a/src/blabla/main.py b/src/lucas/main.py
similarity index 100%
rename from src/blabla/main.py
rename to src/lucas/main.py

From b218dad7904211fe7ad17b3ff815fb48609f51a0 Mon Sep 17 00:00:00 2001
From: Pepitoww <96070621+Pepitoww@users.noreply.github.com>
Date: Thu, 29 Sep 2022 17:30:11 +0200
Subject: [PATCH 4/6] update

---
 pyproject.toml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyproject.toml b/pyproject.toml
index 8609148..a841b97 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,7 @@
 [build-system]
 requires = ["hatchling"]
 build-backend = "hatchling.build"
+
 [project]
 name = "lucas"
 version = "0.0.1"
@@ -18,4 +19,4 @@ classifiers = [
 
 [project.urls]
 "Homepage" = "https://github.com/pypa/sampleproject"
-"Bug Tracker" = "https://github.com/pypa/sampleproject/issues"
\ No newline at end of file
+"Bug Tracker" = "https://github.com/pypa/sampleproject/issues"

From e51c19bb365fc19383c561fb40a85323975ee6e4 Mon Sep 17 00:00:00 2001
From: Pepitoww <96070621+Pepitoww@users.noreply.github.com>
Date: Thu, 29 Sep 2022 17:58:12 +0200
Subject: [PATCH 5/6] update2

---
 pyproject.toml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyproject.toml b/pyproject.toml
index a841b97..0d7892f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
 name = "lucas"
 version = "0.0.1"
 authors = [
-  { name="lucas", email="lucas.bonnemains@isen.yncrea.fr" },
+  { name="lucas", email="bonnemainslucas@gmail.com" },
 ]
 description = "A small example package"
 readme = "README.md"

From f8012431c494bcd3be6112d678d940018d97928d Mon Sep 17 00:00:00 2001
From: Pepitoww <96070621+Pepitoww@users.noreply.github.com>
Date: Thu, 29 Sep 2022 18:05:14 +0200
Subject: [PATCH 6/6] lafinjespere

---
 pyproject.toml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index 0d7892f..ddce99e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -3,10 +3,10 @@ requires = ["hatchling"]
 build-backend = "hatchling.build"
 
 [project]
-name = "lucas"
+name = "Pepitoww"
 version = "0.0.1"
 authors = [
-  { name="lucas", email="bonnemainslucas@gmail.com" },
+  { name="Pepitoww", email="lucas.bonnemains@isen.yncrea.fr" },
 ]
 description = "A small example package"
 readme = "README.md"