Skip to content

Commit

Permalink
standardize packaging with pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniospneto committed May 11, 2024
1 parent ff9ca81 commit edb9b88
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 16 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
1 change: 1 addition & 0 deletions brazilfiscalreport/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.3.4"
49 changes: 49 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
16 changes: 0 additions & 16 deletions setup.py

This file was deleted.

0 comments on commit edb9b88

Please sign in to comment.