diff --git a/README.md b/README.md index 0e7e5a9..8874520 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ This library is currently in the beta stage of development. While it has many of ## Dependencies: - [FPDF2](https://github.com/py-pdf/fpdf2) - PDF creation library for Python +- phonenumbers +- python-barcode ## To install: diff --git a/brazilfiscalreport/__init__.py b/brazilfiscalreport/__init__.py index e69de29..334b899 100644 --- a/brazilfiscalreport/__init__.py +++ b/brazilfiscalreport/__init__.py @@ -0,0 +1 @@ +__version__ = "0.3.4" diff --git a/pyproject.toml b/pyproject.toml index 98c6d9f..f12f11f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,52 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" + +[tool.setuptools.packages.find] +include = ["brazilfiscalreport*"] + +[project] +name = "BrazilFiscalReport" +dynamic = ["version"] +description = "Python library for generating Brazilian auxiliary fiscal documents in PDF from XML documents." +authors = [{ name = "Engenere" }] +keywords = [ + "nfe", "danfe", "xml", "pdf", "documento", "fiscal", "auxiliar", "converter", "generator", "cce", "dacce" +] +license = { file = "LICENSE" } +classifiers = [ + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: GNU Affero General Public License v3", + "Operating System :: OS Independent", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", + "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 :: 3.13", + "Topic :: Software Development :: Libraries :: Python Modules" +] +requires-python = ">=3.8" +dependencies = [ + "fpdf2", + "phonenumbers", + "python-barcode" +] + +[project.readme] +file = "README.md" +content-type = "text/markdown" + +[project.urls] +homepage = "https://github.com/Engenere/BrazilFiscalReport" + +[tool.setuptools.dynamic] +version = {attr = "brazilfiscalreport.__version__"} + [tool.ruff] target-version = "py38" diff --git a/setup.py b/setup.py deleted file mode 100644 index a32182d..0000000 --- a/setup.py +++ /dev/null @@ -1,16 +0,0 @@ -from setuptools import find_packages, setup - -setup( - name="BrazilFiscalReport", - version="0.3.3", - long_description=""" - Python library for generating Brazilian auxiliary - fiscal documents in PDF from XML documents. - """, - url="https://github.com/Engenere/BrazilFiscalReport", - author="Engenere", - keywords="brazil fiscal report", - packages=find_packages(), - license="AGPL-3.0", - install_requires=["fpdf2", "phonenumbers", "python-barcode"], -)