File tree 7 files changed +537
-128
lines changed
7 files changed +537
-128
lines changed Original file line number Diff line number Diff line change 2
2
#
3
3
# Check https://circleci.com/docs/2.0/language-python/ for more details
4
4
#
5
- version : 2
5
+ version : 2.1
6
6
jobs :
7
7
build :
8
8
docker :
@@ -35,11 +35,15 @@ jobs:
35
35
key : v1-dependencies-{{ checksum "requirements.txt" }}
36
36
37
37
- run :
38
- name : examples
38
+ name : build dist
39
+ command : python setup.py sdist
40
+
41
+ - run :
42
+ name : run tests
39
43
command : |
40
44
. venv/bin/activate
41
- redisgraph-bulk-loader -n ./example/Person.csv -n ./example/Country.csv -r ./example/KNOWS.csv -r ./example/VISITED.csv Visits
42
- redisgraph-bulk-loader -n ./example2/Robots.csv Robots
45
+ pip install git+https://github.com/RedisGraph/redisgraph-py.git@master
46
+ python -m unittest test/test_bulk_loader.py
43
47
44
48
workflows :
45
49
version : 2
@@ -55,4 +59,4 @@ workflows:
55
59
only :
56
60
- master
57
61
jobs :
58
- - build
62
+ - build
Original file line number Diff line number Diff line change @@ -85,123 +85,12 @@ __pycache__/
85
85
# C extensions
86
86
* .so
87
87
88
- # Distribution / packaging
89
- .Python
90
- build /
91
- develop-eggs /
92
- dist /
93
- downloads /
94
- eggs /
95
- .eggs /
96
- lib /
97
- lib64 /
98
- parts /
99
- sdist /
100
- var /
101
- wheels /
102
- pip-wheel-metadata /
103
- share /python-wheels /
104
- * .egg-info /
105
- .installed.cfg
106
- * .egg
107
- MANIFEST
108
-
109
- # PyInstaller
110
- # Usually these files are written by a python script from a template
111
- # before PyInstaller builds the exe, so as to inject date/other infos into it.
112
- * .manifest
113
- * .spec
114
-
115
- # Installer logs
116
- pip-log.txt
117
- pip-delete-this-directory.txt
118
-
119
- # Unit test / coverage reports
120
- htmlcov /
121
- .tox /
122
- .nox /
123
- .coverage
124
- .coverage. *
125
- .cache
126
- nosetests.xml
127
- coverage.xml
128
- * .cover
129
- * .py,cover
130
- .hypothesis /
131
- .pytest_cache /
132
-
133
- # Translations
134
- * .mo
135
- * .pot
136
-
137
- # Django stuff:
138
- * .log
139
- local_settings.py
140
- db.sqlite3
141
- db.sqlite3-journal
142
-
143
- # Flask stuff:
144
- instance /
145
- .webassets-cache
146
-
147
- # Scrapy stuff:
148
- .scrapy
149
-
150
- # Sphinx documentation
151
- docs /_build /
152
-
153
- # PyBuilder
154
- target /
155
-
156
- # Jupyter Notebook
157
- .ipynb_checkpoints
158
-
159
- # IPython
160
- profile_default /
161
- ipython_config.py
162
-
163
- # pyenv
164
- .python-version
165
-
166
- # pipenv
167
- # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
168
- # However, in case of collaboration, if having platform-specific dependencies or dependencies
169
- # having no cross-platform support, pipenv may install dependencies that don't work, or not
170
- # install all needed dependencies.
171
- # Pipfile.lock
172
-
173
- # celery beat schedule file
174
- celerybeat-schedule
175
-
176
- # SageMath parsed files
177
- * .sage.py
178
-
179
- # Environments
180
- .env
88
+ # virtualenv
181
89
.venv
182
- env /
183
90
venv /
184
91
ENV /
185
- env.bak /
186
- venv.bak /
187
-
188
- # Spyder project settings
189
- .spyderproject
190
- .spyproject
191
-
192
- # Rope project settings
193
- .ropeproject
194
-
195
- # mkdocs documentation
196
- /site
197
92
198
- # mypy
199
- .mypy_cache /
200
- .dmypy.json
201
- dmypy.json
202
-
203
- # Pyre type checker
204
- .pyre /
205
-
206
- # Mac
207
- * .DS_Store
93
+ # Distribution / packaging
94
+ .Python
95
+ dist /
96
+ * .egg-info /
Original file line number Diff line number Diff line change 2
2
3
3
__all__ = [
4
4
'bulk_insert' ,
5
- ]
5
+ ]
Original file line number Diff line number Diff line change 1
- redis == 2.10.6
2
- click >= 6.7
1
+ click >= 7.0
2
+ redis >= 2.10.6
Original file line number Diff line number Diff line change 1
1
from setuptools import setup , find_packages
2
+ import io
3
+
4
+
5
+ def read_all (f ):
6
+ with io .open (f , encoding = "utf-8" ) as io_file :
7
+ return io_file .read ()
8
+
9
+
10
+ requirements = list (map (str .strip , open ("requirements.txt" ).readlines ()))
11
+
12
+
2
13
setup (
3
14
name = 'redisgraph-bulk-loader' ,
4
15
python_requires = '>=3' ,
5
16
version = '0.8.1' ,
17
+ description = 'RedisGraph Bulk Import Tool' ,
18
+ long_description = read_all ("README.md" ),
19
+ url = 'https://github.com/redisgraph/redisgraph-bulk-loader' ,
6
20
packages = find_packages (),
7
- install_requires = [
8
- 'redis' ,
9
- 'click'
21
+ install_requires = requirements ,
22
+ classifiers = [
23
+ 'Development Status :: 4 - Beta' ,
24
+ 'Intended Audience :: Developers' ,
25
+ 'License :: OSI Approved :: BSD License' ,
26
+ 'Programming Language :: Python :: 3.0' ,
27
+ 'Topic :: Database'
10
28
],
29
+ keywords = 'Redis Graph Extension' ,
30
+ author = 'RedisLabs' ,
31
+
32
+
11
33
entry_points = '''
12
34
[console_scripts]
13
35
redisgraph-bulk-loader=redisgraph_bulk_loader.bulk_insert:bulk_insert
14
36
'''
15
- )
37
+ )
You can’t perform that action at this time.
0 commit comments