Skip to content

Commit

Permalink
Migrate latest Hy 1.0a4 with Hyrule
Browse files Browse the repository at this point in the history
  • Loading branch information
MonsieurV committed Feb 6, 2022
1 parent a1a97df commit 5be6ebf
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 182 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.3.0

* Migrate to [Hy 1.0a4](https://github.com/hylang/hy/releases/tag/1.0a4) and support Python 3.10

# 0.2.2

* Fix counts optional prestations inside sections for `optional_prestations`
Expand Down
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ name = "pypi"
[packages]
hy = ">=1.0a2"
toolz = "*"
hyrule = "*"

[dev-packages]
black = "*"
Expand Down
293 changes: 115 additions & 178 deletions Pipfile.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name="tqwgp-parser",
version="0.2.2",
version="0.3.0",
url="https://github.com/YtoTech/talk-quote-work-getpaid-parser",
license="AGPL-3.0",
author="Yoan Tournade",
Expand All @@ -24,5 +24,5 @@
},
zip_safe=False,
platforms="any",
install_requires=["hy>=1.0a2", "toolz"],
install_requires=["hy>=1.0a4", "toolz", "hyrule"],
)
3 changes: 2 additions & 1 deletion tqwgp_parser/parser.hy
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
:copyright: (c) 2017-2021 Yoan Tournade.
"""
(import os)
(import [.utils [*]])
(import .utils *)
(import hyrule [reduce])

;; Data parsing and normalization.

Expand Down
3 changes: 2 additions & 1 deletion tqwgp_parser/utils.hy
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
; (require [hy.extra.anaphoric [ap-each]])

(import copy)
(import [toolz.itertoolz [drop]])
(import toolz.itertoolz [drop])
(require hyrule [assoc])

; Predicates.

Expand Down

0 comments on commit 5be6ebf

Please sign in to comment.