serpentine-h2020 / SEPpy

A compendium of Python data loaders and analysis tools for in-situ measurements of Solar Energetic Particles (SEP)
BSD 3-Clause "New" or "Revised" License
7 stars 6 forks source link

Fix subdirectories' package configuration #56

Open jgieseler opened 8 months ago

jgieseler commented 8 months ago

In the current building configuration, the subfolders loader and data are not unambiguously defined, which needs to be fixed.

Full log:

$ python -m build
* Creating venv isolated environment...
* Installing packages in isolated environment... (setuptools, setuptools_scm, wheel)
* Getting build dependencies for sdist...
* Installing packages in isolated environment... (setuptools_scm)
* Building sdist...
WARNING setuptools_scm._integration.setuptools pyproject.toml does not contain a tool.setuptools_scm section
WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
running sdist
running egg_info
writing seppy.egg-info/PKG-INFO
writing dependency_links to seppy.egg-info/dependency_links.txt
writing requirements to seppy.egg-info/requires.txt
writing top-level names to seppy.egg-info/top_level.txt
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'build'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'docs/api'
no previously-included directories found matching '.circleci'
no previously-included directories found matching '.jupyter'
no previously-included directories found matching 'binder'
warning: no previously-included files found matching '.mailmap'
warning: no previously-included files found matching '.gitattributes'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '*.yml'
warning: no previously-included files found matching '*.yaml'
adding license file 'licenses/LICENSE.rst'
writing manifest file 'seppy.egg-info/SOURCES.txt'
running check
creating seppy-0.1.13
creating seppy-0.1.13/docs
creating seppy-0.1.13/licenses
creating seppy-0.1.13/seppy
creating seppy-0.1.13/seppy.egg-info
creating seppy-0.1.13/seppy/data
creating seppy-0.1.13/seppy/data/test
creating seppy-0.1.13/seppy/loader
creating seppy-0.1.13/seppy/tests
creating seppy-0.1.13/seppy/tools
creating seppy-0.1.13/seppy/util
copying files to seppy-0.1.13...
copying LICENSE.rst -> seppy-0.1.13
copying MANIFEST.in -> seppy-0.1.13
copying README.rst -> seppy-0.1.13
copying pyproject.toml -> seppy-0.1.13
copying requirements.txt -> seppy-0.1.13
copying setup.cfg -> seppy-0.1.13
copying setup.py -> seppy-0.1.13
copying tox.ini -> seppy-0.1.13
copying docs/Makefile -> seppy-0.1.13/docs
copying docs/conf.py -> seppy-0.1.13/docs
copying docs/index.rst -> seppy-0.1.13/docs
copying docs/make.bat -> seppy-0.1.13/docs
copying licenses/LICENSE.rst -> seppy-0.1.13/licenses
copying licenses/SUNPY_LICENSE.rst -> seppy-0.1.13/licenses
copying licenses/TEMPLATE_LICENSE.rst -> seppy-0.1.13/licenses
copying seppy/__init__.py -> seppy-0.1.13/seppy
copying seppy/version.py -> seppy-0.1.13/seppy
copying seppy.egg-info/PKG-INFO -> seppy-0.1.13/seppy.egg-info
copying seppy.egg-info/SOURCES.txt -> seppy-0.1.13/seppy.egg-info
copying seppy.egg-info/dependency_links.txt -> seppy-0.1.13/seppy.egg-info
copying seppy.egg-info/not-zip-safe -> seppy-0.1.13/seppy.egg-info
copying seppy.egg-info/requires.txt -> seppy-0.1.13/seppy.egg-info
copying seppy.egg-info/top_level.txt -> seppy-0.1.13/seppy.egg-info
copying seppy/data/test/epi21106.rl2 -> seppy-0.1.13/seppy/data/test
copying seppy/data/test/psp_isois-epihi_l2-het-rates60_20210531_v15.cdf -> seppy-0.1.13/seppy/data/test
copying seppy/data/test/sept_ahead_ele_sun_2006_318_1min_l2_v03.dat -> seppy-0.1.13/seppy/data/test
copying seppy/data/test/soho_erne-hed_l2-1min_20211028_v01.cdf -> seppy-0.1.13/seppy/data/test
copying seppy/data/test/solo_l2_mag-rtn-normal-1-minute_20210712_v01.cdf -> seppy-0.1.13/seppy/data/test
copying seppy/data/test/sta_l1_het_20211028_v01.cdf -> seppy-0.1.13/seppy/data/test
copying seppy/data/test/wi_sfsp_3dp_00000000_v01.cdf -> seppy-0.1.13/seppy/data/test
copying seppy/data/test/wi_sfsp_3dp_20200213_v01.cdf -> seppy-0.1.13/seppy/data/test
copying seppy/loader/psp.py -> seppy-0.1.13/seppy/loader
copying seppy/loader/soho.py -> seppy-0.1.13/seppy/loader
copying seppy/loader/solo.py -> seppy-0.1.13/seppy/loader
copying seppy/loader/stereo.py -> seppy-0.1.13/seppy/loader
copying seppy/loader/wind.py -> seppy-0.1.13/seppy/loader
copying seppy/tests/__init__.py -> seppy-0.1.13/seppy/tests
copying seppy/tests/test_loader.py -> seppy-0.1.13/seppy/tests
copying seppy/tests/test_tools.py -> seppy-0.1.13/seppy/tests
copying seppy/tools/__init__.py -> seppy-0.1.13/seppy/tools
copying seppy/tools/swaves.py -> seppy-0.1.13/seppy/tools
copying seppy/tools/widgets.py -> seppy-0.1.13/seppy/tools
copying seppy/util/__init__.py -> seppy-0.1.13/seppy/util
copying seppy.egg-info/SOURCES.txt -> seppy-0.1.13/seppy.egg-info
Writing seppy-0.1.13/setup.cfg
Creating tar archive
removing 'seppy-0.1.13' (and everything under it)
* Building wheel from sdist
* Creating venv isolated environment...
* Installing packages in isolated environment... (setuptools, setuptools_scm, wheel)
* Getting build dependencies for wheel...
* Installing packages in isolated environment... (setuptools_scm, wheel)
* Building wheel...
WARNING setuptools_scm._integration.setuptools pyproject.toml does not contain a tool.setuptools_scm section
WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/seppy
copying seppy/__init__.py -> build/lib/seppy
copying seppy/version.py -> build/lib/seppy
creating build/lib/seppy/tests
copying seppy/tests/__init__.py -> build/lib/seppy/tests
copying seppy/tests/test_loader.py -> build/lib/seppy/tests
copying seppy/tests/test_tools.py -> build/lib/seppy/tests
creating build/lib/seppy/util
copying seppy/util/__init__.py -> build/lib/seppy/util
creating build/lib/seppy/tools
copying seppy/tools/__init__.py -> build/lib/seppy/tools
copying seppy/tools/widgets.py -> build/lib/seppy/tools
copying seppy/tools/swaves.py -> build/lib/seppy/tools
running egg_info
writing seppy.egg-info/PKG-INFO
writing dependency_links to seppy.egg-info/dependency_links.txt
writing requirements to seppy.egg-info/requires.txt
writing top-level names to seppy.egg-info/top_level.txt
ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
reading manifest file 'seppy.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'build'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'docs/api'
no previously-included directories found matching '.circleci'
no previously-included directories found matching '.github'
no previously-included directories found matching '.jupyter'
no previously-included directories found matching 'binder'
warning: no previously-included files found matching '.mailmap'
warning: no previously-included files found matching '.gitignore'
warning: no previously-included files found matching '.gitattributes'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.zenodo.json'
warning: no previously-included files found matching '*.yml'
warning: no previously-included files found matching '*.yaml'
adding license file 'licenses/LICENSE.rst'
writing manifest file 'seppy.egg-info/SOURCES.txt'
/tmp/build-env-fbw353s7/lib/python3.9/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'seppy.data.test' is absent from the `packages` configuration.
!!

        ********************************************************************************
        ############################
        # Package would be ignored #
        ############################
        Python recognizes 'seppy.data.test' as an importable package[^1],
        but it is absent from setuptools' `packages` configuration.

        This leads to an ambiguous overall configuration. If you want to distribute this
        package, please make sure that 'seppy.data.test' is explicitly added
        to the `packages` configuration field.

        Alternatively, you can also rely on setuptools' discovery methods
        (for example by using `find_namespace_packages(...)`/`find_namespace:`
        instead of `find_packages(...)`/`find:`).

        You can read more about "package discovery" on setuptools documentation page:

        - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

        If you don't want 'seppy.data.test' to be distributed and are
        already explicitly excluding 'seppy.data.test' via
        `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
        you can try to use `exclude_package_data`, or `include-package-data=False` in
        combination with a more fine grained `package-data` configuration.

        You can read more about "package data files" on setuptools documentation page:

        - https://setuptools.pypa.io/en/latest/userguide/datafiles.html

        [^1]: For Python, any directory (with suitable naming) can be imported,
              even if it does not contain any `.py` files.
              On the other hand, currently there is no concept of package data
              directory, all directories are treated like packages.
        ********************************************************************************

!!
  check.warn(importable)
/tmp/build-env-fbw353s7/lib/python3.9/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'seppy.loader' is absent from the `packages` configuration.
!!

        ********************************************************************************
        ############################
        # Package would be ignored #
        ############################
        Python recognizes 'seppy.loader' as an importable package[^1],
        but it is absent from setuptools' `packages` configuration.

        This leads to an ambiguous overall configuration. If you want to distribute this
        package, please make sure that 'seppy.loader' is explicitly added
        to the `packages` configuration field.

        Alternatively, you can also rely on setuptools' discovery methods
        (for example by using `find_namespace_packages(...)`/`find_namespace:`
        instead of `find_packages(...)`/`find:`).

        You can read more about "package discovery" on setuptools documentation page:

        - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

        If you don't want 'seppy.loader' to be distributed and are
        already explicitly excluding 'seppy.loader' via
        `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
        you can try to use `exclude_package_data`, or `include-package-data=False` in
        combination with a more fine grained `package-data` configuration.

        You can read more about "package data files" on setuptools documentation page:

        - https://setuptools.pypa.io/en/latest/userguide/datafiles.html

        [^1]: For Python, any directory (with suitable naming) can be imported,
              even if it does not contain any `.py` files.
              On the other hand, currently there is no concept of package data
              directory, all directories are treated like packages.
        ********************************************************************************

!!
  check.warn(importable)
creating build/lib/seppy/data
creating build/lib/seppy/data/test
copying seppy/data/test/epi21106.rl2 -> build/lib/seppy/data/test
copying seppy/data/test/psp_isois-epihi_l2-het-rates60_20210531_v15.cdf -> build/lib/seppy/data/test
copying seppy/data/test/sept_ahead_ele_sun_2006_318_1min_l2_v03.dat -> build/lib/seppy/data/test
copying seppy/data/test/soho_erne-hed_l2-1min_20211028_v01.cdf -> build/lib/seppy/data/test
copying seppy/data/test/solo_l2_mag-rtn-normal-1-minute_20210712_v01.cdf -> build/lib/seppy/data/test
copying seppy/data/test/sta_l1_het_20211028_v01.cdf -> build/lib/seppy/data/test
copying seppy/data/test/wi_sfsp_3dp_00000000_v01.cdf -> build/lib/seppy/data/test
copying seppy/data/test/wi_sfsp_3dp_20200213_v01.cdf -> build/lib/seppy/data/test
creating build/lib/seppy/loader
copying seppy/loader/psp.py -> build/lib/seppy/loader
copying seppy/loader/soho.py -> build/lib/seppy/loader
copying seppy/loader/solo.py -> build/lib/seppy/loader
copying seppy/loader/stereo.py -> build/lib/seppy/loader
copying seppy/loader/wind.py -> build/lib/seppy/loader
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/seppy
copying build/lib/seppy/__init__.py -> build/bdist.linux-x86_64/wheel/seppy
creating build/bdist.linux-x86_64/wheel/seppy/tests
copying build/lib/seppy/tests/__init__.py -> build/bdist.linux-x86_64/wheel/seppy/tests
copying build/lib/seppy/tests/test_loader.py -> build/bdist.linux-x86_64/wheel/seppy/tests
copying build/lib/seppy/tests/test_tools.py -> build/bdist.linux-x86_64/wheel/seppy/tests
copying build/lib/seppy/version.py -> build/bdist.linux-x86_64/wheel/seppy
creating build/bdist.linux-x86_64/wheel/seppy/util
copying build/lib/seppy/util/__init__.py -> build/bdist.linux-x86_64/wheel/seppy/util
creating build/bdist.linux-x86_64/wheel/seppy/data
creating build/bdist.linux-x86_64/wheel/seppy/data/test
copying build/lib/seppy/data/test/wi_sfsp_3dp_00000000_v01.cdf -> build/bdist.linux-x86_64/wheel/seppy/data/test
copying build/lib/seppy/data/test/psp_isois-epihi_l2-het-rates60_20210531_v15.cdf -> build/bdist.linux-x86_64/wheel/seppy/data/test
copying build/lib/seppy/data/test/solo_l2_mag-rtn-normal-1-minute_20210712_v01.cdf -> build/bdist.linux-x86_64/wheel/seppy/data/test
copying build/lib/seppy/data/test/sta_l1_het_20211028_v01.cdf -> build/bdist.linux-x86_64/wheel/seppy/data/test
copying build/lib/seppy/data/test/soho_erne-hed_l2-1min_20211028_v01.cdf -> build/bdist.linux-x86_64/wheel/seppy/data/test
copying build/lib/seppy/data/test/epi21106.rl2 -> build/bdist.linux-x86_64/wheel/seppy/data/test
copying build/lib/seppy/data/test/wi_sfsp_3dp_20200213_v01.cdf -> build/bdist.linux-x86_64/wheel/seppy/data/test
copying build/lib/seppy/data/test/sept_ahead_ele_sun_2006_318_1min_l2_v03.dat -> build/bdist.linux-x86_64/wheel/seppy/data/test
creating build/bdist.linux-x86_64/wheel/seppy/loader
copying build/lib/seppy/loader/soho.py -> build/bdist.linux-x86_64/wheel/seppy/loader
copying build/lib/seppy/loader/stereo.py -> build/bdist.linux-x86_64/wheel/seppy/loader
copying build/lib/seppy/loader/solo.py -> build/bdist.linux-x86_64/wheel/seppy/loader
copying build/lib/seppy/loader/wind.py -> build/bdist.linux-x86_64/wheel/seppy/loader
copying build/lib/seppy/loader/psp.py -> build/bdist.linux-x86_64/wheel/seppy/loader
creating build/bdist.linux-x86_64/wheel/seppy/tools
copying build/lib/seppy/tools/__init__.py -> build/bdist.linux-x86_64/wheel/seppy/tools
copying build/lib/seppy/tools/widgets.py -> build/bdist.linux-x86_64/wheel/seppy/tools
copying build/lib/seppy/tools/swaves.py -> build/bdist.linux-x86_64/wheel/seppy/tools
running install_egg_info
Copying seppy.egg-info to build/bdist.linux-x86_64/wheel/seppy-0.1.13-py3.9.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/seppy-0.1.13.dist-info/WHEEL
creating '/home/jagies/uni/serpentine/SEPpy/dist/.tmp-njl4y219/seppy-0.1.13-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'seppy/__init__.py'
adding 'seppy/version.py'
adding 'seppy/data/test/epi21106.rl2'
adding 'seppy/data/test/psp_isois-epihi_l2-het-rates60_20210531_v15.cdf'
adding 'seppy/data/test/sept_ahead_ele_sun_2006_318_1min_l2_v03.dat'
adding 'seppy/data/test/soho_erne-hed_l2-1min_20211028_v01.cdf'
adding 'seppy/data/test/solo_l2_mag-rtn-normal-1-minute_20210712_v01.cdf'
adding 'seppy/data/test/sta_l1_het_20211028_v01.cdf'
adding 'seppy/data/test/wi_sfsp_3dp_00000000_v01.cdf'
adding 'seppy/data/test/wi_sfsp_3dp_20200213_v01.cdf'
adding 'seppy/loader/psp.py'
adding 'seppy/loader/soho.py'
adding 'seppy/loader/solo.py'
adding 'seppy/loader/stereo.py'
adding 'seppy/loader/wind.py'
adding 'seppy/tests/__init__.py'
adding 'seppy/tests/test_loader.py'
adding 'seppy/tests/test_tools.py'
adding 'seppy/tools/__init__.py'
adding 'seppy/tools/swaves.py'
adding 'seppy/tools/widgets.py'
adding 'seppy/util/__init__.py'
adding 'seppy-0.1.13.dist-info/LICENSE.rst'
adding 'seppy-0.1.13.dist-info/METADATA'
adding 'seppy-0.1.13.dist-info/WHEEL'
adding 'seppy-0.1.13.dist-info/top_level.txt'
adding 'seppy-0.1.13.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built seppy-0.1.13.tar.gz and seppy-0.1.13-py3-none-any.whl