Code Monkey home page Code Monkey logo

rfc3339-validator's People

Contributors

dependabot[bot] avatar felixonmars avatar musicinmybrain avatar naimetti avatar nicola-lunghi avatar rmcgibbo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

rfc3339-validator's Issues

python 2 support

Do you mind to drop python 2 support, e. g. remove six dependency?

0.1.4: pyetst warnings

Looms like latest pytest shows some warnings:

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-rfc3339_validator-0.1.4-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-rfc3339_validator-0.1.4-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.12, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/rfc3339-validator-0.1.4, configfile: setup.cfg
plugins: cov-3.0.0, hypothesis-6.36.0
collected 3 items

tests/test_rfc3339_validator.py ...                                                                                                                                  [100%]

============================================================================= warnings summary =============================================================================
../../../../../usr/lib/python3.8/site-packages/_pytest/config/__init__.py:1233
  /usr/lib/python3.8/site-packages/_pytest/config/__init__.py:1233: PytestConfigWarning: Unknown config option: collect_ignore

    self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")

-- Docs: https://docs.pytest.org/en/stable/warnings.html
====================================================================== 3 passed, 1 warning in 10.31s =======================================================================

Time offset is mandatory

Hi,

I am using this library indirectly through another one.

I was noticing that the time-offset indicator whetzer it is Z or an actual offset is mandatory. However at least in ISO 8601 this is optional. Is there any way there can be a parameter where the time-offset validation can be optional?

Consider dropping the pytest-runner test dependency

  • rfc3339-validator version: 0.1.4
  • Python version: any
  • Operating System: any

Description

The pytest-runner package is deprecated upstream. Its README now advises:

pytest-runner depends on deprecated features of setuptools and relies on features that break security mechanisms in pip. For example ‘setup_requires’ and ‘tests_require’ bypass pip --require-hashes. See also pypa/setuptools#1684.

It is recommended that you:

  • Remove 'pytest-runner' from your setup_requires, preferably removing the setup_requires option.
  • Remove 'pytest' and any other testing requirements from tests_require, preferably removing the tests_requires option.
  • Select a tool to bootstrap and then run tests such as tox.

This came up in a review of a proposed python-rfc3339-validator package for Fedora Linux.

What I Did

  • Followed pytest-runner upstream’s advice (leaving the already-empty setup_requires for now).
  • Verified I can still run the tests with tox.

I also tried to run the tests with pip install -r requirements_dev.txt followed by python -m pytest or pytest, but this didn’t work on Python 3.10 because of the old pinned versions in requirements_dev.txt. However, after pip install --upgrade pip tox coverage pytest hypothesis strict_rfc3339, I was able to run the tests this way too.

I will offer these suggested changes as a PR.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.