jgieseler / solo-epd-loader

Data loader (and downloader) for Solar Orbiter/EPD energetic charged particle sensors EPT, HET, and STEP. Supports level 2 and low latency data provided by ESA's Solar Orbiter Archive.
BSD 3-Clause "New" or "Revised" License
16 stars 2 forks source link

Exclude subdirectories from package configuration #32

Open jgieseler opened 8 months ago

jgieseler commented 8 months ago

In the current building configuration, the subfolders contamination_matrices 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 solo_epd_loader.egg-info/PKG-INFO
writing dependency_links to solo_epd_loader.egg-info/dependency_links.txt
writing requirements to solo_epd_loader.egg-info/requires.txt
writing top-level names to solo_epd_loader.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'
adding license file 'licenses/LICENSE.rst'
writing manifest file 'solo_epd_loader.egg-info/SOURCES.txt'
running check
creating solo_epd_loader-0.3.7
creating solo_epd_loader-0.3.7/docs
creating solo_epd_loader-0.3.7/examples
creating solo_epd_loader-0.3.7/licenses
creating solo_epd_loader-0.3.7/solo_epd_loader
creating solo_epd_loader-0.3.7/solo_epd_loader.egg-info
creating solo_epd_loader-0.3.7/solo_epd_loader/contamination_matrices
creating solo_epd_loader-0.3.7/solo_epd_loader/data
creating solo_epd_loader-0.3.7/solo_epd_loader/data/test
creating solo_epd_loader-0.3.7/solo_epd_loader/data/test/l2
creating solo_epd_loader-0.3.7/solo_epd_loader/data/test/l2/epd
creating solo_epd_loader-0.3.7/solo_epd_loader/data/test/l2/epd/ept
creating solo_epd_loader-0.3.7/solo_epd_loader/tests
copying files to solo_epd_loader-0.3.7...
copying LICENSE.rst -> solo_epd_loader-0.3.7
copying MANIFEST.in -> solo_epd_loader-0.3.7
copying README.rst -> solo_epd_loader-0.3.7
copying code_of_conduct.md -> solo_epd_loader-0.3.7
copying gh2021_fig_2.png -> solo_epd_loader-0.3.7
copying gh2021_fig_2a.png -> solo_epd_loader-0.3.7
copying pyproject.toml -> solo_epd_loader-0.3.7
copying requirements.txt -> solo_epd_loader-0.3.7
copying setup.cfg -> solo_epd_loader-0.3.7
copying setup.py -> solo_epd_loader-0.3.7
copying tox.ini -> solo_epd_loader-0.3.7
copying docs/Makefile -> solo_epd_loader-0.3.7/docs
copying docs/conf.py -> solo_epd_loader-0.3.7/docs
copying docs/index.rst -> solo_epd_loader-0.3.7/docs
copying docs/make.bat -> solo_epd_loader-0.3.7/docs
copying examples/gh2021_fig_2.png -> solo_epd_loader-0.3.7/examples
copying examples/ws2021_fig_2d.png -> solo_epd_loader-0.3.7/examples
copying licenses/LICENSE.rst -> solo_epd_loader-0.3.7/licenses
copying licenses/SUNPY_LICENSE.rst -> solo_epd_loader-0.3.7/licenses
copying licenses/TEMPLATE_LICENSE.rst -> solo_epd_loader-0.3.7/licenses
copying solo_epd_loader/__init__.py -> solo_epd_loader-0.3.7/solo_epd_loader
copying solo_epd_loader/version.py -> solo_epd_loader-0.3.7/solo_epd_loader
copying solo_epd_loader.egg-info/PKG-INFO -> solo_epd_loader-0.3.7/solo_epd_loader.egg-info
copying solo_epd_loader.egg-info/SOURCES.txt -> solo_epd_loader-0.3.7/solo_epd_loader.egg-info
copying solo_epd_loader.egg-info/dependency_links.txt -> solo_epd_loader-0.3.7/solo_epd_loader.egg-info
copying solo_epd_loader.egg-info/not-zip-safe -> solo_epd_loader-0.3.7/solo_epd_loader.egg-info
copying solo_epd_loader.egg-info/requires.txt -> solo_epd_loader-0.3.7/solo_epd_loader.egg-info
copying solo_epd_loader.egg-info/top_level.txt -> solo_epd_loader-0.3.7/solo_epd_loader.egg-info
copying solo_epd_loader/contamination_matrices/EPT_ion_contamination_matrix_sun.dat -> solo_epd_loader-0.3.7/solo_epd_loader/contamination_matrices
copying solo_epd_loader/data/test/l2/epd/ept/solo_L2_epd-ept-asun-rates_20200603_V02.cdf -> solo_epd_loader-0.3.7/solo_epd_loader/data/test/l2/epd/ept
copying solo_epd_loader/data/test/l2/epd/ept/solo_L2_epd-ept-north-rates_20200603_V02.cdf -> solo_epd_loader-0.3.7/solo_epd_loader/data/test/l2/epd/ept
copying solo_epd_loader/data/test/l2/epd/ept/solo_L2_epd-ept-south-rates_20200603_V02.cdf -> solo_epd_loader-0.3.7/solo_epd_loader/data/test/l2/epd/ept
copying solo_epd_loader/data/test/l2/epd/ept/solo_L2_epd-ept-sun-rates_20200603_V02.cdf -> solo_epd_loader-0.3.7/solo_epd_loader/data/test/l2/epd/ept
copying solo_epd_loader/tests/__init__.py -> solo_epd_loader-0.3.7/solo_epd_loader/tests
copying solo_epd_loader/tests/tests.py -> solo_epd_loader-0.3.7/solo_epd_loader/tests
copying solo_epd_loader.egg-info/SOURCES.txt -> solo_epd_loader-0.3.7/solo_epd_loader.egg-info
Writing solo_epd_loader-0.3.7/setup.cfg
Creating tar archive
removing 'solo_epd_loader-0.3.7' (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/solo_epd_loader
copying solo_epd_loader/__init__.py -> build/lib/solo_epd_loader
copying solo_epd_loader/version.py -> build/lib/solo_epd_loader
creating build/lib/solo_epd_loader/tests
copying solo_epd_loader/tests/__init__.py -> build/lib/solo_epd_loader/tests
copying solo_epd_loader/tests/tests.py -> build/lib/solo_epd_loader/tests
running egg_info
writing solo_epd_loader.egg-info/PKG-INFO
writing dependency_links to solo_epd_loader.egg-info/dependency_links.txt
writing requirements to solo_epd_loader.egg-info/requires.txt
writing top-level names to solo_epd_loader.egg-info/top_level.txt
ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
reading manifest file 'solo_epd_loader.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 'solo_epd_loader.egg-info/SOURCES.txt'
/tmp/build-env-d7_9ox7e/lib/python3.9/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'solo_epd_loader.contamination_matrices' is absent from the `packages` configuration.
!!

        ********************************************************************************
        ############################
        # Package would be ignored #
        ############################
        Python recognizes 'solo_epd_loader.contamination_matrices' 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 'solo_epd_loader.contamination_matrices' 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 'solo_epd_loader.contamination_matrices' to be distributed and are
        already explicitly excluding 'solo_epd_loader.contamination_matrices' 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-d7_9ox7e/lib/python3.9/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'solo_epd_loader.data.test.l2.epd.ept' is absent from the `packages` configuration.
!!

        ********************************************************************************
        ############################
        # Package would be ignored #
        ############################
        Python recognizes 'solo_epd_loader.data.test.l2.epd.ept' 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 'solo_epd_loader.data.test.l2.epd.ept' 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 'solo_epd_loader.data.test.l2.epd.ept' to be distributed and are
        already explicitly excluding 'solo_epd_loader.data.test.l2.epd.ept' 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/solo_epd_loader/contamination_matrices
copying solo_epd_loader/contamination_matrices/EPT_ion_contamination_matrix_sun.dat -> build/lib/solo_epd_loader/contamination_matrices
creating build/lib/solo_epd_loader/data
creating build/lib/solo_epd_loader/data/test
creating build/lib/solo_epd_loader/data/test/l2
creating build/lib/solo_epd_loader/data/test/l2/epd
creating build/lib/solo_epd_loader/data/test/l2/epd/ept
copying solo_epd_loader/data/test/l2/epd/ept/solo_L2_epd-ept-asun-rates_20200603_V02.cdf -> build/lib/solo_epd_loader/data/test/l2/epd/ept
copying solo_epd_loader/data/test/l2/epd/ept/solo_L2_epd-ept-north-rates_20200603_V02.cdf -> build/lib/solo_epd_loader/data/test/l2/epd/ept
copying solo_epd_loader/data/test/l2/epd/ept/solo_L2_epd-ept-south-rates_20200603_V02.cdf -> build/lib/solo_epd_loader/data/test/l2/epd/ept
copying solo_epd_loader/data/test/l2/epd/ept/solo_L2_epd-ept-sun-rates_20200603_V02.cdf -> build/lib/solo_epd_loader/data/test/l2/epd/ept
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/solo_epd_loader
copying build/lib/solo_epd_loader/__init__.py -> build/bdist.linux-x86_64/wheel/solo_epd_loader
creating build/bdist.linux-x86_64/wheel/solo_epd_loader/tests
copying build/lib/solo_epd_loader/tests/__init__.py -> build/bdist.linux-x86_64/wheel/solo_epd_loader/tests
copying build/lib/solo_epd_loader/tests/tests.py -> build/bdist.linux-x86_64/wheel/solo_epd_loader/tests
copying build/lib/solo_epd_loader/version.py -> build/bdist.linux-x86_64/wheel/solo_epd_loader
creating build/bdist.linux-x86_64/wheel/solo_epd_loader/contamination_matrices
copying build/lib/solo_epd_loader/contamination_matrices/EPT_ion_contamination_matrix_sun.dat -> build/bdist.linux-x86_64/wheel/solo_epd_loader/contamination_matrices
creating build/bdist.linux-x86_64/wheel/solo_epd_loader/data
creating build/bdist.linux-x86_64/wheel/solo_epd_loader/data/test
creating build/bdist.linux-x86_64/wheel/solo_epd_loader/data/test/l2
creating build/bdist.linux-x86_64/wheel/solo_epd_loader/data/test/l2/epd
creating build/bdist.linux-x86_64/wheel/solo_epd_loader/data/test/l2/epd/ept
copying build/lib/solo_epd_loader/data/test/l2/epd/ept/solo_L2_epd-ept-sun-rates_20200603_V02.cdf -> build/bdist.linux-x86_64/wheel/solo_epd_loader/data/test/l2/epd/ept
copying build/lib/solo_epd_loader/data/test/l2/epd/ept/solo_L2_epd-ept-south-rates_20200603_V02.cdf -> build/bdist.linux-x86_64/wheel/solo_epd_loader/data/test/l2/epd/ept
copying build/lib/solo_epd_loader/data/test/l2/epd/ept/solo_L2_epd-ept-north-rates_20200603_V02.cdf -> build/bdist.linux-x86_64/wheel/solo_epd_loader/data/test/l2/epd/ept
copying build/lib/solo_epd_loader/data/test/l2/epd/ept/solo_L2_epd-ept-asun-rates_20200603_V02.cdf -> build/bdist.linux-x86_64/wheel/solo_epd_loader/data/test/l2/epd/ept
running install_egg_info
Copying solo_epd_loader.egg-info to build/bdist.linux-x86_64/wheel/solo_epd_loader-0.3.7-py3.9.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/solo_epd_loader-0.3.7.dist-info/WHEEL
creating '/home/jagies/uni/solo/solo-epd-loader/dist/.tmp-xlqcme61/solo_epd_loader-0.3.7-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'solo_epd_loader/__init__.py'
adding 'solo_epd_loader/version.py'
adding 'solo_epd_loader/contamination_matrices/EPT_ion_contamination_matrix_sun.dat'
adding 'solo_epd_loader/data/test/l2/epd/ept/solo_L2_epd-ept-asun-rates_20200603_V02.cdf'
adding 'solo_epd_loader/data/test/l2/epd/ept/solo_L2_epd-ept-north-rates_20200603_V02.cdf'
adding 'solo_epd_loader/data/test/l2/epd/ept/solo_L2_epd-ept-south-rates_20200603_V02.cdf'
adding 'solo_epd_loader/data/test/l2/epd/ept/solo_L2_epd-ept-sun-rates_20200603_V02.cdf'
adding 'solo_epd_loader/tests/__init__.py'
adding 'solo_epd_loader/tests/tests.py'
adding 'solo_epd_loader-0.3.7.dist-info/LICENSE.rst'
adding 'solo_epd_loader-0.3.7.dist-info/METADATA'
adding 'solo_epd_loader-0.3.7.dist-info/WHEEL'
adding 'solo_epd_loader-0.3.7.dist-info/top_level.txt'
adding 'solo_epd_loader-0.3.7.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built solo_epd_loader-0.3.7.tar.gz and solo_epd_loader-0.3.7-py3-none-any.whl