Skip to content

Commit a421c66

Browse files
authored
PYTHON-4373 Use requirements files for deps (#1605)
1 parent aa8322e commit a421c66

File tree

13 files changed

+40
-34
lines changed

13 files changed

+40
-34
lines changed

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ python:
1616
# Install pymongo itself.
1717
- method: pip
1818
path: .
19-
- requirements: doc/docs-requirements.txt
19+
- requirements: requirements/docs.txt
2020

2121
build:
2222
os: ubuntu-22.04

MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ include README.md
22
include LICENSE
33
include THIRD-PARTY-NOTICES
44
include *.ini
5+
include requirements.txt
56
exclude .coveragerc
67
exclude .git-blame-ignore-revs
78
exclude .pre-commit-config.yaml
@@ -16,9 +17,9 @@ recursive-include doc *.js
1617
recursive-include doc *.png
1718
include doc/Makefile
1819
include doc/_templates/layout.html
19-
include doc/docs-requirements.txt
2020
include doc/make.bat
2121
include doc/static/periodic-executor-refs.dot
22+
recursive-include requirements *.txt
2223
recursive-include tools *.py
2324
include tools/README.rst
2425
include green_framework_test.py

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dnspython>=1.16.0,<3.0.0

requirements/aws.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pymongo-auth-aws>=1.1.0,<2.0.0
File renamed without changes.

requirements/encryption.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pymongo-auth-aws>=1.1.0,<2.0.0
2+
pymongocrypt>=1.6.0,<2.0.0
3+
certifi;os.name=='nt' or sys_platform=='darwin'

requirements/gssapi.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pykerberos;os.name!='nt'
2+
winkerberos>=0.5.0;os.name=='nt'

requirements/ocsp.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# PyOpenSSL 17.0.0 introduced support for OCSP. 17.1.0 introduced
2+
# a related feature we need. 17.2.0 fixes a bug
3+
# in set_default_verify_paths we should really avoid.
4+
# service_identity 18.1.0 introduced support for IP addr matching.
5+
# Fallback to certifi on Windows if we can't load CA certs from the system
6+
# store and just use certifi on macOS.
7+
# https://www.pyopenssl.org/en/stable/api/ssl.html#OpenSSL.SSL.Context.set_default_verify_paths
8+
certifi;os.name=='nt' or sys_platform=='darwin'
9+
pyopenssl>=17.2.0
10+
requests<3.0.0
11+
cryptography>=2.5
12+
service_identity>=18.1.0

requirements/snappy.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python-snappy

requirements/test.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytest>=7

0 commit comments

Comments
 (0)