-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #140 from carver/upgrade-template
Merge in project template
- Loading branch information
Showing
30 changed files
with
479 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,38 @@ | ||
* Version: x.x.x | ||
* Python: 2.7/3.4/3.5 | ||
* OS: osx/linux/win | ||
_If this is a bug report, please fill in the following sections. | ||
If this is a feature request, delete and describe what you would like with examples._ | ||
|
||
## What was wrong? | ||
|
||
### What was wrong? | ||
### Code that produced the error | ||
|
||
Please include any of the following that are applicable: | ||
```py | ||
CODE_TO_REPRODUCE | ||
``` | ||
|
||
* The code which produced the error | ||
* The full output of the error | ||
### Full error output | ||
|
||
```sh | ||
ERROR_HERE | ||
``` | ||
|
||
### How can it be fixed? | ||
### Expected Result | ||
|
||
_This section may be deleted if the expectation is "don't crash"._ | ||
|
||
```sh | ||
EXPECTED_RESULT | ||
``` | ||
|
||
### Environment | ||
|
||
```sh | ||
# run this: | ||
$ python -m eth_utils | ||
|
||
# then copy the output here: | ||
OUTPUT_HERE | ||
``` | ||
|
||
## How can it be fixed? | ||
|
||
Fill this section in if you know how this could or should be fixed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
### What was wrong? | ||
## What was wrong? | ||
|
||
Issue # | ||
|
||
## How was it fixed? | ||
|
||
### How was it fixed? | ||
Summary of approach. | ||
|
||
### To-Do | ||
|
||
[//]: # (Stay ahead of things, add list items here!) | ||
- [ ] Clean up commit history | ||
|
||
[//]: # (For important changes that should go into the release notes please add a newsfragment file as explained here: https://github.com/ethereum/eth-abi/blob/master/newsfragments/README.md) | ||
|
||
[//]: # (See: https://eth-abi.readthedocs.io/en/latest/contributing.html#pull-requests) | ||
- [ ] Add entry to the [release notes](https://github.com/ethereum/eth-abi/blob/master/newsfragments/README.md) | ||
|
||
#### Cute Animal Picture | ||
|
||
![Cute animal picture]() | ||
![put a cute animal picture link inside the parentheses]() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
|
||
PROJECT_ROOT=$(dirname $(dirname $(python -c 'import os, sys; sys.stdout.write(os.path.realpath(sys.argv[1]))' "$0"))) | ||
|
||
echo "What is your python module name?" | ||
read MODULE_NAME | ||
|
||
echo "What is your pypi package name? (default: $MODULE_NAME)" | ||
read PYPI_INPUT | ||
PYPI_NAME=${PYPI_INPUT:-$MODULE_NAME} | ||
|
||
echo "What is your github project name? (default: $PYPI_NAME)" | ||
read REPO_INPUT | ||
REPO_NAME=${REPO_INPUT:-$PYPI_NAME} | ||
|
||
echo "What is your readthedocs.org project name? (default: $PYPI_NAME)" | ||
read RTD_INPUT | ||
RTD_NAME=${RTD_INPUT:-$PYPI_NAME} | ||
|
||
echo "What is your project name (ex: at the top of the README)? (default: $REPO_NAME)" | ||
read PROJECT_INPUT | ||
PROJECT_NAME=${PROJECT_INPUT:-$REPO_NAME} | ||
|
||
echo "What is a one-liner describing the project?" | ||
read SHORT_DESCRIPTION | ||
|
||
_replace() { | ||
echo "Replacing values: $1" | ||
local find_cmd=(find "$PROJECT_ROOT" ! -perm -u=x ! -path '*/.git/*' ! -path '*/venv*/*' -type f) | ||
|
||
if [[ $(uname) == Darwin ]]; then | ||
"${find_cmd[@]}" -exec sed -i '' "$1" {} + | ||
else | ||
"${find_cmd[@]}" -exec sed -i "$1" {} + | ||
fi | ||
} | ||
_replace "s/<MODULE_NAME>/$MODULE_NAME/g" | ||
_replace "s/<PYPI_NAME>/$PYPI_NAME/g" | ||
_replace "s/<REPO_NAME>/$REPO_NAME/g" | ||
_replace "s/<RTD_NAME>/$RTD_NAME/g" | ||
_replace "s/<PROJECT_NAME>/$PROJECT_NAME/g" | ||
_replace "s/<SHORT_DESCRIPTION>/$SHORT_DESCRIPTION/g" | ||
|
||
mkdir -p "$PROJECT_ROOT/$MODULE_NAME" | ||
touch "$PROJECT_ROOT/$MODULE_NAME/__init__.py" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
TEMPLATE_DIR=$(dirname $(readlink -f "$0")) | ||
<"$TEMPLATE_DIR/template_vars.txt" "$TEMPLATE_DIR/fill_template_vars.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
eth_abi | ||
eth_abi | ||
eth-abi | ||
eth-abi | ||
Ethereum Contract Interface (ABI) Utility | ||
Python utilities for working with Ethereum ABI definitions, especially encoding and decoding |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[pydocstyle] | ||
; All error codes found here: | ||
; http://www.pydocstyle.org/en/3.0.0/error_codes.html | ||
; | ||
; Ignored: | ||
; D1 - Missing docstring error codes | ||
; | ||
; Selected: | ||
; D2 - Whitespace error codes | ||
; D3 - Quote error codes | ||
; D4 - Content related error codes | ||
select=D2,D3,D4 | ||
|
||
; Extra ignores: | ||
; D200 - One-line docstring should fit on one line with quotes | ||
; D203 - 1 blank line required before class docstring | ||
; D204 - 1 blank line required after class docstring | ||
; D205 - 1 blank line required between summary line and description | ||
; D212 - Multi-line docstring summary should start at the first line | ||
; D302 - Use u""" for Unicode docstrings | ||
; D400 - First line should end with a period | ||
; D401 - First line should be in imperative mood | ||
; D412 - No blank lines allowed between a section header and its content | ||
add-ignore=D200,D203,D204,D205,D212,D302,D400,D401,D412 | ||
|
||
; Explanation: | ||
; D400 - Enabling this error code seems to make it a requirement that the first | ||
; sentence in a docstring is not split across two lines. It also makes it a | ||
; requirement that no docstring can have a multi-sentence description without a | ||
; summary line. Neither one of those requirements seem appropriate. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
include LICENSE | ||
include VERSION | ||
include README.md | ||
include requirements.txt | ||
include requirements-docs.txt | ||
|
||
global-include *.pyi | ||
|
||
recursive-exclude * __pycache__ | ||
recursive-exclude * *.py[co] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.