@@ -36,18 +36,21 @@ class CoboCli < Formula
3636 end
3737
3838 resource "charset-normalizer" do
39- url "https://files.pythonhosted.org/packages/f2/4f/e1808dc01273379acc506d18f1504eb2d299bd4131743b9fc54d7be4df1e /charset_normalizer-3.4.0 .tar.gz"
40- sha256 "223217c3d4f82c3ac5e29032b3f1c2eb0fb591b72161f86d93f5719079dae93e "
39+ url "https://files.pythonhosted.org/packages/16/b0/572805e227f01586461c80e0fd25d65a2115599cc9dad142fee4b747c357 /charset_normalizer-3.4.1 .tar.gz"
40+ sha256 "44251f18cd68a75b56585dd00dae26183e102cd5e0f9f1466e6df5da2ed64ea3 "
4141 end
4242
4343 resource "click" do
44- url "https://files.pythonhosted.org/packages/96/d3/f04c7bfcf5c1862a2a5b845c6b2b360488cf47af55dfa79c98f6a6bf98b5 /click-8.1.7 .tar.gz"
45- sha256 "ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de "
44+ url "https://files.pythonhosted.org/packages/b9/2e/0090cbf739cee7d23781ad4b89a9894a41538e4fcf4c31dcdd705b78eb8b /click-8.1.8 .tar.gz"
45+ sha256 "ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a "
4646 end
4747
4848 resource "dataclasses-json" do
4949 url "https://files.pythonhosted.org/packages/64/a4/f71d9cf3a5ac257c993b5ca3f93df5f7fb395c725e7f1e6479d2514173c3/dataclasses_json-0.6.7.tar.gz"
5050 sha256 "b6b3e528266ea45b9535223bc53ca645f5208833c29229e847b3f26a1cc55fc0"
51+
52+ # poetry 2.0 build patch, upstream pr ref, https://github.com/lidatong/dataclasses-json/pull/554
53+ patch :DATA
5154 end
5255
5356 resource "dnspython" do
@@ -61,13 +64,13 @@ class CoboCli < Formula
6164 end
6265
6366 resource "gitdb" do
64- url "https://files.pythonhosted.org/packages/19/0d/bbb5b5ee188dec84647a4664f3e11b06ade2bde568dbd489d9d64adef8ed /gitdb-4.0.11 .tar.gz"
65- sha256 "bf5421126136d6d0af55bc1e7c1af1c397a34f5b7bd79e776cd3e89785c2b04b "
67+ url "https://files.pythonhosted.org/packages/72/94/63b0fc47eb32792c7ba1fe1b694daec9a63620db1e313033d18140c2320a /gitdb-4.0.12 .tar.gz"
68+ sha256 "5ef71f855d191a3326fcfbc0d5da835f26b13fbcba60c32c21091c349ffdb571 "
6669 end
6770
6871 resource "gitpython" do
69- url "https://files.pythonhosted.org/packages/b6/a1/106fd9fa2dd989b6fb36e5893961f82992cf676381707253e0bf93eb1662/GitPython -3.1.43 .tar.gz"
70- sha256 "35f314a9f878467f5453cc1fee295c3e18e52f1b99f10f6cf5b1682e968a9e7c "
72+ url "https://files.pythonhosted.org/packages/c0/89/37df0b71473153574a5cdef8f242de422a0f5d26d7a9e231e6f169b4ad14/gitpython -3.1.44 .tar.gz"
73+ sha256 "c87e30b26253bf5418b01b0660f818967f3c503193838337fe5e573331249269 "
7174 end
7275
7376 resource "idna" do
@@ -76,8 +79,8 @@ class CoboCli < Formula
7679 end
7780
7881 resource "marshmallow" do
79- url "https://files.pythonhosted.org/packages/6d/30/14d8609f65c8aeddddd3181c06d2c9582da6278f063b27c910bbf9903441 /marshmallow-3.23.1 .tar.gz"
80- sha256 "3a8dfda6edd8dcdbf216c0ede1d1e78d230a6dc9c5a088f58c4083b974a0d468 "
82+ url "https://files.pythonhosted.org/packages/bd/5c/cbfa41491d6c83b36471f2a2f75602349d20a8f88afd94f83c1e68bbc298 /marshmallow-3.25.0 .tar.gz"
83+ sha256 "5ba94a4eb68894ad6761a505eb225daf7e5cb7b4c32af62d4a45e9d42665bc31 "
8184 end
8285
8386 resource "mypy-extensions" do
@@ -96,18 +99,18 @@ class CoboCli < Formula
9699 end
97100
98101 resource "pydantic" do
99- url "https://files.pythonhosted.org/packages/45/0f/27908242621b14e649a84e62b133de45f84c255eecb350ab02979844a788 /pydantic-2.10.3 .tar.gz"
100- sha256 "cb5ac360ce894ceacd69c403187900a02c4b20b693a9dd1d643e1effab9eadf9 "
102+ url "https://files.pythonhosted.org/packages/6a/c7/ca334c2ef6f2e046b1144fe4bb2a5da8a4c574e7f2ebf7e16b34a6a2fa92 /pydantic-2.10.5 .tar.gz"
103+ sha256 "278b38dbbaec562011d659ee05f63346951b3a248a6f3642e1bc68894ea2b4ff "
101104 end
102105
103106 resource "pydantic-core" do
104- url "https://files.pythonhosted.org/packages/a6/9f/7de1f19b6aea45aeb441838782d68352e71bfa98ee6fa048d5041991b33e /pydantic_core-2.27.1 .tar.gz"
105- sha256 "62a763352879b84aa31058fc931884055fd75089cccbd9d58bb6afd01141b235 "
107+ url "https://files.pythonhosted.org/packages/fc/01/f3e5ac5e7c25833db5eb555f7b7ab24cd6f8c322d3a3ad2d67a952dc0abc /pydantic_core-2.27.2 .tar.gz"
108+ sha256 "eb026e5a4c1fee05726072337ff51d1efb6f59090b7da90d30ea58625b1ffb39 "
106109 end
107110
108111 resource "pydantic-settings" do
109- url "https://files.pythonhosted.org/packages/86/41/19b62b99e7530cfa1d6ccd16199afd9289a12929bef1a03aa4382b22e683 /pydantic_settings-2.7.0 .tar.gz"
110- sha256 "ac4bfd4a36831a48dbf8b2d9325425b549a0a6f18cea118436d728eb4f1c4d66 "
112+ url "https://files.pythonhosted.org/packages/73/7b/c58a586cd7d9ac66d2ee4ba60ca2d241fa837c02bca9bea80a9a8c3d22a9 /pydantic_settings-2.7.1 .tar.gz"
113+ sha256 "10c9caad35e64bfb3c2fbf70a078c0e25cc92499782e5200747f942a065dec93 "
111114 end
112115
113116 resource "pynacl" do
@@ -131,8 +134,8 @@ class CoboCli < Formula
131134 end
132135
133136 resource "smmap" do
134- url "https://files.pythonhosted.org/packages/88/04/b5bf6d21dc4041000ccba7eb17dd3055feb237e7ffc2c20d3fae3af62baa /smmap-5.0.1 .tar.gz"
135- sha256 "dceeb6c0028fdb6734471eb07c0cd2aae706ccaecab45965ee83f11c8d3b1f62 "
137+ url "https://files.pythonhosted.org/packages/44/cd/a040c4b3119bbe532e5b0732286f805445375489fceaec1f48306068ee3b /smmap-5.0.2 .tar.gz"
138+ sha256 "26ea65a03958fa0c8a1c7e8c7a58fdc77221b8910f6be2131affade476898ad5 "
136139 end
137140
138141 resource "tomli" do
@@ -156,15 +159,21 @@ class CoboCli < Formula
156159 end
157160
158161 resource "urllib3" do
159- url "https://files.pythonhosted.org/packages/ed /63/22ba4ebfe7430b76388e7cd448d5478814d3032121827c12a2cc287e2260 /urllib3-2.2.3 .tar.gz"
160- sha256 "e7d814a81dad81e6caf2ec9fdedb284ecc9c73076b62654547cc64ccdcae26e9 "
162+ url "https://files.pythonhosted.org/packages/aa /63/e53da845320b757bf29ef6a9062f5c669fe997973f966045cb019c3f4b66 /urllib3-2.3.0 .tar.gz"
163+ sha256 "f8c5449b3cf0861679ce7e0503c7b44b5ec981bec0d1d3795a07f1ba96f0204d "
161164 end
162165
163166 resource "websocket-client" do
164167 url "https://files.pythonhosted.org/packages/e6/30/fba0d96b4b5fbf5948ed3f4681f7da2f9f64512e1d303f94b4cc174c24a5/websocket_client-1.8.0.tar.gz"
165168 sha256 "3239df9f44da632f96012472805d40a23281a991027ce11d2f45a6f24ac4c3da"
166169 end
167170
171+ # add poetry 2.0 build patch, upstream pr ref, https://github.com/CoboGlobal/cobo-cli/pull/8
172+ patch do
173+ url "https://github.com/CoboGlobal/cobo-cli/commit/a1b5c015ddbf9f635cb0d9638e879a909f4dba12.patch?full_index=1"
174+ sha256 "d54e9fc183662e780b42ae4c84d31da04e10183599295ca36672e6048e2377e9"
175+ end
176+
168177 def install
169178 virtualenv_install_with_resources
170179
@@ -177,3 +186,47 @@ def install
177186 assert_match version . to_s , shell_output ( "#{ bin } /cobo version" )
178187 end
179188end
189+
190+ __END__
191+ diff --git a/pyproject.toml b/pyproject.toml
192+ index 93c5f21..9521dfe 100644
193+ --- a/pyproject.toml
194+ +++ b/pyproject.toml
195+ @@ -1,12 +1,24 @@
196+ -[tool.poetry]
197+ +[project]
198+ name = "dataclasses-json"
199+ version = "0.6.7"
200+ description = "Easily serialize dataclasses to and from JSON."
201+ -authors = ["Charles Li <
[email protected] >"]
202+ -maintainers = ['Charles Li <
[email protected] >', 'Georgiy Zubrienko <
[email protected] >', 'Vitaliy Savitskiy <
[email protected] >', 'Matthias Als <
[email protected] >']
203+ +authors = [
204+ + { "name" = "Charles Li", "email" = "
[email protected] " },
205+ +]
206+ +maintainers = [
207+ + { "name" = "Charles Li", "email" = "
[email protected] " },
208+ + { "name" = "Georgiy Zubrienko", "email" = "
[email protected] " },
209+ + { "name" = "Vitaliy Savitskiy", "email" = "
[email protected] " },
210+ + { "name" = "Matthias Als", "email" = "
[email protected] >" },
211+ +]
212+ license = 'MIT'
213+ readme = "README.md"
214+ -repository = 'https://github.com/lidatong/dataclasses-json'
215+ +
216+ +[project.urls]
217+ +Repository = 'https://github.com/lidatong/dataclasses-json'
218+ +Changelog = "https://github.com/lidatong/dataclasses-json/releases"
219+ +Documentation = "https://lidatong.github.io/dataclasses-json/"
220+ +Issues = "https://github.com/lidatong/dataclasses-json/issues"
221+
222+ [tool.poetry.dependencies]
223+ python = "^3.7"
224+ @@ -32,8 +44,3 @@ build-backend = "poetry_dynamic_versioning.backend"
225+
226+ [tool.poetry-dynamic-versioning]
227+ enable = false
228+ -
229+ -[tool.poetry.urls]
230+ -changelog = "https://github.com/lidatong/dataclasses-json/releases"
231+ -documentation = "https://lidatong.github.io/dataclasses-json/"
232+ -issues = "https://github.com/lidatong/dataclasses-json/issues"
0 commit comments