This file contains hidden or 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
distutils pypy $ git merge master | |
Auto-merging util.py | |
CONFLICT (content): Merge conflict in util.py | |
Auto-merging unixccompiler.py | |
CONFLICT (content): Merge conflict in unixccompiler.py | |
Auto-merging tests/test_upload.py | |
CONFLICT (content): Merge conflict in tests/test_upload.py | |
Auto-merging tests/test_spawn.py | |
CONFLICT (content): Merge conflict in tests/test_spawn.py | |
Auto-merging tests/test_msvccompiler.py |
This file contains hidden or 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
$ pip-run -q goto-http-redirect-server -- -m goto_http_redirect_server.goto_http_redirect_server --from-to / https://www.jaraco.com | |
2020-05-28 20:43:43 goto_http_redirect_server INFO: Serve forever at 0.0.0.0:80, Process ID 13939 | |
2020-05-28 20:44:04 goto_http_redirect_server INFO: 127.0.0.1:64596 redirect found (/) → (https://www.jaraco.com), returning 308 (Permanent Redirect) |
This file contains hidden or 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
~ $ http -h https://www.pittsburghfreethoughtcommunity.com | |
HTTP/1.1 200 OK | |
Cache-Control: no-cache, no-store | |
Connection: close | |
Content-Encoding: gzip | |
Content-Length: 12856 | |
Content-Type: text/html; charset=utf-8 | |
Date: Sat, 25 Apr 2020 00:56:03 GMT | |
Expires: -1 | |
P3P: CP="CAO PSA OUR" |
This file contains hidden or 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
~ $ cd ~/draft | |
draft $ git clone gh://pypa/twine | |
Cloning into 'twine'... | |
remote: Enumerating objects: 66, done. | |
remote: Counting objects: 100% (66/66), done. | |
remote: Compressing objects: 100% (52/52), done. | |
remote: Total 3549 (delta 24), reused 30 (delta 14), pack-reused 3483 | |
Receiving objects: 100% (3549/3549), 942.33 KiB | 5.15 MiB/s, done. | |
Resolving deltas: 100% (2377/2377), done. | |
draft $ cd twine |
This file contains hidden or 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
@cherrypy.expose | |
def login(self, username, password): | |
""" | |
Log in the user and set a JWT web token in the cookie. | |
""" | |
res = self._login(username, password) | |
if not res: | |
raise cherrypy.HTTPError('401 Unauthorized') | |
self.install_token(models.Member.make_token(res)) |
This file contains hidden or 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
import sys | |
import json | |
import traceback | |
import cherrypy | |
def handle_error(): | |
""" | |
Handle unexpected errors (500). |
This file contains hidden or 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
FROM ubuntu:xenial | |
RUN apt update | |
RUN apt install -y software-properties-common | |
RUN apt-add-repository -y ppa:deadsnakes/ppa | |
RUN apt update | |
RUN apt install -y python3-dev wget python python-dev python-setuptools python3.7-dev virtualenv | |
RUN adduser --system --disabled-password --uid 2500 --quiet buildbot --home /opt/buildhome | |
USER buildbot |
This file contains hidden or 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
setuptools feature/include-pyproject.toml $ python bootstrap.py | |
adding minimal entry_points | |
Regenerating egg_info | |
running egg_info | |
writing dependency_links to setuptools.egg-info/dependency_links.txt | |
writing entry points to setuptools.egg-info/entry_points.txt | |
writing requirements to setuptools.egg-info/requires.txt | |
writing manifest file 'setuptools.egg-info/SOURCES.txt' | |
reading manifest file 'setuptools.egg-info/SOURCES.txt' | |
reading manifest template 'MANIFEST.in' |
This file contains hidden or 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
$ $PYTHONPATH='foo' | |
$ easy_install -d foo toml | |
Creating /Users/jaraco/code/public/pypa/setuptools_scm/foo/site.py | |
Searching for toml | |
Reading https://pypi.python.org/simple/toml/ | |
Best match: toml 0.10.0 | |
Downloading https://files.pythonhosted.org/packages/07/33/ccf5b4258d599e66fb6a4a4d0d10d4ee24cefd201f1a269c0321ce9a9ca9/toml-0.10.0-py2.7.egg#sha256=f1db651f9657708513243e61e6cc67d101a39bad662eaa9b5546f789338e07a3 | |
Processing toml-0.10.0-py2.7.egg | |
Moving toml-0.10.0-py2.7.egg to /Users/jaraco/code/public/pypa/setuptools_scm/foo | |
Adding toml 0.10.0 to easy-install.pth file |
This file contains hidden or 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
setuptools master $ git diff | |
diff --git a/setuptools/dist.py b/setuptools/dist.py | |
index 2e5ad4bd..987d684e 100644 | |
--- a/setuptools/dist.py | |
+++ b/setuptools/dist.py | |
@@ -728,6 +728,10 @@ class Distribution(_Distribution): | |
if self.features: | |
self._set_global_opts_from_features() | |
+ hook_key = 'setuptools.finalize_distribution_options' |