From 9e116e1823dde9c1c5d83c7bab7e9c45e9274702 Mon Sep 17 00:00:00 2001 From: Daniel D'Avella Date: Thu, 31 Aug 2023 10:34:13 -0400 Subject: [PATCH] Remove requirements/codemodder.txt --- Dockerfile | 4 ++-- README.md | 8 ++++++++ pyproject.toml | 1 + requirements/codemodder.txt | 16 ---------------- requirements/lint.txt | 1 - requirements/test.txt | 1 - 6 files changed, 11 insertions(+), 20 deletions(-) delete mode 100644 requirements/codemodder.txt diff --git a/Dockerfile b/Dockerfile index bb86932d2..d1acf8314 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM python:3.11 -COPY requirements/codemodder.txt . -RUN pip install -r codemodder.txt WORKDIR /codemodder COPY . . + +RUN pip install . CMD python -m codemodder --help diff --git a/README.md b/README.md index 62e2bbbf3..6a2ed7a5f 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,14 @@ future. ⚠️ The custom codemod API is under heavy development and is subject to change. The API should not be treated as stable at this time. ⚠️ +## Installation + +To install the package from source, use `pip`: + +``` +pip install . +``` + ## Running Locally You can run the codemodder program with diff --git a/pyproject.toml b/pyproject.toml index b1434a071..6ac2b54d6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,6 +12,7 @@ dependencies = [ "semgrep~=1.36.0", "PyYAML~=6.0.0", "libcst~=1.0.0", + "isort~=5.12.0", "dependency-manager @ git+https://github.com/pixee/python-dependency-manager#egg=dependency-manager", ] diff --git a/requirements/codemodder.txt b/requirements/codemodder.txt deleted file mode 100644 index adaf734bb..000000000 --- a/requirements/codemodder.txt +++ /dev/null @@ -1,16 +0,0 @@ -cfgv==3.4.* -click==8.1.* -distlib==0.3.* -filelock==3.12.* -identify==2.5.* -isort==5.12.* -libcst==1.0.* -mypy-extensions==1.0.* -packaging==23.* -pathspec==0.11.* -platformdirs==3.10.* -PyYAML==6.0.1 -semgrep==1.37.* -typing-inspect==0.9.* -typing_extensions==4.7.* -git+https://github.com/pixee/python-dependency-manager diff --git a/requirements/lint.txt b/requirements/lint.txt index 07ae8f379..7eba669a7 100644 --- a/requirements/lint.txt +++ b/requirements/lint.txt @@ -1,5 +1,4 @@ black==23.7.* mypy==1.5.* pylint==2.17.* --r codemodder.txt -r test.txt diff --git a/requirements/test.txt b/requirements/test.txt index f91b93930..e1b131075 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -5,4 +5,3 @@ pre-commit<4 pytest==7.4.* pytest-cov~=4.1.0 types-mock==5.1.* --r codemodder.txt