Python publish for v3 (#2383)

* Remove pre-release suffixes from version numbers

* For wrapper test, pull latest ganache image first

* For wrapper test, unpin ganache, use beta snapshot

* In docs, advise using beta ganache snapshot

Because we haven't yet published the non-beta snapshot

* Unpin package interdependencies

* unpin tests from beta 0xorg/ganache-cli version

* use beta ganache snapshot

* Set release date in CHANGELOGs

* In testing deployment, stop testing pre-releases

* Include rmtree("build") in all clean commands

* Fix clean not cleaning what it thought it was

* In monorepo script, install pkgs 1st then dev deps

* Stop pinning ganache snapshot version

* In test setup, wait longer for mesh to start up

* Fix broken hyperlinks in docs

* fix missing \n that was breaking doc rendering

* In monorepo script comment, fix typo, and clarify
This commit is contained in:
F. Eugene Aumson
2019-12-04 08:42:00 -08:00
committed by GitHub
parent 8685cf9036
commit 4f17a251d3
28 changed files with 74 additions and 61 deletions

View File

@@ -1,6 +1,6 @@
# Changelog
## 1.2.0 - TBD
## 1.2.0 - 2019-12-03
- Removed dev dependency on package `0x-contract-wrappers`
- Migrated examples to using new version of `0x-contract-addresses`.

View File

@@ -90,11 +90,12 @@ 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(".mypy_cache", ignore_errors=True)
rmtree(".tox", ignore_errors=True)
rmtree(".pytest_cache", ignore_errors=True)
rmtree("src/*.egg-info", ignore_errors=True)
rmtree("src/0x_json_schemas.egg-info", ignore_errors=True)
class TestPublishCommand(distutils.command.build_py.build_py):
@@ -143,7 +144,7 @@ with open("README.md", "r") as file_handle:
setup(
name="0x-json-schemas",
version="2.1.0.dev2",
version="2.1.0",
description="JSON schemas for 0x applications",
long_description=README_MD,
long_description_content_type="text/markdown",
@@ -165,7 +166,7 @@ setup(
install_requires=["jsonschema", "mypy_extensions", "stringcase"],
extras_require={
"dev": [
"0x-contract-addresses==3.0.0.dev3",
"0x-contract-addresses",
"bandit",
"black",
"coverage",

View File

@@ -22,5 +22,5 @@ commands =
[testenv:run_tests_against_deployment]
setenv = PY_IGNORE_IMPORTMISMATCH = 1
commands =
pip install --pre 0x-json-schemas[dev]
pip install 0x-json-schemas[dev]
pytest --doctest-modules src test