From fbe208bf34703629f6eeefc84d1deaf76ae63525 Mon Sep 17 00:00:00 2001 From: markur <98951648+markur4@users.noreply.github.com> Date: Fri, 17 Nov 2023 20:55:13 +0100 Subject: [PATCH] test_coverage and Manifest.in and setup.py --- .github/workflows/test_coverage.yml | 4 ++-- MANIFEST.in | 6 ++++++ setup.py | 10 ++++++++-- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test_coverage.yml b/.github/workflows/test_coverage.yml index 13485d6..a1adc20 100644 --- a/.github/workflows/test_coverage.yml +++ b/.github/workflows/test_coverage.yml @@ -1,12 +1,12 @@ name: test coverage -run-name: ${{ github.actor }} ${{ github.event_name }}; Setup env, run tests, upload coverage +run-name: ${{ github.actor }} ${{ github.event_name }}; Setup testenv, run tests, upload coverage on: [push, pull_request] jobs: build: runs-on: ubuntu-latest - name: Setup environment, run tests, upload coverage + name: Setup testenv, run tests, upload coverage steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v2 diff --git a/MANIFEST.in b/MANIFEST.in index c9ebbd3..7669e0c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,9 @@ +include LICENSE +include README.md +include How_To_Use/*.ipynb +include tests/pytest.ini +include tests/*.py +include tests/*_test/*.py include src/plotastic/py.typed include src/plotastic/dataanalysis/py.typed include src/plotastic/example_data/data/*xlsx \ No newline at end of file diff --git a/setup.py b/setup.py index 177b93d..4bd6e10 100644 --- a/setup.py +++ b/setup.py @@ -41,7 +41,13 @@ # == Package Structure ============================================= ### Automatically find all packages in src # * Those that have an __init__.py AND match the name of the package - packages=find_packages(where="src", include=[NAME, NAME + ".*"]), + packages=find_packages( + where="src", + include=[ + NAME, #- src/plotastic + NAME + ".*", #- src/plotastic.* (subpackages) + ], + ), ### Define location of all packages. package_dir={ "": "src", # * "" is the package root (where setup.py is) @@ -49,7 +55,7 @@ # "dataanalysis": "src/plotastic/dataanalysis", }, # == Non .py Files ================================================= - include_package_data=True # * Include non .py files specified in MANIFEST.in + include_package_data=True # * Include non .py files specified in MANIFEST.in ### Required files (e.g. py.typed, documentation...) # package_data={ # "": [f"py.typed"], # * "" is the package root (where setup.py is)