mirror of
https://github.com/FlipsideCrypto/web3.py.git
synced 2026-02-06 10:56:47 +00:00
initial commit
This commit is contained in:
commit
907e3cfec5
11
.github/ISSUE_TEMPLATE.md
vendored
Normal file
11
.github/ISSUE_TEMPLATE.md
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
* Version: x.x.x
|
||||
* Python: 2.7/3.4/3.5
|
||||
* OS: osx/linux/win
|
||||
|
||||
|
||||
### What was wrong?
|
||||
|
||||
|
||||
#### Cute Animal Picture
|
||||
|
||||
> put a cute animal picture here.
|
||||
11
.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
11
.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
### What was wrong?
|
||||
|
||||
|
||||
|
||||
### How was it fixed?
|
||||
|
||||
|
||||
|
||||
#### Cute Animal Picture
|
||||
|
||||
> put a cute animal picture here.
|
||||
45
.gitignore
vendored
Normal file
45
.gitignore
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
*.py[cod]
|
||||
|
||||
# C extensions
|
||||
*.so
|
||||
|
||||
# Packages
|
||||
*.egg
|
||||
*.egg-info
|
||||
dist
|
||||
build
|
||||
eggs
|
||||
parts
|
||||
bin
|
||||
var
|
||||
sdist
|
||||
develop-eggs
|
||||
.installed.cfg
|
||||
lib
|
||||
lib64
|
||||
|
||||
# Installer logs
|
||||
pip-log.txt
|
||||
|
||||
# Unit test / coverage reports
|
||||
.coverage
|
||||
.tox
|
||||
nosetests.xml
|
||||
|
||||
# Translations
|
||||
*.mo
|
||||
|
||||
# Mr Developer
|
||||
.mr.developer.cfg
|
||||
.project
|
||||
.pydevproject
|
||||
|
||||
# Complexity
|
||||
output/*.html
|
||||
output/*/index.html
|
||||
|
||||
# Sphinx
|
||||
docs/_build
|
||||
|
||||
# Blockchain
|
||||
chains
|
||||
18
.travis.yml
Normal file
18
.travis.yml
Normal file
@ -0,0 +1,18 @@
|
||||
sudo: false
|
||||
language: python
|
||||
python:
|
||||
- "3.5"
|
||||
env:
|
||||
matrix:
|
||||
- TOX_ENV=py27
|
||||
- TOX_ENV=py34
|
||||
- TOX_ENV=py35
|
||||
- TOX_ENV=flake8
|
||||
cache: pip
|
||||
install:
|
||||
- "travis_retry pip install setuptools --upgrade"
|
||||
- "travis_retry pip install tox"
|
||||
script:
|
||||
- tox -e $TOX_ENV
|
||||
after_script:
|
||||
- cat .tox/$TOX_ENV/log/*.log
|
||||
34
CONTRIBUTING.md
Normal file
34
CONTRIBUTING.md
Normal file
@ -0,0 +1,34 @@
|
||||
# Development
|
||||
|
||||
To start development you should begin by cloning the repo.
|
||||
|
||||
```bash
|
||||
$ git clone git@github.com/pipermerriam/web3.py.git
|
||||
```
|
||||
|
||||
|
||||
# Cute Animal Pictures
|
||||
|
||||
All pull requests need to have a cute animal picture. This is a very important
|
||||
part of the development process.
|
||||
|
||||
|
||||
# Pull Requests
|
||||
|
||||
In general, pull requests are welcome. Please try to adhere to the following.
|
||||
|
||||
- code should conform to PEP8 and as well as the linting done by flake8
|
||||
- include tests.
|
||||
- include any relevant documentation updates.
|
||||
|
||||
It's a good idea to make pull requests early on. A pull request represents the
|
||||
start of a discussion, and doesn't necessarily need to be the final, finished
|
||||
submission.
|
||||
|
||||
GitHub's documentation for working on pull requests is [available here][pull-requests].
|
||||
|
||||
Always run the tests before submitting pull requests, and ideally run `tox` in
|
||||
order to check that your modifications don't break anything.
|
||||
|
||||
Once you've made a pull request take a look at the travis build status in the
|
||||
GitHub interface and make sure the tests are runnning as you'd expect.
|
||||
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 Piper Merriam
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
7
MANIFEST.in
Normal file
7
MANIFEST.in
Normal file
@ -0,0 +1,7 @@
|
||||
include LICENSE
|
||||
include VERSION
|
||||
include README.md
|
||||
include requirements.txt
|
||||
|
||||
recursive-exclude * __pycache__
|
||||
recursive-exclude * *.py[co]
|
||||
38
Makefile
Normal file
38
Makefile
Normal file
@ -0,0 +1,38 @@
|
||||
.PHONY: clean-pyc clean-build docs
|
||||
|
||||
help:
|
||||
@echo "clean-build - remove build artifacts"
|
||||
@echo "clean-pyc - remove Python file artifacts"
|
||||
@echo "lint - check style with flake8"
|
||||
@echo "test - run tests quickly with the default Python"
|
||||
@echo "testall - run tests on every Python version with tox"
|
||||
@echo "release - package and upload a release"
|
||||
@echo "sdist - package"
|
||||
|
||||
clean: clean-build clean-pyc
|
||||
|
||||
clean-build:
|
||||
rm -fr build/
|
||||
rm -fr dist/
|
||||
rm -fr *.egg-info
|
||||
|
||||
clean-pyc:
|
||||
find . -name '*.pyc' -exec rm -f {} +
|
||||
find . -name '*.pyo' -exec rm -f {} +
|
||||
find . -name '*~' -exec rm -f {} +
|
||||
|
||||
lint:
|
||||
flake8 web3
|
||||
|
||||
test:
|
||||
py.test tests
|
||||
|
||||
test-all:
|
||||
tox
|
||||
|
||||
release: clean
|
||||
python setup.py sdist bdist_wheel upload
|
||||
|
||||
sdist: clean
|
||||
python setup.py sdist bdist_wheel
|
||||
ls -l dist
|
||||
9
README.md
Normal file
9
README.md
Normal file
@ -0,0 +1,9 @@
|
||||
# Web3.py
|
||||
|
||||
[](https://travis-ci.org/pipermerriam/web3.py)
|
||||
[](https://readthedocs.org/projects/web3.py/?badge=latest)
|
||||
[](https://pypi.python.org/pypi/web3.py)
|
||||
[](https://pypi.python.org/pypi/web3.py)
|
||||
|
||||
|
||||
A python implementation of [web3.js](https://github.com/ethereum/web3.js)
|
||||
3
pytest.ini
Normal file
3
pytest.ini
Normal file
@ -0,0 +1,3 @@
|
||||
[pytest]
|
||||
python_paths= .
|
||||
addopts= --tb native -v
|
||||
3
requirements-dev.txt
Normal file
3
requirements-dev.txt
Normal file
@ -0,0 +1,3 @@
|
||||
pytest>=2.8.2
|
||||
pytest-pythonpath>=0.3
|
||||
tox>=1.8.0
|
||||
45
setup.py
Normal file
45
setup.py
Normal file
@ -0,0 +1,45 @@
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
import os
|
||||
|
||||
from setuptools import (
|
||||
setup,
|
||||
find_packages,
|
||||
)
|
||||
|
||||
|
||||
DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
|
||||
readme = open(os.path.join(DIR, 'README.md')).read()
|
||||
|
||||
|
||||
setup(
|
||||
name='web3.py',
|
||||
version='0.1.0',
|
||||
description="""Web3.py""",
|
||||
long_description=readme,
|
||||
author='Piper Merriam',
|
||||
author_email='pipermerriam@gmail.com',
|
||||
url='https://github.com/pipermerriam/web3.py',
|
||||
include_package_data=True,
|
||||
install_requires=[
|
||||
"six>=1.10.0",
|
||||
],
|
||||
py_modules=['web3'],
|
||||
license="MIT",
|
||||
zip_safe=False,
|
||||
keywords='ethereum',
|
||||
packages=find_packages(exclude=["tests", "tests.*"]),
|
||||
classifiers=[
|
||||
'Development Status :: 2 - Pre-Alpha',
|
||||
'Intended Audience :: Developers',
|
||||
'License :: OSI Approved :: MIT License',
|
||||
'Natural Language :: English',
|
||||
'Programming Language :: Python :: 2',
|
||||
'Programming Language :: Python :: 2.7',
|
||||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: 3.4',
|
||||
'Programming Language :: Python :: 3.5',
|
||||
],
|
||||
)
|
||||
2
tests/test_example.py
Normal file
2
tests/test_example.py
Normal file
@ -0,0 +1,2 @@
|
||||
def test_it():
|
||||
assert True
|
||||
22
tox.ini
Normal file
22
tox.ini
Normal file
@ -0,0 +1,22 @@
|
||||
[tox]
|
||||
envlist=
|
||||
py{27,34,35},
|
||||
flake8
|
||||
|
||||
[flake8]
|
||||
max-line-length= 100
|
||||
exclude= tests/*
|
||||
|
||||
[testenv]
|
||||
commands=py.test {posargs:tests}
|
||||
deps =
|
||||
-r{toxinidir}/requirements-dev.txt
|
||||
basepython =
|
||||
py27: python2.7
|
||||
py34: python3.4
|
||||
py35: python3.5
|
||||
|
||||
[testenv:flake8]
|
||||
basepython=python
|
||||
deps=flake8
|
||||
commands=flake8 {toxinidir}/web3
|
||||
3
web3/__init__.py
Normal file
3
web3/__init__.py
Normal file
@ -0,0 +1,3 @@
|
||||
import pkg_resources
|
||||
|
||||
__version__ = pkg_resources.get_distribution("web3").version
|
||||
Loading…
Reference in New Issue
Block a user