Skip to content

Commit e85dcd2

Browse files
authored
chore(python): remove unsupported versions and restrict core deps (#29)
* chore(ci): remove unsupported python versions * chore(deps): restrict pandas and numpy * chore(version): bump * style(flake): fixed style issues
1 parent f9a0e1f commit e85dcd2

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.github/workflows/python-package.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: [3.7, 3.8, 3.9]
15+
# https://devguide.python.org/versions/
16+
python-version: [3.9]
1617

1718
steps:
1819
- uses: actions/checkout@v2
@@ -27,7 +28,7 @@ jobs:
2728
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
2829
- name: Lint with flake8
2930
run: |
30-
flake8 . --show-source --count
31+
flake8 . --show-source --count --exclude .venv
3132
- name: Unit Test
3233
run: |
3334
pytest

dgraphpandas/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__name__ = 'dgraphpandas'
2-
__version__ = '0.1.3'
2+
__version__ = '0.1.4'
33
__description__ = 'Transform Pandas DataFrames into Exports to be sent to DGraph'
44

55
from dgraphpandas.rdf import to_rdf # noqa

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
pandas
1+
pandas<2
2+
numpy<2

tests/strategies/test_horizontal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ def test_horizontal_transform_unconverted_date_parts(self, name, date_format, fr
435435
pd.DataFrame(data={
436436
'customer_id': [1, 2, 1, 2],
437437
'predicate': ['dob', 'dob', 'weight', 'weight'],
438-
'object':[pd.to_datetime('2021-03-02 00:00:00'), pd.to_datetime('1945-03-01 00:00:00'), 50, 32]
438+
'object': [pd.to_datetime('2021-03-02 00:00:00'), pd.to_datetime('1945-03-01 00:00:00'), 50, 32]
439439
})
440440
),
441441
###

0 commit comments

Comments
 (0)