Skip to content

Commit 907e3cf

Browse files
committed
initial commit
0 parents  commit 907e3cf

16 files changed

+276
-0
lines changed

.github/ISSUE_TEMPLATE.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
* Version: x.x.x
2+
* Python: 2.7/3.4/3.5
3+
* OS: osx/linux/win
4+
5+
6+
### What was wrong?
7+
8+
9+
#### Cute Animal Picture
10+
11+
> put a cute animal picture here.

.github/PULL_REQUEST_TEMPLATE.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### What was wrong?
2+
3+
4+
5+
### How was it fixed?
6+
7+
8+
9+
#### Cute Animal Picture
10+
11+
> put a cute animal picture here.

.gitignore

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
*.py[cod]
2+
3+
# C extensions
4+
*.so
5+
6+
# Packages
7+
*.egg
8+
*.egg-info
9+
dist
10+
build
11+
eggs
12+
parts
13+
bin
14+
var
15+
sdist
16+
develop-eggs
17+
.installed.cfg
18+
lib
19+
lib64
20+
21+
# Installer logs
22+
pip-log.txt
23+
24+
# Unit test / coverage reports
25+
.coverage
26+
.tox
27+
nosetests.xml
28+
29+
# Translations
30+
*.mo
31+
32+
# Mr Developer
33+
.mr.developer.cfg
34+
.project
35+
.pydevproject
36+
37+
# Complexity
38+
output/*.html
39+
output/*/index.html
40+
41+
# Sphinx
42+
docs/_build
43+
44+
# Blockchain
45+
chains

.travis.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
sudo: false
2+
language: python
3+
python:
4+
- "3.5"
5+
env:
6+
matrix:
7+
- TOX_ENV=py27
8+
- TOX_ENV=py34
9+
- TOX_ENV=py35
10+
- TOX_ENV=flake8
11+
cache: pip
12+
install:
13+
- "travis_retry pip install setuptools --upgrade"
14+
- "travis_retry pip install tox"
15+
script:
16+
- tox -e $TOX_ENV
17+
after_script:
18+
- cat .tox/$TOX_ENV/log/*.log

CHANGELOG

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
0.1.0
2+
-----
3+
4+
TODO

CONTRIBUTING.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Development
2+
3+
To start development you should begin by cloning the repo.
4+
5+
```bash
6+
$ git clone [email protected]/pipermerriam/web3.py.git
7+
```
8+
9+
10+
# Cute Animal Pictures
11+
12+
All pull requests need to have a cute animal picture. This is a very important
13+
part of the development process.
14+
15+
16+
# Pull Requests
17+
18+
In general, pull requests are welcome. Please try to adhere to the following.
19+
20+
- code should conform to PEP8 and as well as the linting done by flake8
21+
- include tests.
22+
- include any relevant documentation updates.
23+
24+
It's a good idea to make pull requests early on. A pull request represents the
25+
start of a discussion, and doesn't necessarily need to be the final, finished
26+
submission.
27+
28+
GitHub's documentation for working on pull requests is [available here][pull-requests].
29+
30+
Always run the tests before submitting pull requests, and ideally run `tox` in
31+
order to check that your modifications don't break anything.
32+
33+
Once you've made a pull request take a look at the travis build status in the
34+
GitHub interface and make sure the tests are runnning as you'd expect.

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Piper Merriam
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

MANIFEST.in

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
include LICENSE
2+
include VERSION
3+
include README.md
4+
include requirements.txt
5+
6+
recursive-exclude * __pycache__
7+
recursive-exclude * *.py[co]

Makefile

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
.PHONY: clean-pyc clean-build docs
2+
3+
help:
4+
@echo "clean-build - remove build artifacts"
5+
@echo "clean-pyc - remove Python file artifacts"
6+
@echo "lint - check style with flake8"
7+
@echo "test - run tests quickly with the default Python"
8+
@echo "testall - run tests on every Python version with tox"
9+
@echo "release - package and upload a release"
10+
@echo "sdist - package"
11+
12+
clean: clean-build clean-pyc
13+
14+
clean-build:
15+
rm -fr build/
16+
rm -fr dist/
17+
rm -fr *.egg-info
18+
19+
clean-pyc:
20+
find . -name '*.pyc' -exec rm -f {} +
21+
find . -name '*.pyo' -exec rm -f {} +
22+
find . -name '*~' -exec rm -f {} +
23+
24+
lint:
25+
flake8 web3
26+
27+
test:
28+
py.test tests
29+
30+
test-all:
31+
tox
32+
33+
release: clean
34+
python setup.py sdist bdist_wheel upload
35+
36+
sdist: clean
37+
python setup.py sdist bdist_wheel
38+
ls -l dist

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Web3.py
2+
3+
[![Build Status](https://travis-ci.org/pipermerriam/web3.py.png)](https://travis-ci.org/pipermerriam/web3.py)
4+
[![Documentation Status](https://readthedocs.org/projects/web3.py/badge/?version=latest)](https://readthedocs.org/projects/web3.py/?badge=latest)
5+
[![PyPi version](https://pypip.in/v/web3.py/badge.png)](https://pypi.python.org/pypi/web3.py)
6+
[![PyPi downloads](https://pypip.in/d/web3.py/badge.png)](https://pypi.python.org/pypi/web3.py)
7+
8+
9+
A python implementation of [web3.js](https://github.com/ethereum/web3.js)

pytest.ini

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[pytest]
2+
python_paths= .
3+
addopts= --tb native -v

requirements-dev.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pytest>=2.8.2
2+
pytest-pythonpath>=0.3
3+
tox>=1.8.0

setup.py

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
import os
4+
5+
from setuptools import (
6+
setup,
7+
find_packages,
8+
)
9+
10+
11+
DIR = os.path.dirname(os.path.abspath(__file__))
12+
13+
14+
readme = open(os.path.join(DIR, 'README.md')).read()
15+
16+
17+
setup(
18+
name='web3.py',
19+
version='0.1.0',
20+
description="""Web3.py""",
21+
long_description=readme,
22+
author='Piper Merriam',
23+
author_email='[email protected]',
24+
url='https://github.com/pipermerriam/web3.py',
25+
include_package_data=True,
26+
install_requires=[
27+
"six>=1.10.0",
28+
],
29+
py_modules=['web3'],
30+
license="MIT",
31+
zip_safe=False,
32+
keywords='ethereum',
33+
packages=find_packages(exclude=["tests", "tests.*"]),
34+
classifiers=[
35+
'Development Status :: 2 - Pre-Alpha',
36+
'Intended Audience :: Developers',
37+
'License :: OSI Approved :: MIT License',
38+
'Natural Language :: English',
39+
'Programming Language :: Python :: 2',
40+
'Programming Language :: Python :: 2.7',
41+
'Programming Language :: Python :: 3',
42+
'Programming Language :: Python :: 3.4',
43+
'Programming Language :: Python :: 3.5',
44+
],
45+
)

tests/test_example.py

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def test_it():
2+
assert True

tox.ini

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[tox]
2+
envlist=
3+
py{27,34,35},
4+
flake8
5+
6+
[flake8]
7+
max-line-length= 100
8+
exclude= tests/*
9+
10+
[testenv]
11+
commands=py.test {posargs:tests}
12+
deps =
13+
-r{toxinidir}/requirements-dev.txt
14+
basepython =
15+
py27: python2.7
16+
py34: python3.4
17+
py35: python3.5
18+
19+
[testenv:flake8]
20+
basepython=python
21+
deps=flake8
22+
commands=flake8 {toxinidir}/web3

web3/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import pkg_resources
2+
3+
__version__ = pkg_resources.get_distribution("web3").version

0 commit comments

Comments
 (0)