-
-
Notifications
You must be signed in to change notification settings - Fork 570
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add homebrew formula * Build PyPi package and Homebrew installation verification * Check develop * bdist_wheel reported as error: invalid command "bdist_wheel" * Move under stable/develop folders to keep Proxy class name same * uff * develop installs proxy not proxy.py binary * Prepend site-packages * Install typing-extensions explicitly with brew * Use find_packages * Most likely failing due to lack of find_packages in current develop branch * Fix windows setup.py build * test_static_web_server_serves seems flaky on Ubuntu python 3.8 * Add instructions to install using homebrew * Disable test_static_web_server_serves on GitHub actions, seems flaky
- Loading branch information
1 parent
3bd61e0
commit 4713ad6
Showing
8 changed files
with
116 additions
and
23 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Proxy.py Brew | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }}-latest | ||
name: Brew - Python ${{ matrix.python }} on ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macOS] | ||
python: [3.5, 3.6, 3.7, 3.8] | ||
max-parallel: 4 | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Setup Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python }}-dev | ||
- name: Brew | ||
run: | | ||
brew install ./homebrew/develop/proxy.rb | ||
- name: Verify | ||
run: | | ||
proxy --version |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
class Proxy < Formula | ||
desc "⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on | ||
Network monitoring, controls & Application development, testing, debugging." | ||
homepage "https://github.com/abhinavsingh/proxy.py" | ||
url "https://github.com/abhinavsingh/proxy.py/archive/develop.zip" | ||
version "HEAD" | ||
|
||
depends_on "python" | ||
|
||
resource "typing-extensions" do | ||
url "https://files.pythonhosted.org/packages/e7/dd/f1713bc6638cc3a6a23735eff6ee09393b44b96176d3296693ada272a80b/typing_extensions-3.7.4.1.tar.gz" | ||
sha256 "091ecc894d5e908ac75209f10d5b4f118fbdb2eb1ede6a63544054bb1edb41f2" | ||
end | ||
|
||
def install | ||
xy = Language::Python.major_minor_version "python3" | ||
|
||
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python#{xy}/site-packages" | ||
resource("typing-extensions").stage do | ||
system "python3", *Language::Python.setup_install_args(libexec/"vendor") | ||
end | ||
|
||
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python#{xy}/site-packages" | ||
system "python3", *Language::Python.setup_install_args(libexec) | ||
|
||
bin.install Dir[libexec/"bin/*"] | ||
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"]) | ||
end | ||
end |
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,29 @@ | ||
class Proxy < Formula | ||
desc "⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on | ||
Network monitoring, controls & Application development, testing, debugging." | ||
homepage "https://github.com/abhinavsingh/proxy.py" | ||
url "https://github.com/abhinavsingh/proxy.py/archive/master.zip" | ||
version "1.1.1" | ||
|
||
depends_on "python" | ||
|
||
resource "typing-extensions" do | ||
url "https://files.pythonhosted.org/packages/e7/dd/f1713bc6638cc3a6a23735eff6ee09393b44b96176d3296693ada272a80b/typing_extensions-3.7.4.1.tar.gz" | ||
sha256 "091ecc894d5e908ac75209f10d5b4f118fbdb2eb1ede6a63544054bb1edb41f2" | ||
end | ||
|
||
def install | ||
xy = Language::Python.major_minor_version "python3" | ||
|
||
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python#{xy}/site-packages" | ||
resource("typing-extensions").stage do | ||
system "python3", *Language::Python.setup_install_args(libexec/"vendor") | ||
end | ||
|
||
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python#{xy}/site-packages" | ||
system "python3", *Language::Python.setup_install_args(libexec) | ||
|
||
bin.install Dir[libexec/"bin/*"] | ||
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"]) | ||
end | ||
end |
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