Repository: brainelectronics/micropython-package-template (language: python)

Issue:
Package is installed into wrong directory
Installing the package with 

```python
import upip
upip.install('micropython-package-template')
```

creates the files at `/lib/scr/be_upy_blink` instead of `/lib/be_upy_blink`.

The following options in the `setup.py` file have no effect due to the custom `sdist_upip.py` actions, see test deploy at https://test.pypi.org/project/micropython-package-template/0.1.1/

```python
package_dir={"": "src"},
packages=find_packages(where="src"),
```


Discussion / hints:

Fix patch:
diff --git a/.coveragerc b/.coveragerc
index 07234c9..4604593 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -13,7 +13,8 @@ omit =
     version.py
 
 [report]
-include = src/*
+# include = src/*
+include = be_upy_blink/*
 # Regexes for lines to exclude from consideration
 
 ignore_errors = True
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index c0aa971..5adf5df 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -31,7 +31,7 @@ jobs:
       run: |
         changelog2version \
           --changelog_file changelog.md \
-          --version_file src/be_upy_blink/version.py \
+          --version_file be_upy_blink/version.py \
           --version_file_type py \
           --debug
         python setup.py sdist
diff --git a/README.md b/README.md
index 396d6ed..396d637 100644
--- a/README.md
+++ b/README.md
@@ -92,7 +92,7 @@ folders to the device
 mkdir /pyboard/lib
 mkdir /pyboard/lib/be_upy_blink
 
-cp src/be_upy_blink/* /pyboard/lib/be_upy_blink
+cp be_upy_blink/* /pyboard/lib/be_upy_blink
 
 cp examples/main.py /pyboard
 cp examples/boot.py /pyboard
diff --git a/src/be_upy_blink/__init__.py b/be_upy_blink/__init__.py
similarity index 100%
rename from src/be_upy_blink/__init__.py
rename to be_upy_blink/__init__.py
diff --git a/src/be_upy_blink/blink.py b/be_upy_blink/blink.py
similarity index 100%
rename from src/be_upy_blink/blink.py
rename to be_upy_blink/blink.py
diff --git a/src/be_upy_blink/version.py b/be_upy_blink/version.py
similarity index 100%
rename from src/be_upy_blink/version.py
rename to be_upy_blink/version.py
diff --git a/changelog.md b/changelog.md
index c5f0ce6..912ddac 100644
--- a/changelog.md
+++ b/changelog.md
@@ -17,6 +17,11 @@ r"^\#\# \[\d{1,}[.]\d{1,}[.]\d{1,}\] \- \d{4}\-\d{2}-\d{2}$"
 -->
 
 ## Released
+## [0.1.1] - 2022-10-16
+### Fixed
+- Move `src/be_upy_blink` to `be_upy_blink` to avoid installations into `/lib/src/be_upy_blink` on a uPy board via `upip`, see [#3][ref-issue-3]
+- Adjust all paths to `be_upy_blink` folder and contained files
+
 ## [0.1.0] - 2022-10-16
 ### Added
 - This changelog file
@@ -36,12 +41,11 @@ r"^\#\# \[\d{1,}[.]\d{1,}[.]\d{1,}\] \- \d{4}\-\d{2}-\d{2}$"
 - [`setup.py`](setup.py) and [`sdist_upip.py`](sdist_upip.py) file
 
 <!-- Links -->
-[Unreleased]: https://github.com/brainelectronics/micropython-package-template/compare/0.1.0...develop
+[Unreleased]: https://github.com/brainelectronics/micropython-package-template/compare/0.1.1...develop
 
+[0.1.1]: https://github.com/brainelectronics/micropython-package-template/tree/0.1.1
 [0.1.0]: https://github.com/brainelectronics/micropython-package-template/tree/0.1.0
 
-<!--
-[ref-issue-1]: https://github.com/brainelectronics/micropython-package-template/issues/1
--->
+[ref-issue-3]: https://github.com/brainelectronics/micropython-package-template/issues/3
 
 [ref-python-gitignore-template]: https://github.com/github/gitignore/blob/e5323759e387ba347a9d50f8b0ddd16502eb71d4/Python.gitignore
diff --git a/setup.py b/setup.py
index 1b6cdb8..7932aee 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@
 long_description = (here / 'README.md').read_text(encoding='utf-8')
 
 # load elements of version.py
-exec(open(here / 'src' / 'be_upy_blink' / 'version.py').read())
+exec(open(here / 'be_upy_blink' / 'version.py').read())
 
 setup(
     name='micropython-package-template',
@@ -34,6 +34,6 @@
     },
     license='MIT',
     cmdclass={'sdist': sdist_upip.sdist},
-    packages=['src/be_upy_blink'],
+    packages=['be_upy_blink'],
     install_requires=[]
 )


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 7c17ca8..4df77a8 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -41,7 +41,7 @@ jobs:
       run: |
         changelog2version \
           --changelog_file changelog.md \
-          --version_file src/be_upy_blink/version.py \
+          --version_file be_upy_blink/version.py \
           --version_file_type py \
           --debug
         python setup.py sdist