Skip to content

Commit 45730c0

Browse files
authored
Only run dependabot on the "main" requirements.txt (#296)
1 parent 3054f7b commit 45730c0

File tree

6 files changed

+13
-4
lines changed

6 files changed

+13
-4
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "pip"
4+
directory: "/pyperformance/requirements"

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ include doc/*.rst doc/images/*.png doc/images/*.jpg
1010
include doc/conf.py doc/Makefile doc/make.bat
1111

1212
include pyperformance/*.py
13-
include pyperformance/data-files/requirements.txt
13+
include pyperformance/requirements/requirements.txt
1414
include pyperformance/data-files/benchmarks/MANIFEST
1515
include pyperformance/data-files/benchmarks/bm_*/*.toml
1616
include pyperformance/data-files/benchmarks/bm_*/*.py

doc/changelog.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Changelog
22
=========
33

4+
* Move the main requirements.txt file to pyperformance/requirements
5+
so that dependabot can only run on that one file.
6+
47
Version 1.0.7 (2023-04-22)
58
-------------
69

pyperformance/data-files/requirements.txt renamed to pyperformance/requirements/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is autogenerated by pip-compile with Python 3.11
33
# by the following command:
44
#
5-
# pip-compile --output-file=pyperformance/data-files/requirements.txt requirements.in
5+
# pip-compile --output-file=pyperformance/requirements/requirements.txt requirements.in
66
#
77
packaging==23.1
88
# via -r requirements.in

pyperformance/venv.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
from . import _utils, _pip, _venv
77

88

9-
REQUIREMENTS_FILE = os.path.join(pyperformance.DATA_DIR, 'requirements.txt')
9+
REQUIREMENTS_FILE = os.path.join(
10+
os.path.dirname(__file__), 'requirements', 'requirements.txt'
11+
)
1012
PYPERF_OPTIONAL = ['psutil']
1113

1214

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pyperformance/data-files/requirements.txt
1+
pyperformance/requirements/requirements.txt

0 commit comments

Comments
 (0)