Skip to content

Fetches the latest upstream #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 132 commits into from
Apr 10, 2025
Merged

Fetches the latest upstream #46

merged 132 commits into from
Apr 10, 2025

Conversation

EmberCraze
Copy link
Contributor

No description provided.

arthurdejong and others added 30 commits July 4, 2022 14:36
Nose hasn't seen a release since 2015 and sadly doesn't work with Python
3.10.

See nose-devs/nose#1099
This stops using not as a function and hopefully also makes the logic
clearer.
Update checkout to v3 (no relevant changes) and setup-python to v4
(changes the names for pypy versions).
We have some long URLs in the code (mostly in docstrings) and wrapping
them does not improve readability (and is difficult in docstrings) so
the E501 ignore is now put inside each file instead of globally.

Closes arthurdejong/python-stdnum#302
Improper inflection of plurals.

Closes arthurdejong/python-stdnum#299
This also switches the other Tox jobs to use the latest Python 3.x
interpreter.

Closes arthurdejong/python-stdnum#305
The page currently lists a country without a country code (is listed as
"-"). This also ensures that lists of country codes are handled
consistently.
The number used before was apparently no longer valid.
This currently only checks the length and whether it only contains
digits because little could be found on the structure of the number of
whether there are any check digits.

Closes arthurdejong/python-stdnum#313
Closes arthurdejong/python-stdnum#307
Note that this is implementation is mostly based on unofficial sources
describing the format, which match the hundreds of examples found
online.
https://forum.it.mk/threads/modularna-kontrola-na-embg-edb-dbs-itn.15663/?__cf_chl_tk=Op2PaEIauip6Z.ZjvhP897O8gRVAwe5CDAVTpjx1sEo-1663498930-0-gaNycGzNCRE#post-187048

Also note that the algorithm for the check digit was tested on all found
examples, and it doesn't work for all of them, despite those failing
examples don't seem to be valid according to the official online search.

Closes arthurdejong/python-stdnum#330
Closes arthurdejong/python-stdnum#222
This also applies the fix from cfc80c8 from Python 2.7 to PyPy.
Ollymid and others added 26 commits June 23, 2024 14:16
The Indonesian NPWP is being switched from 15 to 16 digits. The number
is now the NIK for Indonesian citizens and the old format with a leading
0 for others (organisations and non-citizens).

See https://www.grantthornton.co.id/insights/global-insights1/updates-regarding-the-format-of-indonesian-tax-id-numbers/

Closes arthurdejong/python-stdnum#432
Use the inspect.signature() function instead. The inspect.getargspec()
function was removed in Python 3.11.
The timeout parameter of the zeep transport class is not responsable for
POST/GET timeouts. The operational_timeout parameter should be used for
that.

See mvantellingen/python-zeep#140

Closes arthurdejong/python-stdnum#444
Closes arthurdejong/python-stdnum#445
This adds a `verify` argument to all functions that use network services
for lookups. The option is used to configure how certificate validation
works, the same as in the requests library.

For SOAP requests this is implemented properly when using the Zeep
library. The implementations using Suds and PySimpleSOAP have been
updated on a best-effort basis but their use has been deprecated because
they do not seem to work in practice in a lot of cases already.

Related to arthurdejong/python-stdnum#452
Related to arthurdejong/python-stdnum#453
This fixes the get_soap_client() function to cache SOAP clients taking
the verify argument into account.

Fixes 3fcebb2
This silences a ton of ast deprecation warnings that we can't fix in
python-stdnum anyway.
This deprecates the stdnum.util.to_unicode() function because we no
longer have to deal with bytestrings.
It seems that numbers with a format used for juridical RUCs have been
issued to companies.

Closes arthurdejong/python-stdnum#457
It seems that a small minority of numbers assigned with a checksum of 10
are still valid and expected to have a check digit value of 0. According
to https://www.domzo13.cz/sw/evok/help/born_numbers.html this practice
even happended (but less frequently) after 1985.

Closes arthurdejong/python-stdnum#468
There was a change in the SOAP service and there is a new URL. However,
the API has changed and seems to require authentication.

We ignore test failures for now but unless a solution is found the DGII
validation will be removed.

See: arthurdejong/python-stdnum#462
See: arthurdejong/python-stdnum#461
@gustav gustav self-requested a review April 10, 2025 11:11
@EmberCraze EmberCraze merged commit 46dc0cd into master Apr 10, 2025
@EmberCraze EmberCraze deleted the fetch-upstream-maher-1 branch April 10, 2025 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.