-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: packaging as well as
rST
& md
document generation
- updates gh-action versions - moves `docs/references` to `docs/api` - ignores all `.md` files for Sphinx build - includes `rST` docs in source control and `sdist` - fixes all Sphinx doc generation warnings/errors - removes `pyaml` & `twine` from dev dependencies
- Loading branch information
Showing
71 changed files
with
449 additions
and
669 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,31 @@ | ||
# MANIFEST.in stays as long as pyproject.toml does not officially support it | ||
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/ | ||
|
||
include docs/* | ||
include .gitignore | ||
# include | ||
include CHANGES.md | ||
include mkdocs.yaml | ||
|
||
|
||
# global-include | ||
|
||
|
||
# recursive-include | ||
recursive-include tests * | ||
recursive-include docs * | ||
|
||
|
||
# graft | ||
|
||
|
||
# exclude | ||
|
||
|
||
# global-exclude | ||
|
||
recursive-exclude docs *.rst | ||
recursive-exclude docs/references *.md | ||
|
||
# recursive-exclude | ||
|
||
|
||
# prune | ||
prune docs/_build | ||
prune **/__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
between | ||
------- | ||
|
||
.. module:: validators.between | ||
.. autofunction:: between |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
btc_address | ||
----------- | ||
|
||
.. module:: validators.btc_address | ||
.. autofunction:: btc_address |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
card | ||
---- | ||
|
||
.. module:: validators.card | ||
.. autofunction:: amex | ||
.. autofunction:: card_number | ||
.. autofunction:: diners | ||
.. autofunction:: discover | ||
.. autofunction:: jcb | ||
.. autofunction:: mastercard | ||
.. autofunction:: unionpay | ||
.. autofunction:: visa |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
country_code | ||
------------ | ||
|
||
.. module:: validators.country_code | ||
.. autofunction:: country_code |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
domain | ||
------ | ||
|
||
.. module:: validators.domain | ||
.. autofunction:: domain |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
----- | ||
|
||
.. module:: validators.email | ||
.. autofunction:: email |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
hashes | ||
------ | ||
|
||
.. module:: validators.hashes | ||
.. autofunction:: md5 | ||
.. autofunction:: sha1 | ||
.. autofunction:: sha224 | ||
.. autofunction:: sha256 | ||
.. autofunction:: sha512 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
hostname | ||
-------- | ||
|
||
.. module:: validators.hostname | ||
.. autofunction:: hostname |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
i18n | ||
---- | ||
|
||
.. module:: validators.i18n | ||
.. autofunction:: es_cif | ||
.. autofunction:: es_doi | ||
.. autofunction:: es_nie | ||
.. autofunction:: es_nif | ||
.. autofunction:: fi_business_id | ||
.. autofunction:: fi_ssn | ||
.. autofunction:: fr_department | ||
.. autofunction:: fr_ssn |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
iban | ||
---- | ||
|
||
.. module:: validators.iban | ||
.. autofunction:: iban |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ip_address | ||
---------- | ||
|
||
.. module:: validators.ip_address | ||
.. autofunction:: ipv4 | ||
.. autofunction:: ipv6 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
length | ||
------ | ||
|
||
.. module:: validators.length | ||
.. autofunction:: length |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
mac_address | ||
----------- | ||
|
||
.. module:: validators.mac_address | ||
.. autofunction:: mac_address |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
slug | ||
---- | ||
|
||
.. module:: validators.slug | ||
.. autofunction:: slug |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
url | ||
--- | ||
|
||
.. module:: validators.url | ||
.. autofunction:: url |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
utils | ||
----- | ||
|
||
.. module:: validators.utils | ||
.. autofunction:: ValidationError | ||
.. autofunction:: validator |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
uuid | ||
---- | ||
|
||
.. module:: validators.uuid | ||
.. autofunction:: uuid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
validators - Python Data Validation for Humans™ | ||
=============================================== | ||
|
||
|PyCQA| |SAST| |Docs| |Version| |Downloads| | ||
|
||
.. raw:: html | ||
|
||
<!-- [![Package][package-badge]][package-link] --> | ||
|
||
Python has all kinds of data validation tools, but every one of them | ||
seems to require defining a schema or form. I wanted to create a simple | ||
validation library where validating a simple value does not require | ||
defining a form or a schema. | ||
|
||
.. code:: python | ||
>>> import validators | ||
>>> | ||
>>> validators.email('someone@example.com') | ||
True | ||
Resources | ||
--------- | ||
|
||
.. raw:: html | ||
|
||
<!-- Temporary documentation URL : https://yozachar.github.io/pyvalidators/ --> | ||
|
||
.. raw:: html | ||
|
||
<!-- Original documentation URL : https://python-validators.github.io/validators/ --> | ||
|
||
- `Documentation <https://yozachar.github.io/pyvalidators/>`__ | ||
- `Bugtracker <https://github.com/python-validators/validators/issues>`__ | ||
- `Security <https://github.com/python-validators/validators/blob/master/SECURITY.md>`__ | ||
- `Code <https://github.com/python-validators/validators/>`__ | ||
|
||
.. raw:: html | ||
|
||
<!-- Original docs URL will be restored, once properly versioned docs is ready. --> | ||
|
||
.. raw:: html | ||
|
||
<!-- Links --> | ||
|
||
.. raw:: html | ||
|
||
<!-- [package-badge]: https://github.com/python-validators/validators/actions/workflows/package.yaml/badge.svg | ||
[package-link]: https://github.com/python-validators/validators/actions/workflows/package.yaml --> | ||
|
||
.. |PyCQA| image:: https://github.com/python-validators/validators/actions/workflows/pycqa.yaml/badge.svg | ||
:target: https://github.com/python-validators/validators/actions/workflows/pycqa.yaml | ||
.. |SAST| image:: https://github.com/python-validators/validators/actions/workflows/sast.yaml/badge.svg | ||
:target: https://github.com/python-validators/validators/actions/workflows/sast.yaml | ||
.. |Docs| image:: https://github.com/yozachar/pyvalidators/actions/workflows/pages/pages-build-deployment/badge.svg | ||
:target: https://github.com/yozachar/pyvalidators/actions/workflows/pages/pages-build-deployment | ||
.. |Version| image:: https://img.shields.io/pypi/v/validators?logo=pypi&logoColor=white&label=version&color=blue | ||
:target: https://pypi.python.org/pypi/validators/ | ||
.. |Downloads| image:: https://img.shields.io/pypi/dm/validators?logo=pypi&logoColor=white&color=blue | ||
:target: https://pypi.python.org/pypi/validators/ | ||
|
||
|
||
.. toctree:: | ||
:hidden: | ||
:maxdepth: 2 | ||
:caption: Reference: | ||
:glob: | ||
|
||
api/* |
Oops, something went wrong.