|
1 | 1 | # Python Project Configuration
|
2 | 2 | #
|
3 | 3 | # Documentation:
|
| 4 | +# - https://packaging.python.org/en/latest/specifications/pyproject-toml/ |
| 5 | +# (https://github.com/pypa/packaging.python.org/blob/caa20073/source/specifications/pyproject-toml.rst) |
4 | 6 | # - https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/
|
5 |
| -# - https://github.com/pypa/pip/blob/23.2.1/docs/html/reference/build-system/pyproject-toml.md |
6 |
| -# - https://packaging.python.org/en/latest/specifications/declaring-project-metadata/ |
7 |
| -# - https://github.com/pypa/packaging.python.org/blob/df2c8b22/source/specifications/declaring-project-metadata.rst |
| 7 | +# (https://github.com/pypa/pip/blob/24.2/docs/html/reference/build-system/pyproject-toml.md) |
| 8 | +# - https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html |
| 9 | +# (https://github.com/pypa/setuptools/blob/v70.3.0/docs/userguide/pyproject_config.rst) |
8 | 10 |
|
9 | 11 | [build-system]
|
10 | 12 | requires = [
|
11 |
| - "setuptools==65.5.1", |
12 |
| - "wheel==0.41.3", |
| 13 | + "setuptools==70.3.0", |
| 14 | + "wheel==0.44.0", |
13 | 15 | ]
|
14 |
| -build-backend = "setuptools.build_meta:__legacy__" |
| 16 | +build-backend = "setuptools.build_meta" |
| 17 | + |
| 18 | +[project] |
| 19 | +name = "cl-sii" |
| 20 | +dependencies = [ |
| 21 | + "cryptography>=38.0.0", |
| 22 | + "defusedxml>=0.6.0,<1", |
| 23 | + "jsonschema>=3.1.1", |
| 24 | + "lxml>=4.6.5,<6", |
| 25 | + "marshmallow>=3,<4", |
| 26 | + "pydantic>=2.3.0,!=1.7.*,!=1.8.*,!=1.9.*", |
| 27 | + "pyOpenSSL>=22.0.0", |
| 28 | + "pytz>=2019.3", |
| 29 | + "signxml>=3.1.0", |
| 30 | +] |
| 31 | +requires-python = ">=3.8, <3.11" |
| 32 | +authors = [ |
| 33 | + { name = "Fyntex TI SpA", email = "[email protected]"}, |
| 34 | +] |
| 35 | +description = "Python library for Servicio de Impuestos Internos (SII) of Chile." |
| 36 | +readme = "README.md" |
| 37 | +license = {text = "MIT"} |
| 38 | +classifiers = [ |
| 39 | + # See https://pypi.org/classifiers/ |
| 40 | + "Development Status :: 3 - Alpha", |
| 41 | + "Intended Audience :: Developers", |
| 42 | + "License :: OSI Approved :: MIT License", |
| 43 | + "Natural Language :: English", |
| 44 | + "Programming Language :: Python :: 3", |
| 45 | + "Programming Language :: Python :: 3.8", |
| 46 | + "Programming Language :: Python :: 3.9", |
| 47 | + "Programming Language :: Python :: 3.10", |
| 48 | +] |
| 49 | +dynamic = ["version"] |
| 50 | + |
| 51 | +[project.optional-dependencies] |
| 52 | +django = ["Django>=2.2.24"] |
| 53 | +django-filter = ["django-filter>=24.2"] |
| 54 | +djangorestframework = ["djangorestframework>=3.10.3,<3.16"] |
| 55 | + |
| 56 | +[project.urls] |
| 57 | +Homepage = "https://github.com/fyntex/lib-cl-sii-python" |
| 58 | +Changelog = "https://github.com/fyntex/lib-cl-sii-python/blob/develop/HISTORY.md" |
| 59 | + |
| 60 | +[tool.setuptools] |
| 61 | +include-package-data = true |
| 62 | +zip-safe = false |
| 63 | + |
| 64 | +[tool.setuptools.packages.find] |
| 65 | +where = ["src"] |
| 66 | +include = ["*"] |
| 67 | +exclude = [ |
| 68 | + "scripts", |
| 69 | + "tests*", |
| 70 | +] |
| 71 | +namespaces = true |
| 72 | + |
| 73 | +[tool.setuptools.package-data] |
| 74 | +# note: the "typing information" of this project's packages is not made available to its users |
| 75 | +# automatically; it needs to be packaged and distributed. The way to do so is fairly new and |
| 76 | +# it is specified in PEP 561 - "Distributing and Packaging Type Information". |
| 77 | +# See: |
| 78 | +# - https://www.python.org/dev/peps/pep-0561/#packaging-type-information |
| 79 | +# - https://github.com/python/typing/issues/84 |
| 80 | +# - https://github.com/python/mypy/issues/3930 |
| 81 | +# warning: remember to replicate this in the manifest file for source distribution ('MANIFEST.in'). |
| 82 | +cl_sii = [ |
| 83 | + # Indicates that the "typing information" of the package should be distributed. |
| 84 | + "py.typed", |
| 85 | + # Data files that are not in a sub-package. |
| 86 | + "data/cte/schemas-json/*.schema.json", |
| 87 | + "data/ref/factura_electronica/schemas-xml/*.xsd", |
| 88 | +] |
| 89 | + |
| 90 | +[tool.setuptools.dynamic] |
| 91 | +version = {attr = "cl_sii.__version__"} |
| 92 | + |
| 93 | +[tool.distutils.bdist_wheel] |
| 94 | +universal = false |
0 commit comments