Fixes for broken tox
runs (#2053)
* order_utils.py: git rm package.json This was used at one time, a long, long time ago, but is no longer used, and its presence actually causes problems when trying to do, eg `PKG=@0x/python-contract-wrappers yarn build` from within the order_utils directory. * order_utils.py: improve `./setup.py clean` * python-packages: in tox, test, don't lint * python-packages: update dev req's to fix tox runs * contract_wrappers.py: post-publish version bump
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
{
|
||||
"comment": "this file exists as an entry point to building this project, specifically for humans that are familiar with yarn and already have it installed. this file is not used in any automation or CI.",
|
||||
"scripts": {
|
||||
"install": "pip install -e .[dev]",
|
||||
"build": "python setup.py build && yarn build:docs",
|
||||
"build:docs": "python setup.py build_sphinx && sphinx-apidoc -o build/docs/api src",
|
||||
"test:comment": "test in local environment. to test in all environments, use test:all",
|
||||
"test": "python setup.py test",
|
||||
"test:all": "tox",
|
||||
"test:coverage": "coverage run setup.py test && coveralls",
|
||||
"lint": "python setup.py lint",
|
||||
"clean": "python setup.py clean"
|
||||
},
|
||||
"dependencies:comment": "managed in setup.py",
|
||||
"devDependencies:comment": "managed in setup.py",
|
||||
"license": "Apache-2.0"
|
||||
}
|
@@ -83,7 +83,10 @@ class CleanCommandExtension(clean):
|
||||
def run(self):
|
||||
"""Run the regular clean, followed by our custom commands."""
|
||||
super().run()
|
||||
rmtree("build", ignore_errors=True)
|
||||
rmtree("dist", ignore_errors=True)
|
||||
rmtree(".coverage", ignore_errors=True)
|
||||
rmtree(".eggs", ignore_errors=True)
|
||||
rmtree(".mypy_cache", ignore_errors=True)
|
||||
rmtree(".tox", ignore_errors=True)
|
||||
rmtree(".pytest_cache", ignore_errors=True)
|
||||
@@ -180,6 +183,7 @@ setup(
|
||||
],
|
||||
extras_require={
|
||||
"dev": [
|
||||
"0x-contract-wrappers",
|
||||
"bandit",
|
||||
"black",
|
||||
"coverage",
|
||||
|
Reference in New Issue
Block a user