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:
F. Eugene Aumson 2019-08-13 09:18:16 -04:00 committed by GitHub
parent cb3318972e
commit b885dfa606
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 22 additions and 20 deletions

View File

@ -9,4 +9,4 @@ envlist = py37
[testenv]
commands =
pip install -e .[dev]
python setup.py lint
python setup.py test

View File

@ -9,4 +9,4 @@ envlist = py37
[testenv]
commands =
pip install -e .[dev]
python setup.py lint
python setup.py test

View File

@ -1,5 +1,17 @@
# Changelog
## 1.0.3 - 2019-08-10
- Added erroneously missing source files.
## 1.0.2 - 2019-08-10
- Added erroneously missing source files.
## 1.0.1 - 2019-08-10
- Botched upload to PyPI.
## 1.0.0 - 2019-08-08
- Initial release

View File

@ -226,7 +226,7 @@ with open("README.md", "r") as file_handle:
setup(
name="0x-contract-wrappers",
version="1.0.0",
version="1.0.3",
description="Python wrappers for 0x smart contracts",
long_description=README_MD,
long_description_content_type="text/markdown",

View File

@ -161,6 +161,8 @@ setup(
install_requires=["jsonschema", "mypy_extensions", "stringcase"],
extras_require={
"dev": [
"0x-contract-addresses",
"0x-contract-wrappers",
"bandit",
"black",
"coverage",

View File

@ -160,6 +160,7 @@ setup(
extras_require={
"dev": [
"0x-contract-addresses",
"0x-contract-wrappers",
"0x-order-utils",
"web3",
"bandit",

View File

@ -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"
}

View File

@ -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",