Skip to content

Commit cb813ac

Browse files
Migrate pyproject.toml to standard PEP 621 project metadata
1 parent 2fb0a94 commit cb813ac

2 files changed

Lines changed: 21 additions & 20 deletions

File tree

‎poetry.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pyproject.toml‎

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
[tool.poetry]
1+
[project]
2+
name = 'ipregistry'
3+
version = '5.0.0'
4+
description = 'Official Python library for Ipregistry'
25
authors = [
3-
'Ipregistry Team <support@ipregistry.co>',
4-
'Laurent Pellegrino <laurent.pellegrino@ipregistry.co>'
6+
{name = 'Ipregistry Team', email = 'support@ipregistry.co'},
7+
{name = 'Laurent Pellegrino', email = 'laurent.pellegrino@ipregistry.co'}
58
]
6-
description = 'Official Python library for Ipregistry'
7-
homepage = 'https://ipregistry.co'
9+
license = 'Apache-2.0'
10+
readme = 'README.md'
11+
requires-python = '>=3.10'
812
keywords = [
913
'ipinfo',
1014
'ipregistry',
@@ -14,21 +18,18 @@ keywords = [
1418
'threat-detection',
1519
'user-agent-parsing'
1620
]
17-
name = 'ipregistry'
18-
license = 'Apache-2.0'
19-
readme = 'README.md'
20-
repository = 'https://github.com/ipregistry/ipregistry-python'
21-
version = '5.0.0'
21+
dependencies = [
22+
'cachetools (>=7.1.4,<8.0.0)',
23+
'pydantic (>=2.13.4,<3.0.0)',
24+
'requests (>=2.34.2,<3.0.0)'
25+
]
2226

23-
[tool.poetry.dependencies]
24-
cachetools = '^7.1.4'
25-
pydantic = "^2.13.4"
26-
python = '>=3.10'
27-
requests = '^2.34.2'
28-
httpx = {version = "^0.28.1", optional = true}
27+
[project.optional-dependencies]
28+
async = ['httpx (>=0.28.1,<0.29.0)']
2929

30-
[tool.poetry.extras]
31-
async = ["httpx"]
30+
[project.urls]
31+
Homepage = 'https://ipregistry.co'
32+
Repository = 'https://github.com/ipregistry/ipregistry-python'
3233

3334
[tool.poetry.group.dev.dependencies]
3435
pytest = '>=9.1.1'
@@ -45,5 +46,5 @@ select = ["E", "F", "W"]
4546
ignore = ["F403", "F405"]
4647

4748
[build-system]
48-
requires = ["poetry-core"]
49+
requires = ["poetry-core>=2.0.0"]
4950
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)