Skip to content

Commit 1d6f7e8

Browse files
committed
feat(test) use requirements.txt for deps
1 parent 7b803eb commit 1d6f7e8

File tree

4 files changed

+53
-42
lines changed

4 files changed

+53
-42
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ jobs:
4545
run: python -c "import sys; print(sys.version)"
4646
- name: Install dependencies
4747
run: |
48-
python -m pip install --upgrade pip
49-
if [ -f pyproject.toml ]; then pip install '.[dev]'; fi
48+
python -m pip install --upgrade pipenv
49+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
5050
- name: Lint with flake8
5151
run: |
5252
# stop the build if there are Python syntax errors or undefined names

pyproject.toml

Lines changed: 41 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,41 +6,52 @@ authors = [
66
{ name="Chaim Leib Halbert", email="[email protected]" },
77
]
88
readme = "README.md"
9-
requires-python = ">=3.7"
10-
dependencies = [
11-
"sortedcontainers < 3",
12-
]
139
classifiers = [
14-
'Development Status :: 5 - Production/Stable',
15-
'Programming Language :: Python :: Implementation :: PyPy',
16-
'Intended Audience :: Developers',
17-
'Intended Audience :: Information Technology',
18-
'Intended Audience :: Science/Research',
19-
'Programming Language :: Python',
20-
'Programming Language :: Python :: 3',
21-
'Programming Language :: Python :: 3.7',
22-
'Programming Language :: Python :: 3.8',
23-
'Programming Language :: Python :: 3.9',
24-
'Programming Language :: Python :: 3.10',
25-
'Programming Language :: Python :: 3.11',
26-
'Programming Language :: Python :: 3.12',
27-
'Programming Language :: Python :: 3.13',
28-
'License :: OSI Approved :: Apache Software License',
29-
'Topic :: Scientific/Engineering :: Artificial Intelligence',
30-
'Topic :: Scientific/Engineering :: Bio-Informatics',
31-
'Topic :: Scientific/Engineering :: Information Analysis',
32-
'Topic :: Software Development :: Libraries',
33-
'Topic :: Text Processing :: General',
34-
'Topic :: Text Processing :: Linguistic',
35-
'Topic :: Text Processing :: Markup',
10+
'Development Status :: 5 - Production/Stable',
11+
'Programming Language :: Python :: Implementation :: PyPy',
12+
'Intended Audience :: Developers',
13+
'Intended Audience :: Information Technology',
14+
'Intended Audience :: Science/Research',
15+
'Programming Language :: Python',
16+
'Programming Language :: Python :: 3',
17+
'Programming Language :: Python :: 3.6',
18+
'Programming Language :: Python :: 3.7',
19+
'Programming Language :: Python :: 3.8',
20+
'Programming Language :: Python :: 3.9',
21+
'Programming Language :: Python :: 3.10',
22+
'Programming Language :: Python :: 3.11',
23+
'Programming Language :: Python :: 3.12',
24+
'Programming Language :: Python :: 3.13',
25+
'License :: OSI Approved :: Apache Software License',
26+
'Topic :: Scientific/Engineering :: Artificial Intelligence',
27+
'Topic :: Scientific/Engineering :: Bio-Informatics',
28+
'Topic :: Scientific/Engineering :: Information Analysis',
29+
'Topic :: Software Development :: Libraries',
30+
'Topic :: Text Processing :: General',
31+
'Topic :: Text Processing :: Linguistic',
32+
'Topic :: Text Processing :: Markup',
3633
]
3734

3835
[project.urls]
3936
Homepage = "https://github.com/chaimleib/intervaltree"
4037
Issues = "https://github.com/chaimleib/intervaltree/issues"
4138

42-
[project.optional-dependencies]
43-
dev = [
44-
"flake8",
45-
"pytest",
39+
[tool.pytest.ini_options]
40+
addopts = ["--doctest-modules", "--doctest-glob='README.md'"]
41+
norecursedirs = [
42+
"build",
43+
"dist",
44+
"docs",
45+
"env",
46+
"test/data",
47+
".cache",
48+
".eggs",
49+
".git",
50+
".idea",
51+
".pytest_cache",
52+
".tox",
53+
".venv",
54+
".vscode",
55+
"__pycache__",
56+
"intervaltree.egg-info",
4657
]

requirements.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-i https://pypi.org/simple
2+
flake8==7.1.2; python_full_version >= '3.8.1'
3+
iniconfig==2.0.0; python_version >= '3.7'
4+
mccabe==0.7.0; python_version >= '3.6'
5+
packaging==24.2; python_version >= '3.8'
6+
pluggy==1.5.0; python_version >= '3.8'
7+
pycodestyle==2.12.1; python_version >= '3.8'
8+
pyflakes==3.2.0; python_version >= '3.8'
9+
pytest==8.3.5; python_version >= '3.8'
10+
sortedcontainers==2.4.0

setup.cfg

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

0 commit comments

Comments
 (0)