Skip to content

Commit 74c42f6

Browse files
authored
setup.cfg/extras_require configuration (#1452)
* Remove usage of requirements file in favor of `setup.cfg/extras_require` configuration * Fallback to setuptools-scm>=6 because >=7.0.5 dont support python 3.6, see https://github.com/abhinavsingh/proxy.py/pull/1345/files * Remove unicode symbols from setup.cfg which causes parsing issues on python3.6, ref https://github.com/abhinavsingh/proxy.py/actions/runs/10346098737/job/28634186621\?pr\=1452
1 parent 6602be3 commit 74c42f6

12 files changed

+64
-76
lines changed

.github/workflows/test-library.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ jobs:
495495
${{ runner.os }}-pip-${{
496496
steps.calc-cache-key-py.outputs.py-hash-key
497497
}}-${{
498-
hashFiles('tox.ini', 'requirements**.txt')
498+
hashFiles('tox.ini', 'setup.cfg')
499499
}}
500500
restore-keys: |
501501
${{ runner.os }}-pip-${{

.pre-commit-config.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,8 @@ repos:
6060
dashboard/(
6161
src/core/plugins/inspect_traffic\.json|
6262
static/bootstrap-4\.3\.1\.min\.(cs|j)s
63-
)|
64-
requirements-release\.txt
63+
)
6564
$
66-
- id: requirements-txt-fixer
67-
exclude: >-
68-
^(docs/requirements|requirements(|-(release|testing|tunnel)))\.txt$
6965
# Non-modifying checks:
7066
- id: name-tests-test
7167
args:
@@ -159,11 +155,11 @@ repos:
159155
- paramiko == 2.11.0
160156
- types-paramiko == 2.7.3
161157
- types-requests==2.27.30
162-
# From requirements-tunnel.txt
158+
# [tunnel]
163159
- cryptography==36.0.2; python_version <= '3.6'
164160
- types-setuptools == 57.4.2
165161
- pyyaml==5.3.1
166-
# From requirements-metrics.txt
162+
# [metrics]
167163
- prometheus_client==0.20.0
168164
args:
169165
# FIXME: get rid of missing imports ignore

.readthedocs.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ python:
3434
# system_packages: false
3535
install:
3636
- method: pip
37-
path: .
38-
- requirements: requirements-tunnel.txt
37+
path: .[tunnel,metrics]
3938
- requirements: docs/requirements.txt
40-
- requirements: requirements-metrics.txt
4139

4240
...

Makefile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,7 @@ lib-clean:
101101

102102
lib-dep:
103103
pip install --upgrade pip && \
104-
pip install \
105-
-r requirements-testing.txt \
106-
-r requirements-release.txt \
107-
-r requirements-tunnel.txt \
108-
-r requirements-metrics.txt && \
104+
pip install -e .[testing,release,tunnel,metrics] && \
109105
pip install "setuptools>=42"
110106

111107
lib-pre-commit:

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,9 +1473,7 @@ Above:
14731473

14741474
**This is a WIP and may not work as documented**
14751475

1476-
Requires `paramiko` to work.
1477-
1478-
See [requirements-tunnel.txt](https://github.com/abhinavsingh/proxy.py/blob/develop/requirements-tunnel.txt)
1476+
Requires `paramiko` to work. Install dependencies using `pip install "proxy.py[tunnel]"`
14791477

14801478
## Proxy Remote Requests Locally
14811479

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ requires = [
44
"setuptools",
55

66
# Plugins
7-
"setuptools-scm[toml]>=7.0.5",
7+
"setuptools-scm[toml]>=6,!=7.0.0,!=7.0.1,!=7.0.2",
88
]
99
build-backend = "setuptools.build_meta"
1010

requirements-metrics.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

requirements-release.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

requirements-testing.txt

Lines changed: 0 additions & 36 deletions
This file was deleted.

requirements-tunnel.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)