Skip to content

- updated codebase to be compatible with python 3.12 #293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 219 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
219 commits
Select commit Hold shift + click to select a range
96f6a18
Merge pull request #85 from steemit/2017-10-23-dictionary-split-line
theoreticalbts Oct 30, 2017
dd046e9
Merge pull request #86 from steemit/2017-10-24-generic-api
theoreticalbts Oct 30, 2017
7b6a55f
Merge pull request #87 from steemit/2017-10-26-testnet-prefix
theoreticalbts Oct 30, 2017
a4693b1
Merge pull request #88 from steemit/2017-10-26-testnet-params
theoreticalbts Oct 30, 2017
7edf926
Merge pull request #80 from E-D-A/E-D-A-patch-1
john-g-g Nov 20, 2017
6e1cfe2
Remove existing build config files.
Jan 24, 2018
2ce14b8
Added basic setup files.
Jan 24, 2018
abaa285
Updated gitignore and setup.py for distribution.
Jan 25, 2018
69502a3
add console scripts entrypoint, add modules
sneak Jan 25, 2018
8f7461e
rename steemd.exec to steemd.call because exec is reserved word
sneak Jan 25, 2018
876449b
pep8
sneak Jan 25, 2018
6267244
switch from distutils to setuptools, autofind packages
sneak Jan 25, 2018
411995b
update readme for clarity
sneak Jan 25, 2018
5ca60c0
add deps to setup.py
sneak Jan 25, 2018
0fddfdc
remove python3isms, rename reserved word exec to call
sneak Jan 25, 2018
2b002fb
Removed version checking from base58.py and changed the dict merging …
Jan 25, 2018
39697a0
Refactored statements to per PEP-380 reference.
Jan 25, 2018
1e922a4
Removed usage of suppress and replaced with a more traditional try/ex…
Jan 25, 2018
618f4f5
Removed all other references to suppress and yield from.
Jan 25, 2018
68f7781
Merge pull request #53 from aaroncox/rshares_fix
Jan 26, 2018
33b270e
Merge pull request #83 from aditya-ramabadran/fix_voting_error
Jan 26, 2018
45f8750
More python3-isms removed.
Jan 27, 2018
92900cd
added more deps, explicitly error on python2 use
sneak Jan 27, 2018
0a44129
gitignore: ignore .vagrant dir
sneak Jan 27, 2018
96b7bfb
add test runner
sneak Jan 27, 2018
824969d
add Vagrantfile for reproducible testing env
sneak Jan 27, 2018
0bc86c3
fix broken test resulting from function rename
sneak Jan 27, 2018
624a779
add makefile to run tests under vagrant
sneak Jan 27, 2018
e3f4640
add docker ignores
sneak Jan 27, 2018
c87adf5
updated to use pipenv
sneak Jan 27, 2018
6615b83
temporarily disable pep8 until we pass
sneak Jan 27, 2018
f8f0fce
improve docker caching under pipenv
sneak Jan 27, 2018
9da8009
now passes pep8, pep8 included in tests.
sneak Jan 27, 2018
0885f20
moved console scripts to module, no more bin/
sneak Jan 27, 2018
2857884
have circle run tests with docker
sneak Jan 27, 2018
dd1b796
clean up import formatting
sneak Jan 27, 2018
ace7743
clean up import formatting
sneak Jan 27, 2018
f13147b
clean up imports
sneak Jan 27, 2018
6b5654c
Merge branch 'bugfix/pip_install' of https://github.com/steemit/steem…
sneak Jan 27, 2018
b58164a
update readme, improve `steemtail` cli script
sneak Jan 27, 2018
5cca5ed
more README updates
sneak Jan 27, 2018
7c915a4
updated readme with installation instructions
sneak Jan 27, 2018
e2ea225
formatting
sneak Jan 27, 2018
b3f9d23
Merge all changes from bugfix/pip_install.
Jan 27, 2018
2b8353f
add openssl note to install instructions for osx
sneak Jan 28, 2018
fe959ce
More python 2 support.
Jan 29, 2018
16aad19
Merge pull request #129 from steemit/bugfix/pip_install
sneak Jan 29, 2018
640b35d
trying to import Steem no longer causes any syntax errors.
Jan 29, 2018
677dcee
Merge branch 'master' of github.com:steemit/steem-python into feature…
Jan 29, 2018
ccee57b
Another small python3-ism removed.
Jan 30, 2018
4cd5fb0
Update README.md
sneak Jan 31, 2018
86a35b4
41 passing tests.
Jan 31, 2018
9afc65a
Backporting serialization to python2.
Feb 13, 2018
02e9606
Midway through debugging problems with rpc command building due to sy…
Feb 13, 2018
a779967
62 passing tests.
Feb 13, 2018
9ba14c1
All tests passing.
Feb 14, 2018
7b6ca42
More fixes for python2 compat. All tests are passing again in python3…
Feb 14, 2018
7b38785
More progress on python 2.7 support.
Feb 15, 2018
67202fc
In-progress trying to unify handling of bytes method across 2.7 and 3.6.
Feb 16, 2018
5d2e6d9
Added pytest-cov plugin.
Feb 16, 2018
830cc45
Small fix in Pipfile.
Feb 16, 2018
4c727e5
Mostly fixed bytes handling, still trying to discern the issues in me…
Feb 16, 2018
83a7307
Removed some erroneous print statements.
Feb 16, 2018
78312df
Gate memo encoding and decoding on Python 2.
Feb 19, 2018
72e942d
Added a to_chr method to handle the difference between Python 3.6 chr…
Feb 22, 2018
18b0783
Cleanup for merge to master.
Feb 22, 2018
1f4573c
File formatting.
Feb 22, 2018
39bd861
Updates to pipfile and pipfile.lock.
Feb 22, 2018
38b6d0f
Another small pipfile update.
Feb 22, 2018
797faf7
Updates to Readme.md.
Feb 22, 2018
514c0f3
Refactored 'to_bytes' to '__bytes__'.
Feb 26, 2018
0b26641
Added documentation to compat methods, and renamed them to have compa…
Feb 26, 2018
56985df
Refactored compat methods.
Feb 26, 2018
e9d328b
Updates per comments.
Mar 3, 2018
70eefa0
Updated handling of kwargs in json_rpc_body.
Mar 4, 2018
440aafa
Fixed error catching in http_client.py and comment tags processing.
Mar 5, 2018
860b580
Small fix.
Mar 5, 2018
1db648b
Added a missing import to http_client.py and simplified syntax in com…
Mar 5, 2018
5790fa4
Small update to construct_identifier object.
Mar 6, 2018
4d40cda
Bring Python 2.7 Support to steem-python
Mar 6, 2018
434921b
Added circleci 2.0 shell.
Mar 12, 2018
5d72dd2
Updated setup.py.
Mar 12, 2018
c406f8d
More setup.py updates.
Mar 12, 2018
6172a8b
Small fixes.
Mar 12, 2018
ede405f
Small fixes.
Mar 12, 2018
d7cbe67
Small fixes to imports.
Mar 12, 2018
889cbd8
Fixed build env.
Mar 12, 2018
9532e9e
Fixed version check.
Mar 12, 2018
1f72ef5
Updated version checking.
Mar 12, 2018
1b0cbd1
Initial implementation of circleci 2.0.
Mar 12, 2018
c777c2d
Updated readme.
Mar 12, 2018
2b3ddb7
update Makefile
roadscape Mar 12, 2018
8b2512c
Merge pull request #168 from steemit/feature/circleci2_0
Mar 12, 2018
7cd03b4
update default node in help text and comments
crokkon Jan 7, 2018
a18e60a
transactionbuilder.py: set operations.default_prefix explicitly
bitphage Mar 12, 2018
6a87354
wallet.py: obtain key prefix from chain_params
bitphage Mar 12, 2018
e7586fa
base58.py: add GLS to known_prefixes
bitphage Mar 12, 2018
3dfa38c
chains.py: add GOLOS chain definition
bitphage Mar 12, 2018
9ecfe30
Merge pull request #174 from bitfag/steem-base58-gls-prefix
Mar 14, 2018
95f3208
Merge pull request #172 from bitfag/steem-wallet-prefix
Mar 14, 2018
d863572
Merge pull request #173 from bitfag/steem-transactionbuilder-default-…
Mar 14, 2018
4be4333
Merge pull request #171 from bitfag/steem-fix-vests-symbol-golos
Mar 14, 2018
fc649a2
Merge pull request #115 from crokkon/crokkon-default-node
Mar 16, 2018
4e6cf30
Fixed typo in install command.
Mar 19, 2018
635277c
Refactored old references of future_bytes to compat_bytes.
Mar 20, 2018
97f3549
Merge pull request #182 from steemit/176_steempy_future_bytes
roadscape Mar 21, 2018
0158d5b
Merge pull request #179 from steemit/readme_typo
roadscape Mar 21, 2018
dd72c0a
Updated construct_identifier.
Mar 21, 2018
1ca0991
Removed the @ as a part of a post identifier in code and documentation.
Mar 21, 2018
87da2e2
remove sprintf and clarify comment
roadscape Mar 22, 2018
b6bc6e7
Merge pull request #184 from steemit/165_construct_identifier
Mar 22, 2018
41809d3
bump versions ahead of publish
goldibex Mar 22, 2018
253489a
Updated install instructions in README.md for pip.
Mar 22, 2018
cb65ae9
Merge pull request #185 from steemit/chore/bump-version
Mar 22, 2018
44e6e43
add test, fix rpc error, remove dupe method
roadscape Mar 27, 2018
258ac3a
Merge pull request #194 from steemit/appbase-prefix
Mar 27, 2018
bb22d02
disable account history test
roadscape Mar 27, 2018
4d6da9e
add failing test case for broadcast tx #188 #193
roadscape Mar 27, 2018
e015c2c
Added proper tracking of errors in transactionbuilder.py and typos in…
Mar 28, 2018
24f2cd9
add witness_update test, add passing conditions
roadscape Mar 28, 2018
4e58555
extraneous import
roadscape Mar 28, 2018
09b440e
pull assert out of catch
roadscape Mar 28, 2018
681c3f4
add transfer test, fix claim_reward bug #191
roadscape Mar 28, 2018
fe52b25
fix config name change: STEEMIT_BLOCK_INTERVAL -> STEEM_BLOCK_INTERVAL
Apr 1, 2018
e31b222
Merge pull request #199 from chhantyal/fix_config
Apr 2, 2018
fc433e1
Merge pull request #195 from steemit/broadcast-failure
Apr 2, 2018
55cf955
assume appbase, downgrade on error. wip #164
roadscape Apr 2, 2018
2f16a69
Fixed arguments passed to Commit object in tests.
Apr 2, 2018
d9fe59f
Small change.
Apr 3, 2018
47bb354
add test, finish downgrade mode
roadscape Apr 3, 2018
dbe08fb
Add reequest body to rpc error report in http_client.
Apr 3, 2018
d1e3630
clarifications
roadscape Apr 3, 2018
41c5c93
use new var instead of override
roadscape Apr 3, 2018
39eb000
better errors, tune retry
roadscape Apr 4, 2018
21dd2ae
Merge branch 'master' of github.com:steemit/steem-python into post_un…
Apr 4, 2018
45d9592
Merge pull request #203 from steemit/fix_test_broadcast
Apr 4, 2018
86242aa
Merge branch 'master' of github.com:steemit/steem-python into post_un…
Apr 4, 2018
032933f
Fixed json unicode issues.
Apr 4, 2018
0bf3d31
Merge pull request #208 from steemit/post_unicode_str_fix
Apr 5, 2018
e64c5f7
Merge pull request #202 from steemit/164-appbase
Apr 5, 2018
bf5c716
exception cleanup, fix retriable rpc errs
roadscape Apr 6, 2018
4f84e99
Merge pull request #210 from steemit/cleanup
Apr 6, 2018
9b9b4f0
fix error info-access, add retry case and get_block test
roadscape Apr 16, 2018
451b1be
adjust names
roadscape Apr 16, 2018
ddaf046
ignore verify_authority result when encountering steem #2284. close #212
roadscape Apr 16, 2018
f48fb96
Merge pull request #213 from steemit/212-ignore-verify-fail
Apr 16, 2018
3985d30
Merge branch 'master' into fix-catching
roadscape Apr 16, 2018
c82fe66
Merge pull request #211 from steemit/fix-catching
roadscape Apr 16, 2018
b9b77a6
Removed test. (#214)
Apr 17, 2018
5bc5cc3
Added issue template. (#217)
Apr 17, 2018
a538933
Added JSONDecodeError to list of retriable errors to allow for node c…
Apr 26, 2018
34262e8
Removed erroneous logging and added ValueError for below 3.5.
Apr 26, 2018
ec1921a
add comment about JSONDecodeError workaround
roadscape Apr 30, 2018
c15fe2f
Merge pull request #225 from steemit/jsondecode
Apr 30, 2018
f5d27f4
linting and more informative logging, close #196
roadscape Apr 30, 2018
04e1fcb
utils.is_comment() comment detection fix
crokkon May 1, 2018
26c1af3
Merge pull request #230 from crokkon/crokkon-utils-is-comment
roadscape May 1, 2018
cc6f318
Merge pull request #229 from steemit/196-better-exceptions
May 1, 2018
6644808
Refactored 'MasterPassword' to KeyEncryptionKey, and 'password' to us…
May 2, 2018
3845552
Merge pull request #232 from steemit/222_masterpass_refactor
May 3, 2018
f7267cf
Added branch in bip38 for Python 2.7 compatibility.
May 3, 2018
1d9abe6
Fix input parsing in delete key function.
May 4, 2018
6271540
Added a Python 2.7 branch for scrypt in bip38's encrypt method.
May 7, 2018
de389dd
Enforce list type for nodes if not a list when passed in (ie - a sing…
May 7, 2018
538eed4
Added a method to sanitize node input and fail loudly on incorrect in…
May 7, 2018
548df7e
Added _isString method as well as simplified logic in sanitizeNodes.
May 8, 2018
a1fa51e
Allow configurable SCRYPT_MODULE usage
May 8, 2018
5e28afd
Made it possible to explicitly specify scrypt or pylibscrypt with env…
May 8, 2018
1a80d19
Merge pull request #234 from steemit/156_stream_nodes
roadscape May 8, 2018
41c3354
tweek ENV var handling
May 8, 2018
df519b4
fix pep8, hacky reloading
May 8, 2018
419c561
fix import errors
May 8, 2018
cbb0095
Broke scrypt and pylibscrypt tests into separate test units.
May 8, 2018
4fd4e9a
Merge pull request #233 from steemit/181_type_error
john-g-g May 8, 2018
483544f
Added ChangeRecoveryAccount Operation to steembase/operations.py
May 10, 2018
53e3a27
Added test w/ input to test_transactions.py. change_recovery_account …
May 14, 2018
101eed4
Added output for test case.
May 17, 2018
b00fa8b
Merge pull request #238 from steemit/226_change_account_recovery
roadscape May 18, 2018
052c745
bump to 1.0.1
goldibex May 21, 2018
5321847
Merge pull request #239 from steemit/chore/release-101
May 21, 2018
3e0cdba
Uncommented tests.
May 24, 2018
7d87368
Moved Exception to different version block.
May 24, 2018
e9009bd
Merge pull request #240 from steemit/circleci_test_envs
May 24, 2018
0eb3de9
Fix beneficiaries handling in CommentOptions
crokkon Jun 4, 2018
9f37415
fix missing positional argument: mode error when addkey
AlexChien Jun 6, 2018
8a90ab8
handle new timeout error
roadscape Jun 8, 2018
3774f72
Merge pull request #248 from steemit/handle-timeout-err
roadscape Jun 22, 2018
6af7091
update testnet conf
roadscape Sep 19, 2018
f331ac3
Merge pull request #261 from steemit/258-testnet
roadscape Sep 20, 2018
977de64
handle operation: witness_set_properties #264
inertia186 Sep 24, 2018
550fb48
version bump #264
inertia186 Sep 24, 2018
d4c59c6
to avoid voluptuous error
inertia186 Sep 24, 2018
21cf229
for python 3.3 support
inertia186 Sep 25, 2018
6dfa66e
bump ci
roadscape Sep 25, 2018
309bd20
fix to enable broadcast #264
inertia186 Sep 25, 2018
91a5f82
serialized transaction now matches my local curl on get_transaction_h…
inertia186 Sep 25, 2018
6f51d04
Merge branch '264-hf20-support' of github.com:steemit/steem-python in…
inertia186 Sep 25, 2018
3bf2174
compatibility with python 2.7 #264
inertia186 Sep 25, 2018
2fab47f
bump ci
inertia186 Sep 25, 2018
9a3fdb0
bump ci
inertia186 Sep 25, 2018
eb859cf
bump ci
inertia186 Sep 25, 2018
80d5810
Merge pull request #265 from steemit/264-hf20-support
inertia186 Sep 25, 2018
4c81333
[#267] remove -rc1 from version
relativityboy Sep 26, 2018
bcdfdbb
bump ci
relativityboy Sep 26, 2018
db22033
bump ci
relativityboy Sep 26, 2018
2225e4b
bump ci
relativityboy Sep 26, 2018
827b876
Merge pull request #268 from steemit/267-version-update
relativityboy Sep 26, 2018
f8423c7
硬叉20审查惩罚时间调整
wjashan Oct 23, 2018
efdf8ce
fix sbd_to_rshares
economicstudio Dec 12, 2018
dd09dd2
Merge pull request #274 from economicstudio/fix-sbd_to_rshares
roadscape Dec 12, 2018
a1faaad
Merge pull request #271 from wjashan/master
roadscape Dec 12, 2018
3dd2e1e
Merge pull request #242 from crokkon/beneficiaries
roadscape Dec 12, 2018
513f1af
Merge branch 'fix-addkey-error' of https://github.com/AlexChien/steem…
roadscape Feb 4, 2019
ccd3a22
fix whitespace
roadscape Feb 4, 2019
93fc6cf
Merge pull request #277 from steemit/AlexChien-fix-addkey-error
roadscape Feb 6, 2019
a0d938c
- updated codebase to be compatible with python 3.12
Dont-Copy-That-Floppy Feb 15, 2025
9af6e8c
- added pick requirement
Dont-Copy-That-Floppy Feb 15, 2025
3b5f50e
- fixed pick version
Dont-Copy-That-Floppy Feb 15, 2025
1574ab6
- regex syntax fix and var to int comparison fix
Dont-Copy-That-Floppy Feb 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
version: 2
jobs:
build:
docker:
- image: circleci/python:3.6
steps:
- checkout
- run: python setup.py install
test27:
docker:
- image: circleci/python:2.7
steps:
- checkout
- run: python setup.py test
test33:
docker:
- image: circleci/python:3.3
steps:
- checkout
- run: sudo pip3 install setuptools_scm
- run: python setup.py test
test34:
docker:
- image: circleci/python:3.4
steps:
- checkout
- run: python setup.py test
test35:
docker:
- image: circleci/python:3.5
steps:
- checkout
- run: python setup.py test
test36:
docker:
- image: circleci/python:3.6
steps:
- checkout
- run: python setup.py test

workflows:
version: 2
test_all_envs:
jobs:
- test27
- test33
- test34
- test35
- test36
56 changes: 56 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg


# dotenv
.env

# Rope project settings
.ropeproject

# Vim
Session.vim

# Pycharm
.idea

# junk
blocks.json

# sqlite db for testing
local.db
/tests/fastest-test.sh
/tests/sbds-install.sh
/tests/test.sh
/tests/fast-test.sh
/tests/sync.sh
/tests/failed_blocks/
/envd
!/sbds.egg-info/
/tests/envdir-to-envfile.sh
*.db
envfile
/deploy
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
README.rst

.vagrant

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down Expand Up @@ -113,3 +114,5 @@ tests/failed_blocks/
/tests/envdir-to-envfile.sh
/deploy/
/test.py

.DS_Store
59 changes: 0 additions & 59 deletions Dockerfile

This file was deleted.

3 changes: 0 additions & 3 deletions MANIFEST.in

This file was deleted.

72 changes: 13 additions & 59 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,64 +1,18 @@
ROOT_DIR := .
DOCS_DIR := $(ROOT_DIR)/docs
DOCS_BUILD_DIR := $(DOCS_DIR)/_build
PROJECT := $(shell basename $(shell pwd))
PYTHON_FILES := steem steembase tests setup.py

PROJECT_NAME := steem-python
PROJECT_DOCKER_TAG := steemit/$(PROJECT_NAME)
.PHONY: clean test fmt install

clean:
rm -rf build/ dist/ *.egg-info .eggs/ .tox/ \
__pycache__/ .cache/ .coverage htmlcov src

default: install-global
test: clean
python setup.py test

.PHONY: docker-image build-without-docker test-without-lint test-pylint test-without-build install-pipenv install-global clean clean-build
fmt:
yapf --recursive --in-place --style pep8 $(PYTHON_FILES)
pycodestyle $(PYTHON_FILES)

docker-image: clean
docker build -t $(PROJECT_DOCKER_TAG) .

Pipfile.lock: Pipfile
pipenv lock --three --hashes

requirements.txt: Pipfile.lock
pipenv lock -r >requirements.txt

build-without-docker: requirements.txt Pipfile.lock
mkdir -p build/wheel
pipenv install --three --dev
pipenv run python3.6 scripts/doc_rst_convert.py
pipenv run python3.6 setup.py build
rm README.rst

dockerised-test: docker-image
docker run -ti $(PROJECT_DOCKER_TAG) make -C /buildroot/src build-without-docker install-pipenv test-without-build

test: build-without-docker test-without-build

test-without-build: test-without-lint test-pylint

test-without-lint:
pipenv run pytest -v

test-pylint:
pipenv run pytest -v --pylint

clean: clean-build clean-pyc
rm -rf requirements.txt

clean-build:
rm -fr build/ dist/ *.egg-info .eggs/ .tox/ __pycache__/ .cache/ .coverage htmlcov src

clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +

install-pipenv: clean
pipenv run pip3.6 install -e .

install-global: clean
python3.6 scripts/doc_rst_convert.py
pip3.6 install -e .

pypi:
python3.6 scripts/doc_rst_convert.py
python3.6 setup.py bdist_wheel --universal
python3.6 setup.py sdist bdist_wheel upload
rm README.rst
install:
python setup.py install
40 changes: 0 additions & 40 deletions Pipfile

This file was deleted.

Loading