Skip to content

Commit

Permalink
Bump up dependencies to allow users to use more recent versions (#334)
Browse files Browse the repository at this point in the history
* chore(deps): bump pytest-timeout from 1.4.2 to 2.3.1 (#324)

Bumps [pytest-timeout](https://github.com/pytest-dev/pytest-timeout) from 1.4.2 to 2.3.1.
- [Commits](pytest-dev/pytest-timeout@1.4.2...2.3.1)

---
updated-dependencies:
- dependency-name: pytest-timeout
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump pytest from 7.4.4 to 8.3.4 (#325)

Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.4.4 to 8.3.4.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](pytest-dev/pytest@7.4.4...8.3.4)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Katarina Supe <[email protected]>

* chore(deps): bump psutil from 5.9.8 to 6.1.1 (#326)

Bumps [psutil](https://github.com/giampaolo/psutil) from 5.9.8 to 6.1.1.
- [Changelog](https://github.com/giampaolo/psutil/blob/master/HISTORY.rst)
- [Commits](giampaolo/psutil@release-5.9.8...release-6.1.1)

---
updated-dependencies:
- dependency-name: psutil
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Katarina Supe <[email protected]>

* chore(deps): bump pytest-black from 0.3.12 to 0.6.0 (#328)

Bumps [pytest-black](https://github.com/coherent-oss/pytest-black) from 0.3.12 to 0.6.0.
- [Commits](coherent-oss/pytest-black@0.3.12...v0.6.0)

---
updated-dependencies:
- dependency-name: pytest-black
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Katarina Supe <[email protected]>

* chore(deps): bump black from 22.12.0 to 24.8.0 (#327)

* chore(deps): bump black from 22.12.0 to 24.8.0

Bumps [black](https://github.com/psf/black) from 22.12.0 to 24.8.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@22.12.0...24.8.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Formatting changes - new black

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Katarina Supe <[email protected]>
Co-authored-by: katarinasupe <[email protected]>

* Add flexible dependenies versioning - no breaking changes

* update lock

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
katarinasupe and dependabot[bot] authored Mar 6, 2025
1 parent 76671ae commit 9a52f3e
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 75 deletions.
6 changes: 2 additions & 4 deletions gqlalchemy/transformations/translators/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@

class Translator(ABC):
# Lambda function to concat list of labels
merge_labels: Callable[[Set[str]], str] = (
lambda labels, default_node_label: LABELS_CONCAT.join([label for label in sorted(labels)])
if len(labels)
else default_node_label
merge_labels: Callable[[Set[str]], str] = lambda labels, default_node_label: (
LABELS_CONCAT.join([label for label in sorted(labels)]) if len(labels) else default_node_label
)

@abstractmethod
Expand Down
16 changes: 10 additions & 6 deletions gqlalchemy/vendors/neo4j.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,16 @@ def get_indexes(self) -> List[Neo4jIndex]:
for result in self.execute_and_fetch("SHOW INDEX;"):
indexes.append(
Neo4jIndex(
result[Neo4jConstants.LABEL][0]
if result[Neo4jConstants.TYPE] != Neo4jConstants.LOOKUP
else result[Neo4jConstants.LABEL],
result[Neo4jConstants.PROPERTIES][0]
if result[Neo4jConstants.TYPE] != Neo4jConstants.LOOKUP
else result[Neo4jConstants.PROPERTIES],
(
result[Neo4jConstants.LABEL][0]
if result[Neo4jConstants.TYPE] != Neo4jConstants.LOOKUP
else result[Neo4jConstants.LABEL]
),
(
result[Neo4jConstants.PROPERTIES][0]
if result[Neo4jConstants.TYPE] != Neo4jConstants.LOOKUP
else result[Neo4jConstants.PROPERTIES]
),
result[Neo4jConstants.TYPE],
result[Neo4jConstants.UNIQUENESS],
)
Expand Down
124 changes: 69 additions & 55 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ exclude = '''
[tool.poetry.dependencies]
python = "^3.8"
pymgclient = "^1.3.1"
networkx = "^3.0"
networkx = ">=2.5.1,<4.0.0"
pydantic = "^2.3.0"
psutil = "^5.9.0"
psutil = ">=5.9,<7.0"
dacite = "^1.6.0"
adlfs = "^2023.9.0"
neo4j = ">=4.4.3"
adlfs = ">=2023.9.0,<2025.0.0"
neo4j = ">=4.4.3,<6.0.0"
numpy = "^1.24.1"

pyarrow = { version = "^13.0.0", optional = true }
Expand All @@ -55,13 +55,13 @@ torch_pyg = ["torch"]
docker = ["docker"]

[tool.poetry.group.dev.dependencies]
black = "^22.3.0"
pytest = "^7.1.1"
pytest-black = "^0.3.12"
pytest-cov = "^2.12.0"
black = ">=22.3.0,<25.0.0"
pytest-black = ">=0.3.12,<0.7.0"
pytest = ">=7.1.1,<9.0.0"
pytest-cov = ">=2.12.0,<4.0.0"
pytest-flake8 = "^1.0.7"
pytest-timeout = "^1.4.2"
pre-commit = "^2.15.0"
pytest-timeout = ">=1.4.2,<3.0.0"
pre-commit = ">=2.15.0,<4.0.0"

[tool.poe.tasks]
install-pyg-cpu = "pip install torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric -f https://data.pyg.org/whl/torch-1.13.0+cpu.html"
Expand Down

0 comments on commit 9a52f3e

Please sign in to comment.