Skip to content

Commit

Permalink
Merge pull request #276 from jacobszpz/pyproject
Browse files Browse the repository at this point in the history
Remove setup.py and setup.cfg in favour of pyproject.toml
  • Loading branch information
sanjacob authored Oct 4, 2023
2 parents e6a3477 + 77909fc commit 24ffd51
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 79 deletions.
6 changes: 5 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ version: 2
sphinx:
configuration: docs/conf.py

build:
os: ubuntu-22.04
tools:
python: "3.10"

# Explicitly set the version of Python and its requirements
python:
version: 3.8
install:
- requirements: docs/requirements.txt
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ True

CURP Suite te permite extraer toda la información que contiene una CURP de forma conveniente. Además, toda la validación es automática. CURP Suite está diseñado para dar soporte a toda la especificación oficial de la CURP.

También puede ser invocada desde la terminal

```bash
$ curp SABC560626MDFLRN01
{"curp": "SABC560626MDFLRN01", "sexo": 2, "fecha_nacimiento": "1956-06-26", "entidad_nacimiento": {"name": "Ciudad de México", "iso": "MX-CMX"}}
```





## Instalación
Expand Down
2 changes: 1 addition & 1 deletion curp/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
__summary__ = "Análisis y validación de la CURP Mexicana"
__uri__ = "https://github.com/jacobszpz/CURPSuite"

__version__ = "2.6.0"
__version__ = "2.6.1"

__author__ = "Jacob Sánchez"
__email__ = "jacobszpz@protonmail.com"
Expand Down
59 changes: 59 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
[build-system]
requires = ["setuptools>=61.0", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[project]
name = "CURPSuite"
description = "Análisis y validación de la CURP Mexicana"
dynamic = ["version", "readme"]
authors = [
{ name="Jacob Sánchez", email="jacobszpz@protonmail.com" },
]
requires-python = ">=3.8"
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Legal Industry",
"Intended Audience :: Science/Research",
"Natural Language :: Spanish"
]
dependencies = [
"unidecode"
]
keywords = ["CURP", "validation", "analysis", "Mexico"]

[project.scripts]
curp = "curp.cli:main"

[project.urls]
"Homepage" = "https://curpsuite.readthedocs.io"
"Repository" = "https://github.com/jacobszpz/CURPSuite"

[tool.setuptools.dynamic]
version = {attr = "curp.__about__.__version__"}
readme = {file = ["README.md"], content-type = "text/markdown"}

[project.optional-dependencies]
test = ["pytest", "hypothesis", "coverage"]

[tool.coverage.run]
branch = true

[tool.coverage.report]
omit = [
"*/python?.?/*",
"*/lib-python/?.?/*.py",
"*/pypy/*"
]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:"
]
65 changes: 0 additions & 65 deletions setup.cfg

This file was deleted.

12 changes: 0 additions & 12 deletions setup.py

This file was deleted.

0 comments on commit 24ffd51

Please sign in to comment.