diff --git a/.gitignore b/.gitignore index 59afccb..00adb20 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ .coverage .idea/ .mypy_cache/ +.prettiercache .vscode/ __pycache__/ backup/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7751038..4156173 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-merge-conflict - repo: https://github.com/asottile/yesqa @@ -8,24 +8,24 @@ repos: hooks: - id: yesqa - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 23.12.1 hooks: - id: black - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort - repo: https://github.com/pycqa/flake8 - rev: 6.1.0 + rev: 7.0.0 hooks: - id: flake8 - repo: https://github.com/asottile/pyupgrade - rev: v3.10.1 + rev: v3.15.0 hooks: - id: pyupgrade args: ["--py38-plus"] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace @@ -46,8 +46,10 @@ repos: args: ["--remove"] - id: detect-private-key - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.1 + rev: v4.0.0-alpha.8 hooks: - id: prettier + require_serial: true + args: ["--cache-location=.prettiercache"] exclude: >- ^trontxsize/tron_pb2.py$ diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f2190d..4e440d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Latest changes +## 1.0.6 + +Don't install a separate tests package, but include tests in source tarball + ## 1.0.5 Rename BitcartCC to Bitcart diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..cc72404 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,8 @@ +include CONTRIBUTING.md +include CHANGELOG.md +include LICENSE +include README.md + +recursive-include tests * +recursive-exclude * __pycache__ +recursive-exclude * *.py[co] diff --git a/setup.py b/setup.py index f67bbb9..88dfa90 100644 --- a/setup.py +++ b/setup.py @@ -2,8 +2,8 @@ setup( name="trontxsize", - packages=find_packages(), - version="1.0.5", + packages=find_packages(exclude=["tests", "tests.*"]), + version="1.0.6", license="MIT", description="Calculate tron transaction size (bandwidth)", long_description=open("README.md").read(),