Skip to content

Commit 349289b

Browse files
author
joseramon.afonso
committed
First changes and fixes
1 parent 87e752b commit 349289b

8 files changed

Lines changed: 30 additions & 15 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [2.0.1] - 2019-10-17
8+
#### Fixed
9+
* Fixed devo-sdk version required
10+
711
## [2.0.0] - 2019-07-02
812
#### Changed
913
* Modified base devo-sender from version 2.x to >=3.0.1
@@ -28,4 +32,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2832

2933
## [1.0.0] - 2019-01-16
3034
#### Added
31-
* On the ninth month of the year, a Devo programmer finally decided to publish a part of the Utils and rest in peace.
35+
* On the ninth month of the year, a Devo programmer finally decided to publish a part of the Utils and rest in peace.

devoutils/faker/senders/file_sender.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ def __init__(self, template, **kwargs):
1313
def run(self):
1414
"""Run function for cli or call function"""
1515
with open("safestream.log", "a") as file:
16-
lines = self.process().split('\n')
1716
while True:
17+
lines = self.process().split('\n')
1818
for line in lines:
1919
if self.probability():
2020
file.write(line + "\n")

devoutils/fileio/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
from .file_writer import FileWriter
22
from .file_reader import FileReader
3-
from .file_sorted_join import FileSortedJoin

devoutils/sorter/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from .sorter import Sorter
22
from .comparator import compare_date, compare_num, compare_str
33
from .parser import parser_list, parser_delimiter, parser_regex
4+
from .file_sorted_join import FileSortedJoin
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
- Reader and join of several ordered files
66
"""
77
import os
8-
from .file_reader import FileReader
8+
from devoutils.fileio.file_reader import FileReader
99

1010

1111
class FileSortedJoin:

devoutils/sorter/sorter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
from types import GeneratorType
1010
from collections import Iterable
1111
from psutil import virtual_memory
12-
from devoutils.fileio import FileReader, FileWriter, FileSortedJoin
12+
from devoutils.fileio import FileReader, FileWriter
13+
from .file_sorted_join import FileSortedJoin
1314
from .cmp_compatible import cmp
1415

1516
DEFAULT_PERC_MEM = 0.4

requirements.txt

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
Click==7.0
2-
requests==2.21.0
3-
pyyaml>=git+git://github.com/yaml/pyyaml@releases/tag/5.1b3
4-
devo-sdk==3.0.2
5-
Jinja2>=2.10.1
6-
psutil==5.6.1
7-
python-dateutil==2.8.0
8-
Faker==1.0.5
1+
click==7.1.1
2+
requests==2.23.0
3+
PyYAML==5.3.1
4+
devo-sdk==3.2.5
5+
Jinja2==2.11.1
6+
psutil==5.7.0
7+
python-dateutil==2.8.1
8+
Faker==4.0.2
9+
10+
11+

setup.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,15 @@
2323
"Programming Language :: Python :: Implementation :: PyPy",
2424
"Topic :: Software Development :: Libraries :: Python Modules",
2525
]
26-
INSTALL_REQUIRES = ['devo-sdk>=3.0.3,<4', 'faker', 'jinja2>=2.10.1', 'psutil',
27-
'click', 'python-dateutil']
26+
INSTALL_REQUIRES = ['click==7.1.1',
27+
'requests==2.23.0',
28+
'PyYAML==5.3.1',
29+
'devo-sdk==3.2.5',
30+
'Jinja2==2.11.1',
31+
'psutil==5.7.0',
32+
'python-dateutil==2.8.1',
33+
'Faker==4.0.2']
34+
2835
CLI = ['devo-faker=devoutils.faker.scripts.faker_cli:cli']
2936

3037

0 commit comments

Comments
 (0)