diff --git a/django_codemod/cli.py b/django_codemod/cli.py deleted file mode 100644 index af6079b5..00000000 --- a/django_codemod/cli.py +++ /dev/null @@ -1,15 +0,0 @@ -"""Console script for django_codemod.""" -import sys -import click - - -@click.command() -def main(args=None): - """Console script for django_codemod.""" - click.echo("Hello") - click.echo("See more https://click.palletsprojects.com/") - return 0 - - -if __name__ == "__main__": - sys.exit(main()) # pragma: no cover diff --git a/requirements-dev.txt b/requirements-dev.txt index a9adb319..b37b2267 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -7,7 +7,6 @@ tox==3.15.0 coverage==5.1 Sphinx==3.0.3 twine==3.1.1 -Click==7.1.2 pytest==5.4.2 pytest-runner==5.2 pre-commit==2.3.0 diff --git a/setup.py b/setup.py index a6e1504a..7d18819c 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ with open("README.rst") as readme_file: readme = readme_file.read() -requirements = ["Click>=7.0", "libcst"] +requirements = ["libcst"] setup_requirements = ["pytest-runner"] @@ -28,7 +28,6 @@ "Programming Language :: Python :: 3.8", ], description="Codemod to help upgrading to newer versions of Django", - entry_points={"console_scripts": ["django_codemod=django_codemod.cli:main"]}, install_requires=requirements, license="MIT license", long_description=readme, diff --git a/tests/test_cli.py b/tests/test_cli.py deleted file mode 100644 index 5ee54a47..00000000 --- a/tests/test_cli.py +++ /dev/null @@ -1,15 +0,0 @@ -"""Tests for `django_codemod` package.""" -from click.testing import CliRunner - -from django_codemod import cli - - -def test_command_line_interface(): - """Test the CLI.""" - runner = CliRunner() - result = runner.invoke(cli.main) - assert result.exit_code == 0 - assert "Hello" in result.output - help_result = runner.invoke(cli.main, ["--help"]) - assert help_result.exit_code == 0 - assert "--help Show this message and exit." in help_result.output