Skip to content

Commit

Permalink
Move project metadata to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Nov 1, 2023
1 parent 32d9fb8 commit 54b5356
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 30 deletions.
1 change: 1 addition & 0 deletions dev-bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ if [ -n "$(git status --porcelain)" ]; then
fi

perl -pi -e "s/(?<=__version__ = \").+?(?=\")/$version/gsm" maxminddb/__init__.py
perl -pi -e "s/(?<=^version = \").+?(?=\")/$version/gsm" pyproject.toml

echo $"Test results:"
tox
Expand Down
42 changes: 40 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,44 @@
# We should probably migrate most of setup.cfg here
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
name = "maxminddb"
version = "2.4.0"
description = "Reader for the MaxMind DB format"
authors = [
{name = "Gregory Oschwald", email = "[email protected]"},
]
dependencies = [
"setuptools>=68.2.2",
]
requires-python = ">=3.8"
readme = "README.rst"
license = {text = "Apache License, Version 2.0"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Internet",
"Topic :: Internet :: Proxy Servers",
]

[project.urls]
Homepage = "http://www.maxmind.com/"
Documentation = "https://maxminddb.readthedocs.org/"
"Source Code" = "https://github.com/maxmind/MaxMind-DB-Reader-python"
"Issue Tracker" = "https://github.com/maxmind/MaxMind-DB-Reader-python/issues"

[tool.black]
# src is showing up in our GitHub linting builds. It seems to
# contain deps.
extend-exclude = '^/src/'
extend-exclude = '^/src/'
28 changes: 0 additions & 28 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,6 @@ extend-ignore = E203
# black uses 88 : ¯\_(ツ)_/¯
max-line-length = 88

[metadata]
name = maxminddb
author = Gregory Oschwald
author_email = [email protected]
license = Apache License, Version 2.0
description = Reader for the MaxMind DB format
url = http://www.maxmind.com/
long_description = file: README.rst
classifiers =
Development Status :: 5 - Production/Stable
Environment :: Web Environment
Intended Audience :: Developers
Intended Audience :: System Administrators
License :: OSI Approved :: Apache Software License
Programming Language :: Python :: 3
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python
Topic :: Internet :: Proxy Servers
Topic :: Internet
project_urls =
Documentation = https://maxminddb.readthedocs.org/
Source Code = https://github.com/maxmind/MaxMind-DB-Reader-python
Issue Tracker = https://github.com/maxmind/MaxMind-DB-Reader-python/issues

[options]
package_dir =
maxminddb = maxminddb
Expand Down

0 comments on commit 54b5356

Please sign in to comment.