techservicesillinois / awscli-login

​awscli-login is an AWS CLI plugin that manages retrieving and rotating Amazon STS temporary credentials using SAML ECP for authentication with optional support for Duo.
https://pypi.org/project/awscli-login/
Other
54 stars 25 forks source link

awscli_login.plugin is absent from setuptools' `packages` configuration #172

Closed ddriddle closed 10 months ago

ddriddle commented 11 months ago

Fix the following warning. This may prevent the plugin from working:

$ python --version
Python 3.12.0
$ python -m venv venv
$ source venv/bin/activate
$ make clean deps
$ make build
...
..
/private/var/folders/5l/4dh10m0s2dl86hw__w1qp6qr0000gq/T/build-env-adg_uhq6/lib/python3.12/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'awscli_login.plugin' is absent from the `packages` configuration.
!!

        ********************************************************************************
        ############################
        # Package would be ignored #
        ############################
        Python recognizes 'awscli_login.plugin' 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 'awscli_login.plugin' 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 'awscli_login.plugin' to be distributed and are
        already explicitly excluding 'awscli_login.plugin' 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)

Task List: