Skip to content

Commit 4b2a801

Browse files
author
Ricardo
authored
Cambios en requirements (#35)
1 parent da5f800 commit 4b2a801

File tree

6 files changed

+35
-21
lines changed

6 files changed

+35
-21
lines changed

.github/dependabot.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
version: 2
22
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "08:00"
8+
timezone: "America/Mexico_City"
9+
open-pull-requests-limit: 5
10+
reviewers:
11+
- "cuenca-mx/admin"
12+
313
- package-ecosystem: pip
414
directory: "/"
515
schedule:
616
interval: daily
7-
time: '11:00'
8-
open-pull-requests-limit: 10
17+
time: "08:00"
18+
timezone: "America/Mexico_City"
19+
open-pull-requests-limit: 5
20+
reviewers:
21+
- "cuenca-mx/admin"

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@ venv:
1212
$(PYTHON) -m venv --prompt $(PROJECT) venv
1313
pip install -qU pip
1414

15-
install-test:
16-
pip install -q .[test]
15+
install:
16+
pip install -qU -r requirements.txt
17+
18+
install-test: install
19+
pip install -qU -r requirements-test.txt
1720

1821
test: clean install-test lint
19-
python setup.py test
22+
pytest
2023

2124
format:
2225
$(isort)
@@ -43,7 +46,7 @@ clean:
4346
rm -rf build
4447
rm -rf dist
4548

46-
release: clean
49+
release: test clean
4750
python setup.py sdist bdist_wheel
4851
twine upload dist/*
4952

cuenca/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = '0.2.3'
1+
__version__ = '0.2.4'
22
CLIENT_VERSION = __version__
33
API_VERSION = '2020-03-19'

requirements-test.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
pytest==5.4.*
2+
pytest-cov==2.10.*
3+
pytest-vcr==1.0.*
4+
black==19.10b0
5+
isort==5.0.*
6+
flake8==3.8.*
7+
mypy==0.782

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
requests==2.24.0
2+
cuenca-validations==0.4.3
3+
dataclasses>=0.7;python_version<"3.7"

setup.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,6 @@
44

55
version = SourceFileLoader('version', 'cuenca/version.py').load_module()
66

7-
test_requires = [
8-
'pytest==5.4.3',
9-
'pytest-cov==2.10.0',
10-
'pytest-vcr==1.0.2',
11-
'black==19.10b0',
12-
'isort==5.0.*',
13-
'flake8==3.8.3',
14-
'mypy==0.782',
15-
]
167

178
with open('README.md', 'r') as f:
189
long_description = f.read()
@@ -32,13 +23,10 @@
3223
package_data=dict(cuenca=['py.typed']),
3324
python_requires='>=3.6',
3425
install_requires=[
35-
'requests==2.24.0',
36-
'cuenca-validations==0.4.3',
26+
'requests>=2.24,<2.25',
27+
'cuenca-validations>=0.4,<0.5',
3728
'dataclasses>=0.7;python_version<"3.7"',
3829
],
39-
setup_requires=['pytest-runner'],
40-
tests_require=test_requires,
41-
extras_require=dict(test=test_requires),
4230
classifiers=[
4331
'Programming Language :: Python :: 3',
4432
'Programming Language :: Python :: 3.6',

0 commit comments

Comments
 (0)