Skip to content

Commit

Permalink
Merge pull request #16 from crytic/pep621
Browse files Browse the repository at this point in the history
Modernize install (PEP 621)
  • Loading branch information
montyly authored Feb 16, 2024
2 parents 9b70c3d + 1246d65 commit d0cfc46
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 30 deletions.
38 changes: 38 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
33 changes: 3 additions & 30 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit d0cfc46

Please sign in to comment.