-
-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add all IANA assigned HTTP method names (#751)
* Ignore `docs/_build` * Remove `v` prefix from VERSION. Also added a `lib-doc` target * Raise a `ValueError` instead of `NotImplementedError` * Add all registered http method verbs * Generate `_scm_version.py` on every `make` invocation. Fix `v` prefix bug. * `+proxy` for emails * Make explicit that this script writes to file * `PROXY_AGENT_HEADER_VALUE` still needs the `v` :)
- Loading branch information
1 parent
658acd8
commit 2b3f0cb
Showing
11 changed files
with
152 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,6 @@ cover | |
htmlcov | ||
dist | ||
build | ||
|
||
proxy/public | ||
docs/_build |
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 |
---|---|---|
|
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers. | |
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting the project team at [email protected]. All | ||
reported by contacting the project team at mailsforabhinav+proxy@gmail.com. All | ||
complaints will be reviewed and investigated and will result in a response that | ||
is deemed necessary and appropriate to the circumstances. The project team is | ||
obligated to maintain confidentiality with regard to the reporter of an incident. | ||
|
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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ description = ⚡⚡⚡Fast, Lightweight, Pluggable, TLS interception capable pr | |
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
author = Abhinav Singh | ||
author_email = [email protected] | ||
author_email = mailsforabhinav+proxy@gmail.com | ||
license = 'BSD' | ||
license_files = | ||
LICENSE.md | ||
|
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
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,46 @@ | ||
#!/bin/bash | ||
# | ||
# write-scm-version.sh exists because `proxy.py`` | ||
# auto-detects it's next version from git. Hence, | ||
# for `proxy.py` to work `proxy/common/_scm_version.py` | ||
# file must be auto-generated with necessary information. | ||
# | ||
# For CI/CD, this file is generated via `tox` integration. | ||
# For local development (without editable install), you | ||
# must run this script to pre-populate `_scm_version.py`. | ||
# | ||
# This file is integrated by default within `Makefile`. | ||
# For every make target invocation, `_scm_version.py` file | ||
# will be re-written. | ||
|
||
# Guessed Version 2.3.2.dev146+gad54132.d20211114 | ||
VERSION=$(python -m setuptools_scm --version | \ | ||
# 2.3.2.dev146+gad54132.d20211114 | ||
awk '{print $3}') | ||
|
||
# Store default IFS | ||
OLDIFS=$IFS | ||
|
||
IFS="+" | ||
set -- $VERSION | ||
SEMVER=$1 | ||
DATE_AND_HASH=$2 | ||
|
||
IFS="." | ||
set -- $SEMVER | ||
MAJOR=$1 | ||
MINOR=$2 | ||
PATCH=$3 | ||
DISTANCE=$4 | ||
|
||
# Reset IFS | ||
IFS=$OLDIFS | ||
|
||
echo "# coding: utf-8 | ||
# file generated by setuptools_scm | ||
# don't change, don't track in version control | ||
version = '${VERSION}' | ||
version_tuple = (${MAJOR}, ${MINOR}, ${PATCH}, '${DISTANCE}', '${DATE_AND_HASH}')" > \ | ||
proxy/common/_scm_version.py | ||
|
||
echo $MAJOR.$MINOR.$PATCH.$DISTANCE |