Skip to content

Commit e00e011

Browse files
committed
ch15
1 parent 0a0ceaf commit e00e011

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1653
-0
lines changed

ch15/pip_install.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# pip_install.txt
2+
$ pip install --no-cache -v -v -v requests==2.26.0
3+
...
4+
1 location(s) to search for versions of requests:
5+
* https://pypi.org/simple/requests/
6+
...
7+
Found link https://.../requests-0.2.0.tar.gz..., version: 0.2.0
8+
...
9+
Found link https://.../requests-2.26.0-py2.py3-none-any.whl...,
10+
version: 2.26.0
11+
Found link https://.../requests-2.26.0.tar.gz..., version:
12+
2.26.0
13+
...
14+
Collecting requests==2.26.0
15+
...
16+
Downloading requests-2.26.0-py2.py3-none-any.whl (62 kB)
17+
...
18+
Installing collected packages: urllib3, idna, charset-normalizer,
19+
certifi, requests
20+
...
21+
Successfully installed certifi-2021.5.30 charset-normalizer-2.0.4
22+
idna-3.2 requests-2.26.0 urllib3-1.26.6

ch15/pypirc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file contains an example of the format of your ~/.pypirc
2+
# file
3+
4+
[testpypi]
5+
username = __token__
6+
password = pypi-...
7+
8+
[pypi]
9+
username = __token__
10+
password = pypi-...

ch15/requirements/build.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build
2+
twine

ch15/requirements/build.txt

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
#
2+
# This file is autogenerated by pip-compile with python 3.9
3+
# To update, run:
4+
#
5+
# pip-compile build.in
6+
#
7+
bleach==4.1.0
8+
# via readme-renderer
9+
build==0.6.0.post1
10+
# via -r build.in
11+
certifi==2021.5.30
12+
# via requests
13+
cffi==1.14.6
14+
# via cryptography
15+
charset-normalizer==2.0.5
16+
# via requests
17+
colorama==0.4.4
18+
# via twine
19+
cryptography==3.4.8
20+
# via secretstorage
21+
docutils==0.17.1
22+
# via readme-renderer
23+
idna==3.2
24+
# via requests
25+
importlib-metadata==4.8.1
26+
# via
27+
# keyring
28+
# twine
29+
jeepney==0.7.1
30+
# via
31+
# keyring
32+
# secretstorage
33+
keyring==23.2.1
34+
# via twine
35+
packaging==21.0
36+
# via
37+
# bleach
38+
# build
39+
pep517==0.11.0
40+
# via build
41+
pkginfo==1.7.1
42+
# via twine
43+
pycparser==2.20
44+
# via cffi
45+
pygments==2.10.0
46+
# via readme-renderer
47+
pyparsing==2.4.7
48+
# via packaging
49+
readme-renderer==29.0
50+
# via twine
51+
requests==2.26.0
52+
# via
53+
# requests-toolbelt
54+
# twine
55+
requests-toolbelt==0.9.1
56+
# via twine
57+
rfc3986==1.5.0
58+
# via twine
59+
secretstorage==3.3.1
60+
# via keyring
61+
six==1.16.0
62+
# via
63+
# bleach
64+
# readme-renderer
65+
tomli==1.2.1
66+
# via
67+
# build
68+
# pep517
69+
tqdm==4.62.2
70+
# via twine
71+
twine==3.4.2
72+
# via -r build.in
73+
urllib3==1.26.6
74+
# via requests
75+
webencodings==0.5.1
76+
# via bleach
77+
zipp==3.5.0
78+
# via importlib-metadata

ch15/requirements/main.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
platformdirs>=2.0
2+
pydantic>=1.8.2,<2.0
3+
requests~=2.0

ch15/requirements/main.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#
2+
# This file is autogenerated by pip-compile with python 3.9
3+
# To update, run:
4+
#
5+
# pip-compile main.in
6+
#
7+
certifi==2021.5.30
8+
# via requests
9+
charset-normalizer==2.0.5
10+
# via requests
11+
idna==3.2
12+
# via requests
13+
platformdirs==2.3.0
14+
# via -r main.in
15+
pydantic==1.8.2
16+
# via -r main.in
17+
requests==2.26.0
18+
# via -r main.in
19+
typing-extensions==3.10.0.2
20+
# via pydantic
21+
urllib3==1.26.6
22+
# via requests

ch15/skeleton-project/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Simple skeleton project
2+
3+
This is a skeleton of a project that you can copy and flesh out to create your own project.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"""This is just a placeholder package, replace it with your own
2+
package"""
3+
4+
5+
print("Hello world")
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools>=51.0.0", "wheel"]
3+
build-backend = "setuptools.build_meta"

ch15/skeleton-project/setup.cfg

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[metadata]
2+
name = your-project-name
3+
author = Your Name
4+
author_email = [email protected]
5+
version = 0.0.0
6+
description = A short description of your project
7+
long_description = file: README.md
8+
long_description_content_type = text/markdown
9+
url = https://example.com/your/project
10+
11+
[options]
12+
packages = find:
13+
14+
[options.extras_require]
15+
test =
16+
pytest

0 commit comments

Comments
 (0)