From 9e4b4dee41bb01d2a6a6dc816e92fa179551adfc Mon Sep 17 00:00:00 2001 From: Daniel D'Avella Date: Wed, 8 Nov 2023 14:11:18 -0500 Subject: [PATCH 1/3] Update package metadata --- pyproject.toml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 5367eb36..40f52cb1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,11 +3,13 @@ requires = ["setuptools", "setuptools_scm>=8"] build-backend = "setuptools.build_meta" [project] +authors = [{name = "Pixee", email = "support@pixee.ai"}] dynamic = ["version"] name = "codemodder-python" requires-python = ">=3.10.0" readme = "README.md" license = {file = "LICENSE"} +description = "A pluggable framework for building codemods in Python" dependencies = [ "isort~=5.12.0", "libcst~=1.1.0", @@ -19,6 +21,21 @@ dependencies = [ "toml~=0.10.2", "wrapt~=1.16.0", ] +keywords = ["codemod", "codemods", "security", "fix", "fixes"] +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: GNU Affero General Public License v3", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.10", + "Topic :: Software Development", + "Topic :: Security", +] + +[project.urls] +Homepage = "https://codemodder.io" +Repository = "https://github.com/pixee/codemodder-python" [project.scripts] codemodder = "codemodder.codemodder:main" From 4e7a3f2882651cf9cf6a67dbc41c284d5becc3b5 Mon Sep 17 00:00:00 2001 From: Daniel D'Avella Date: Wed, 8 Nov 2023 14:15:13 -0500 Subject: [PATCH 2/3] Change package name codemodder-python -> codemodder --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 40f52cb1..b60d9a19 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta" [project] authors = [{name = "Pixee", email = "support@pixee.ai"}] dynamic = ["version"] -name = "codemodder-python" +name = "codemodder" requires-python = ">=3.10.0" readme = "README.md" license = {file = "LICENSE"} From 88d938d6d06bfd809b4d7c3ec51ba7602eea989e Mon Sep 17 00:00:00 2001 From: Daniel D'Avella Date: Wed, 8 Nov 2023 14:21:11 -0500 Subject: [PATCH 3/3] Add build and test step to github workflow --- .github/workflows/test.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3b98325d..650844a0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,6 +15,23 @@ concurrency: cancel-in-progress: true jobs: + build: + name: Build Package + runs-on: ubuntu-20.04 + timeout-minutes: 5 + steps: + - name: Set Up Python + uses: actions/setup-python@v4 + with: + python-version: '3.12' + - name: Check out code + uses: actions/checkout@v4 + - name: Install build dependencies + run: pip install build twine + - name: Build package + run: python -m build . + - name: Twine Check + run: twine check dist/* test: name: Run pytest runs-on: ubuntu-20.04