dbcli / mycli

A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.
http://mycli.net
Other
11.49k stars 663 forks source link

Don't install tests #1126

Closed parona-source closed 1 year ago

parona-source commented 1 year ago

Description

Currently mycli install tests. This change excludes it.

Before:

$ unzip -l ~/downloads/mycli-1.27.0-py2.py3-none-any.whl 
Archive:  /home/ask//downloads/mycli-1.27.0-py2.py3-none-any.whl
  Length      Date    Time    Name
---------  ---------- -----   ----
     1624  09-13-2022 21:47   mycli/AUTHORS
      484  01-04-2021 21:45   mycli/SPONSORS
       23  08-11-2023 11:33   mycli/__init__.py
     1490  09-13-2022 21:47   mycli/clibuffer.py
     6229  09-13-2022 21:47   mycli/clistyle.py
     2014  09-13-2022 21:47   mycli/clitoolbar.py
      113  01-04-2021 21:45   mycli/compat.py
     5009  04-15-2023 00:26   mycli/completion_refresher.py
    10241  09-13-2022 21:47   mycli/config.py
     4331  08-09-2023 10:42   mycli/key_bindings.py
      310  01-04-2021 21:45   mycli/lexer.py
     2043  08-09-2023 10:42   mycli/magic.py
    57986  08-09-2023 10:42   mycli/main.py
     5297  09-13-2022 21:47   mycli/myclirc
    28566  04-15-2023 00:26   mycli/sqlcompleter.py
    12856  08-09-2023 10:42   mycli/sqlexecute.py
        0  01-04-2021 21:45   mycli/packages/__init__.py
    12322  09-13-2022 21:47   mycli/packages/completion_engine.py
     2832  01-04-2021 21:45   mycli/packages/filepaths.py
     9734  09-13-2022 21:47   mycli/packages/parseutils.py
     1541  01-04-2021 21:45   mycli/packages/prompt_utils.py
      758  01-04-2021 21:45   mycli/packages/paramiko_stub/__init__.py
      245  01-04-2021 21:45   mycli/packages/special/__init__.py
     5534  09-13-2022 21:47   mycli/packages/special/dbcommands.py
     2660  01-04-2021 21:45   mycli/packages/special/delimitercommand.py
     2161  01-04-2021 21:45   mycli/packages/special/favoritequeries.py
    16258  09-13-2022 21:47   mycli/packages/special/iocommands.py
     4184  09-13-2022 21:47   mycli/packages/special/main.py
     1440  01-04-2021 21:45   mycli/packages/special/utils.py
        0  01-04-2021 21:45   mycli/packages/tabular_output/__init__.py
     2082  09-13-2022 21:47   mycli/packages/tabular_output/sql_format.py
        0  01-04-2021 21:45   test/__init__.py
      805  09-13-2022 21:47   test/conftest.py
      836  01-04-2021 21:45   test/test_clistyle.py
    19879  09-13-2022 21:47   test/test_completion_engine.py
     2472  09-13-2022 21:48   test/test_completion_refresher.py
     5932  01-04-2021 21:45   test/test_config.py
     1251  01-04-2021 21:45   test/test_dbspecial.py
    16788  09-13-2022 21:47   test/test_main.py
     1895  09-13-2022 21:48   test/test_naive_completion.py
     5795  01-04-2021 21:45   test/test_parseutils.py
      286  01-04-2021 21:45   test/test_prompt_utils.py
    13198  08-09-2023 10:42   test/test_smart_completion_public_schema_only.py
     9745  09-13-2022 21:47   test/test_special_iocommands.py
    10235  08-09-2023 10:42   test/test_sqlexecute.py
     4337  08-09-2023 10:42   test/test_tabular_output.py
     2530  09-13-2022 21:47   test/utils.py
        0  01-04-2021 21:45   test/features/__init__.py
     1926  09-13-2022 21:47   test/features/db_utils.py
     5637  09-13-2022 21:47   test/features/environment.py
      711  01-04-2021 21:45   test/features/fixture_utils.py
      272  01-04-2021 21:45   test/features/wrappager.py
        0  01-04-2021 21:45   test/features/steps/__init__.py
     1301  09-13-2022 21:47   test/features/steps/auto_vertical.py
     2929  01-04-2021 21:45   test/features/steps/basic_commands.py
     2085  09-13-2022 21:47   test/features/steps/connection.py
     3342  09-13-2022 21:47   test/features/steps/crud_database.py
     2969  01-04-2021 21:45   test/features/steps/crud_table.py
     3080  01-04-2021 21:45   test/features/steps/iocommands.py
     2876  01-04-2021 21:45   test/features/steps/named_queries.py
      756  01-04-2021 21:45   test/features/steps/specials.py
      282  09-13-2022 21:47   test/features/steps/utils.py
     3408  09-13-2022 21:47   test/features/steps/wrappers.py
       54  08-11-2023 11:34   mycli-1.27.0.dist-info/AUTHORS.rst
     1761  08-11-2023 11:34   mycli-1.27.0.dist-info/LICENSE.txt
     1482  08-11-2023 11:34   mycli-1.27.0.dist-info/METADATA
      110  08-11-2023 11:34   mycli-1.27.0.dist-info/WHEEL
       41  08-11-2023 11:34   mycli-1.27.0.dist-info/entry_points.txt
       11  08-11-2023 11:34   mycli-1.27.0.dist-info/top_level.txt
     5825  08-11-2023 11:34   mycli-1.27.0.dist-info/RECORD
---------                     -------
   337209                     70 files

After:

$ unzip -l dist/mycli-1.27.0-py2.py3-none-any.whl 
Archive:  dist/mycli-1.27.0-py2.py3-none-any.whl
  Length      Date    Time    Name
---------  ---------- -----   ----
     1643  08-12-2023 03:54   mycli/AUTHORS
      484  07-27-2023 11:49   mycli/SPONSORS
       23  08-12-2023 02:58   mycli/__init__.py
     1490  07-27-2023 11:49   mycli/clibuffer.py
     6229  07-27-2023 11:49   mycli/clistyle.py
     2014  08-12-2023 02:57   mycli/clitoolbar.py
      113  07-27-2023 11:49   mycli/compat.py
     5009  08-12-2023 02:57   mycli/completion_refresher.py
    10241  07-27-2023 11:49   mycli/config.py
     4331  08-12-2023 02:57   mycli/key_bindings.py
      310  07-27-2023 11:49   mycli/lexer.py
     2043  08-12-2023 02:57   mycli/magic.py
    57986  08-12-2023 02:57   mycli/main.py
     5297  08-12-2023 02:57   mycli/myclirc
    28566  08-12-2023 02:57   mycli/sqlcompleter.py
    12856  08-12-2023 02:57   mycli/sqlexecute.py
        0  07-27-2023 11:49   mycli/packages/__init__.py
    12322  08-12-2023 02:57   mycli/packages/completion_engine.py
     2832  07-27-2023 11:49   mycli/packages/filepaths.py
     9734  08-12-2023 02:57   mycli/packages/parseutils.py
     1541  07-27-2023 11:49   mycli/packages/prompt_utils.py
      758  07-27-2023 11:49   mycli/packages/paramiko_stub/__init__.py
      245  07-27-2023 11:49   mycli/packages/special/__init__.py
     5534  08-12-2023 02:57   mycli/packages/special/dbcommands.py
     2660  07-27-2023 11:49   mycli/packages/special/delimitercommand.py
     2161  07-27-2023 11:49   mycli/packages/special/favoritequeries.py
    16258  07-27-2023 11:49   mycli/packages/special/iocommands.py
     4184  07-27-2023 11:49   mycli/packages/special/main.py
     1440  07-27-2023 11:49   mycli/packages/special/utils.py
        0  07-27-2023 11:49   mycli/packages/tabular_output/__init__.py
     2082  07-27-2023 11:49   mycli/packages/tabular_output/sql_format.py
       54  08-12-2023 03:58   mycli-1.27.0.dist-info/AUTHORS.rst
     1761  08-12-2023 03:58   mycli-1.27.0.dist-info/LICENSE.txt
     1460  08-12-2023 03:58   mycli-1.27.0.dist-info/METADATA
      110  08-12-2023 03:58   mycli-1.27.0.dist-info/WHEEL
       41  08-12-2023 03:58   mycli-1.27.0.dist-info/entry_points.txt
        6  08-12-2023 03:58   mycli-1.27.0.dist-info/top_level.txt
     3120  08-12-2023 03:58   mycli-1.27.0.dist-info/RECORD
---------                     -------
   206938                     38 files

Checklist

parona-source commented 1 year ago

@laixintao

$ tar tf dist/mycli-1.27.0.tar.gz 
mycli-1.27.0/
mycli-1.27.0/.coveragerc
mycli-1.27.0/AUTHORS.rst
mycli-1.27.0/CONTRIBUTING.md
mycli-1.27.0/LICENSE.txt
mycli-1.27.0/MANIFEST.in
mycli-1.27.0/PKG-INFO
mycli-1.27.0/README.md
mycli-1.27.0/SPONSORS.rst
mycli-1.27.0/changelog.md
mycli-1.27.0/mycli/
mycli-1.27.0/mycli/AUTHORS
mycli-1.27.0/mycli/SPONSORS
mycli-1.27.0/mycli/__init__.py
mycli-1.27.0/mycli/clibuffer.py
mycli-1.27.0/mycli/clistyle.py
mycli-1.27.0/mycli/clitoolbar.py
mycli-1.27.0/mycli/compat.py
mycli-1.27.0/mycli/completion_refresher.py
mycli-1.27.0/mycli/config.py
mycli-1.27.0/mycli/key_bindings.py
mycli-1.27.0/mycli/lexer.py
mycli-1.27.0/mycli/magic.py
mycli-1.27.0/mycli/main.py
mycli-1.27.0/mycli/myclirc
mycli-1.27.0/mycli/packages/
mycli-1.27.0/mycli/packages/__init__.py
mycli-1.27.0/mycli/packages/completion_engine.py
mycli-1.27.0/mycli/packages/filepaths.py
mycli-1.27.0/mycli/packages/paramiko_stub/
mycli-1.27.0/mycli/packages/paramiko_stub/__init__.py
mycli-1.27.0/mycli/packages/parseutils.py
mycli-1.27.0/mycli/packages/prompt_utils.py
mycli-1.27.0/mycli/packages/special/
mycli-1.27.0/mycli/packages/special/__init__.py
mycli-1.27.0/mycli/packages/special/dbcommands.py
mycli-1.27.0/mycli/packages/special/delimitercommand.py
mycli-1.27.0/mycli/packages/special/favoritequeries.py
mycli-1.27.0/mycli/packages/special/iocommands.py
mycli-1.27.0/mycli/packages/special/main.py
mycli-1.27.0/mycli/packages/special/utils.py
mycli-1.27.0/mycli/packages/tabular_output/
mycli-1.27.0/mycli/packages/tabular_output/__init__.py
mycli-1.27.0/mycli/packages/tabular_output/sql_format.py
mycli-1.27.0/mycli/sqlcompleter.py
mycli-1.27.0/mycli/sqlexecute.py
mycli-1.27.0/mycli.egg-info/
mycli-1.27.0/mycli.egg-info/PKG-INFO
mycli-1.27.0/mycli.egg-info/SOURCES.txt
mycli-1.27.0/mycli.egg-info/dependency_links.txt
mycli-1.27.0/mycli.egg-info/entry_points.txt
mycli-1.27.0/mycli.egg-info/requires.txt
mycli-1.27.0/mycli.egg-info/top_level.txt
mycli-1.27.0/requirements-dev.txt
mycli-1.27.0/screenshots/
mycli-1.27.0/screenshots/main.gif
mycli-1.27.0/screenshots/tables.png
mycli-1.27.0/setup.cfg
mycli-1.27.0/setup.py
mycli-1.27.0/test/
mycli-1.27.0/test/__init__.py
mycli-1.27.0/test/conftest.py
mycli-1.27.0/test/features/
mycli-1.27.0/test/features/__init__.py
mycli-1.27.0/test/features/auto_vertical.feature
mycli-1.27.0/test/features/basic_commands.feature
mycli-1.27.0/test/features/connection.feature
mycli-1.27.0/test/features/crud_database.feature
mycli-1.27.0/test/features/crud_table.feature
mycli-1.27.0/test/features/db_utils.py
mycli-1.27.0/test/features/environment.py
mycli-1.27.0/test/features/fixture_data/
mycli-1.27.0/test/features/fixture_data/help.txt
mycli-1.27.0/test/features/fixture_data/help_commands.txt
mycli-1.27.0/test/features/fixture_utils.py
mycli-1.27.0/test/features/iocommands.feature
mycli-1.27.0/test/features/named_queries.feature
mycli-1.27.0/test/features/specials.feature
mycli-1.27.0/test/features/steps/
mycli-1.27.0/test/features/steps/__init__.py
mycli-1.27.0/test/features/steps/auto_vertical.py
mycli-1.27.0/test/features/steps/basic_commands.py
mycli-1.27.0/test/features/steps/connection.py
mycli-1.27.0/test/features/steps/crud_database.py
mycli-1.27.0/test/features/steps/crud_table.py
mycli-1.27.0/test/features/steps/iocommands.py
mycli-1.27.0/test/features/steps/named_queries.py
mycli-1.27.0/test/features/steps/specials.py
mycli-1.27.0/test/features/steps/utils.py
mycli-1.27.0/test/features/steps/wrappers.py
mycli-1.27.0/test/features/wrappager.py
mycli-1.27.0/test/mylogin.cnf
mycli-1.27.0/test/test.txt
mycli-1.27.0/test/test_clistyle.py
mycli-1.27.0/test/test_completion_engine.py
mycli-1.27.0/test/test_completion_refresher.py
mycli-1.27.0/test/test_config.py
mycli-1.27.0/test/test_dbspecial.py
mycli-1.27.0/test/test_main.py
mycli-1.27.0/test/test_naive_completion.py
mycli-1.27.0/test/test_parseutils.py
mycli-1.27.0/test/test_prompt_utils.py
mycli-1.27.0/test/test_smart_completion_public_schema_only.py
mycli-1.27.0/test/test_special_iocommands.py
mycli-1.27.0/test/test_sqlexecute.py
mycli-1.27.0/test/test_tabular_output.py
mycli-1.27.0/test/utils.py
mycli-1.27.0/tox.ini

This change doesn't affect the source distribution, just wheels and what are installed on user systems. Currently the files are included by the MANIFEST.in so adding them to package_data isn't necessary.