|
| 1 | +[build-system] |
| 2 | +requires = ["hatchling"] |
| 3 | +build-backend = "hatchling.build" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "babel" |
| 7 | +dynamic = ["version"] |
| 8 | +description = "Internationalization utilities" |
| 9 | +readme = "README.rst" |
| 10 | +license = "BSD-3-Clause" |
| 11 | +license-files = ["LICENSE"] |
| 12 | +requires-python = ">=3.8" |
| 13 | +authors = [ |
| 14 | + { name = "Armin Ronacher", email = "[email protected]" }, |
| 15 | +] |
| 16 | +maintainers = [ |
| 17 | + { name = "Aarni Koskela", email = "[email protected]" }, |
| 18 | +] |
| 19 | +classifiers = [ |
| 20 | + "Development Status :: 5 - Production/Stable", |
| 21 | + "Environment :: Web Environment", |
| 22 | + "Intended Audience :: Developers", |
| 23 | + "License :: OSI Approved :: BSD License", |
| 24 | + "Operating System :: OS Independent", |
| 25 | + "Programming Language :: Python :: 3 :: Only", |
| 26 | + "Programming Language :: Python :: 3", |
| 27 | + "Programming Language :: Python :: 3.8", |
| 28 | + "Programming Language :: Python :: 3.9", |
| 29 | + "Programming Language :: Python :: 3.10", |
| 30 | + "Programming Language :: Python :: 3.11", |
| 31 | + "Programming Language :: Python :: 3.12", |
| 32 | + "Programming Language :: Python :: 3.13", |
| 33 | + "Programming Language :: Python :: Implementation :: CPython", |
| 34 | + "Programming Language :: Python :: Implementation :: PyPy", |
| 35 | + "Programming Language :: Python", |
| 36 | + "Topic :: Software Development :: Internationalization", |
| 37 | + "Topic :: Software Development :: Libraries :: Python Modules", |
| 38 | +] |
| 39 | + |
| 40 | +dependencies = [ |
| 41 | + # This version identifier is currently necessary as |
| 42 | + # pytz otherwise does not install on pip 1.4 or higher. |
| 43 | + # Python 3.9 and later include zoneinfo which replaces pytz. |
| 44 | + 'pytz>=2015.7; python_version<"3.9"', |
| 45 | +] |
| 46 | + |
| 47 | +[project.optional-dependencies] |
| 48 | +# TODO: use a `dev` dependency group instead |
| 49 | +dev = [ |
| 50 | + "backports.zoneinfo; python_version<\"3.9\"", |
| 51 | + "freezegun~=1.0", |
| 52 | + "jinja2>=3.0", |
| 53 | + "pytest-cov", |
| 54 | + "pytest>=6.0", |
| 55 | + "pytz", |
| 56 | + "setuptools", |
| 57 | + "tzdata;sys_platform == 'win32'", |
| 58 | +] |
| 59 | + |
| 60 | +[project.urls] |
| 61 | +Homepage = "https://babel.pocoo.org/" |
| 62 | +Source = "https://github.com/python-babel/babel" |
| 63 | + |
| 64 | +[tool.hatch.version] |
| 65 | +path = "babel/__init__.py" |
| 66 | + |
| 67 | +[tool.hatch.build.hooks.custom] |
| 68 | + |
| 69 | +[tool.hatch.build.targets.sdist] |
| 70 | +include = [ |
| 71 | + "/Makefile", |
| 72 | + "/babel", |
| 73 | + "/docs", |
| 74 | + "/scripts", |
| 75 | + "/tests", |
| 76 | + "AUTHORS", |
| 77 | + "CHANGES.rst", |
| 78 | + "conftest.py", |
| 79 | + "tox.ini", |
| 80 | +] |
| 81 | + |
| 82 | +[tool.hatch.build.targets.wheel] |
| 83 | +include = [ |
| 84 | + "/babel", |
| 85 | +] |
| 86 | +artifacts = [ |
| 87 | + "**.dat", |
| 88 | +] |
| 89 | +exclude = [ |
| 90 | + "/babel/locale-data/.gitignore", |
| 91 | +] |
| 92 | + |
| 93 | +[project.scripts] |
| 94 | +pybabel = "babel.messages.frontend:main" |
| 95 | + |
| 96 | +[project.entry-points."distutils.commands"] |
| 97 | +compile_catalog = "babel.messages.setuptools_frontend:compile_catalog" |
| 98 | +extract_messages = "babel.messages.setuptools_frontend:extract_messages" |
| 99 | +init_catalog = "babel.messages.setuptools_frontend:init_catalog" |
| 100 | +update_catalog = "babel.messages.setuptools_frontend:update_catalog" |
| 101 | + |
| 102 | +[project.entry-points."distutils.setup_keywords"] |
| 103 | +message_extractors = "babel.messages.setuptools_frontend:check_message_extractors" |
| 104 | + |
| 105 | +[project.entry-points."babel.checkers"] |
| 106 | +num_plurals = "babel.messages.checkers:num_plurals" |
| 107 | +python_format = "babel.messages.checkers:python_format" |
| 108 | + |
| 109 | +[project.entry-points."babel.extractors"] |
| 110 | +ignore = "babel.messages.extract:extract_nothing" |
| 111 | +python = "babel.messages.extract:extract_python" |
| 112 | +javascript = "babel.messages.extract:extract_javascript" |
| 113 | + |
1 | 114 | [tool.ruff] |
2 | 115 | target-version = "py38" |
3 | 116 | extend-exclude = [ |
|
0 commit comments