From 4e91c13512b6d46cce4c3dd5f401d3ee1b6b0069 Mon Sep 17 00:00:00 2001 From: SAIKAT KARMAKAR Date: Sat, 6 Jul 2024 00:49:11 +0530 Subject: [PATCH 1/4] chore: trying to fix missing config files from wheel --- CHANGELOG.md | 12 ++++++++++++ pyproject.toml | 8 ++++++++ src/nipe_py/__init__.py | 2 +- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..9caeb62 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,12 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## [0.1.3] - 2024-07-05 + +### ⚙️ Miscellaneous Tasks + +- Some changes to the pip package. vesion 0.1.3 released +- Readme updated. pyproject.toml updated + + diff --git a/pyproject.toml b/pyproject.toml index 59601fd..59489ab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -128,6 +128,8 @@ lint-check = [ docs-serve = "mkdocs serve" docs-build = "mkdocs build" + +# Build configs [tool.hatch.build.targets.sdist] # include = [ # "src/**/*.py", @@ -135,6 +137,12 @@ docs-build = "mkdocs build" # ] exclude = ["build/", "dist/", "docs/", "tests/*", ".github/", "assets/", ".cruft.json", ".editorconfig", "mkdocs.yml"] +[tool.hatch.build.targets.wheel] +artifacts = [ + ".configs/*", + "*-torrc" +] + [build-system] requires = ["hatchling", "hatch-regex-commit"] diff --git a/src/nipe_py/__init__.py b/src/nipe_py/__init__.py index 0d95af3..ae3efb5 100644 --- a/src/nipe_py/__init__.py +++ b/src/nipe_py/__init__.py @@ -9,4 +9,4 @@ __all__ = ["Device", "Install", "Status", "Restart", "Start", "Stop"] -__version__ = "0.1.3" +__version__ = "0.1.4" From 2a68a936eb3ec6506ce49ebd8332f6db556b39d8 Mon Sep 17 00:00:00 2001 From: SAIKAT KARMAKAR Date: Sat, 6 Jul 2024 13:01:10 +0530 Subject: [PATCH 2/4] fix: pyproject.toml updated to ship the package with proper config files --- pyproject.toml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 59489ab..fdb563a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -135,13 +135,15 @@ docs-build = "mkdocs build" # "src/**/*.py", # ".configs/*" # ] -exclude = ["build/", "dist/", "docs/", "tests/*", ".github/", "assets/", ".cruft.json", ".editorconfig", "mkdocs.yml"] +# exclude = ["build/", "dist/", "docs/", "tests/*", ".github/", "assets/", ".cruft.json", ".editorconfig", "mkdocs.yml"] +only-include = ["src", ".configs"] [tool.hatch.build.targets.wheel] -artifacts = [ - ".configs/*", - "*-torrc" -] +# artifacts = [ +# ".configs/*", +# "*-torrc" +# ] +packages = ["src", ".configs"] [build-system] From 544d378f7851995a91b62a27c057c1cbedccae6e Mon Sep 17 00:00:00 2001 From: SAIKAT KARMAKAR Date: Sat, 6 Jul 2024 13:08:41 +0530 Subject: [PATCH 3/4] fix: module not found error --- CHANGELOG.md | 7 ++++++- pyproject.toml | 12 ++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9caeb62..8d0be58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,11 +2,16 @@ All notable changes to this project will be documented in this file. -## [0.1.3] - 2024-07-05 +## [0.1.4] - 2024-07-06 + +### 🐛 Bug Fixes + +- Pyproject.toml updated to ship the package with proper config files ### ⚙️ Miscellaneous Tasks - Some changes to the pip package. vesion 0.1.3 released - Readme updated. pyproject.toml updated +- Trying to fix missing config files from wheel diff --git a/pyproject.toml b/pyproject.toml index fdb563a..d751632 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -131,19 +131,19 @@ docs-build = "mkdocs build" # Build configs [tool.hatch.build.targets.sdist] -# include = [ -# "src/**/*.py", -# ".configs/*" -# ] +include = [ + "src/**/*.py", + ".configs/*" +] # exclude = ["build/", "dist/", "docs/", "tests/*", ".github/", "assets/", ".cruft.json", ".editorconfig", "mkdocs.yml"] -only-include = ["src", ".configs"] +# only-include = ["src/nipe_py/*.py", ".configs"] [tool.hatch.build.targets.wheel] # artifacts = [ # ".configs/*", # "*-torrc" # ] -packages = ["src", ".configs"] +packages = ["src/nipe_py", ".configs"] [build-system] From 2e8dc21634a1c039ec2aa79f4264a5be21f1c844 Mon Sep 17 00:00:00 2001 From: SAIKAT KARMAKAR Date: Sat, 6 Jul 2024 13:08:54 +0530 Subject: [PATCH 4/4] docs: changelogs added --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d0be58..f031036 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file. ### 🐛 Bug Fixes - Pyproject.toml updated to ship the package with proper config files +- Module not found error ### ⚙️ Miscellaneous Tasks