Skip to content

Commit

Permalink
build: add pypi packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadeUndertree committed Jan 18, 2021
1 parent 249a33d commit 375cb6e
Show file tree
Hide file tree
Showing 3 changed files with 122 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# EVM Assembly Utilities

Utility classes and functions for working with EVM (Ethereum Virual Machine) forks and their opcodes.

## Installation

```bash
pip install evm-asm
```

## Contributiing

```bash
$ pip install -e .[dev]
```

```bash
$ pytest
```
33 changes: 33 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[metadata]
license_files = LICENSE

[aliases]
test = pytest

[flake8]
max-line-length = 100
exclude =
venv*
.tox
docs
build

[tool:isort]
force_grid_wrap = 0
include_trailing_comma = True
known_third_party = setuptools
known_first_party = evm_asm
multi_line_output = 3
use_parentheses = True

[tool:pytest]
addopts = -n auto
--cov-branch
--cov-report term
--cov-report html
--cov-report xml
--cov=evm_asm
python_files = test_*.py
testpaths = tests
markers =
fuzzing: Run Hypothesis fuzz test suite (deselect with '-m "not fuzzing"')
70 changes: 70 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from setuptools import setup, find_packages


extras_require = {
"test": [
"pytest==6.2.1",
"pytest-xdist",
"pytest-coverage",
],
"lint": [
"black==20.8b1",
"flake8==3.8.4",
"isort>=5.7.0,<6",
"mypy==0.790",
"pydocstyle>=5.1.1,<6",
],
"doc": [
"Sphinx>=3.4.3,<4",
"sphinx_rtd_theme>=0.5.1",
],
"dev": [
"py-evm==0.3.0a20",
"pytest-watch>=4.2.0,<5",
"wheel",
"twine",
"ipython",
],
}

extras_require["dev"] = (
extras_require["dev"]
+ extras_require["test"] # noqa: W504
+ extras_require["lint"] # noqa: W504
+ extras_require["doc"] # noqa: W504
)

with open("./README.md") as readme:
long_description = readme.read()

setup(
name="evm-asm",
version="0.0.0",
long_description=long_description,
long_description_content_type="text/markdown",
author="Shade Undertree",
author_email="[email protected]",
url="https://github.com/ShadeUndertree/evm-asm",
include_package_data=True,
python_requires=">=3.6, <4",
install_requires=[],
extras_require=extras_require,
py_modules=["evm_asm"],
license="Apache License 2.0",
zip_safe=False,
keywords="ethereum",
packages=find_packages(exclude=["tests", "tests.*"]),
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
)

0 comments on commit 375cb6e

Please sign in to comment.