diff --git a/pyproject.toml b/pyproject.toml index dbd49cc..fa6b6bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,41 @@ +[build-system] +requires = ["setuptools", "wheel"] +build-backend = "setuptools.build_meta" + +[project] +name = "test_generator" +version = "0.0.1" +authors = [{ name = "Trail of Bits" }] +description = "A tool for automatically generating unit tests from Echidna and Medusa reproducers." +readme = "README.md" +license = { "text" = "AGPL-3.0" } +urls = { "Homepage" = "https://github.com/crytic/test-generator" } +requires-python = ">=3.10" +dependencies = [ + "colorama>=0.4.0", + "slither_analyzer>=0.10.0", + "jinja2>=3.1.0" +] + +[project.optional-dependencies] +lint = [ + "pylint==2.13.4", + "black==22.3.0" +] +test = [ + "pytest", + "solc-select>=0.1.4" +] +dev = [ + "test_generator[lint,test]" +] + +[project.scripts] +test-generator = "test_generator.main:main" + +[tool.setuptools.packages.find] + where = ["."] + [tool.black] target-version = ["py310"] line-length = 100 diff --git a/setup.py b/setup.py index f1e2020..354d3b9 100644 --- a/setup.py +++ b/setup.py @@ -1,33 +1,6 @@ """ -Install script for crytic-exploit package +Install script for test-generator package """ -from setuptools import setup, find_packages +import setuptools -setup( - name="test_generator", - description="A tool for automatically generating unit tests from Echidna and Medusa reproducers", - url="https://github.com/crytic/test-generator", - author="Trail of Bits", - version="0.0.1", - packages=find_packages(exclude=["tests"]), - python_requires=">=3.10", - install_requires=[ - "colorama>=0.4.0", - "slither_analyzer>=0.10.0", - "jinja2>=3.1.0", - ], - extras_require={ - "lint": [ - "black==22.3.0", - "pylint==2.13.4", - ], - "test": [ - "pytest", - "solc-select>=0.1.4", - ], - "dev": [ - "test_generator[lint,test]", - ], - }, - entry_points={"console_scripts": ["test-generator = test_generator.main:main"]}, -) +setuptools.setup()