diff --git a/.circleci/config.yml b/.circleci/config.yml index 8232174..f62f099 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -103,6 +103,7 @@ workflows: - "3.8" - "3.9" - "3.10" + - "3.11" - deploy: context: global diff --git a/.flake8 b/.flake8 index 48f63f2..a185365 100644 --- a/.flake8 +++ b/.flake8 @@ -1,6 +1,5 @@ [flake8] max-complexity=11 max-line-length=127 -ignore=E266 # for code sections as comments - E203, W503 # black compatibility +ignore=E266, E203, W503 exclude=build,trontxsize/tron_pb2.py diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d356fd0..8063a49 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,31 +1,31 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: check-merge-conflict - repo: https://github.com/asottile/yesqa - rev: v1.3.0 + rev: v1.4.0 hooks: - id: yesqa - repo: https://github.com/psf/black - rev: 22.6.0 + rev: 22.12.0 hooks: - id: black - repo: https://github.com/pycqa/isort - rev: 5.10.1 + rev: 5.11.4 hooks: - id: isort - - repo: https://gitlab.com/pycqa/flake8 - rev: 3.9.2 + - repo: https://github.com/pycqa/flake8 + rev: 6.0.0 hooks: - id: flake8 - repo: https://github.com/asottile/pyupgrade - rev: v2.34.0 + rev: v3.3.1 hooks: - id: pyupgrade args: ["--py38-plus"] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace @@ -46,7 +46,7 @@ repos: args: ["--remove"] - id: detect-private-key - repo: https://github.com/pre-commit/mirrors-prettier - rev: v2.7.1 + rev: v3.0.0-alpha.4 hooks: - id: prettier exclude: >- diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..fda48d0 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,19 @@ +# Release Notes + +## Latest changes + +## 1.0.3 + +Support Python 3.11 + +## 1.0.2 + +Take deep copy of tx passed + +## 1.0.1 + +Use older protobuf compiler for now + +## 1.0.0 + +Initial release diff --git a/setup.py b/setup.py index bd8d2d9..1dffd78 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name="trontxsize", packages=find_packages(), - version="1.0.2", + version="1.0.3", license="MIT", description="Calculate tron transaction size (bandwidth)", long_description=open("README.md").read(), @@ -22,6 +22,7 @@ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", ], python_requires=">=3.8", ) diff --git a/test-requirements.txt b/test-requirements.txt index 77f8337..161deff 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,8 +1,8 @@ black codecov flake8 +https://github.com/bitcartcc/tronpy/archive/b444a61b786671ef189baecbb9853888a88a40eb.zip isort pre-commit pytest pytest-cov -tronpy