1. 06 Jan, 2020 2 commits
  2. 27 Dec, 2019 1 commit
  3. 26 Dec, 2019 1 commit
  4. 24 Dec, 2019 1 commit
  5. 23 Dec, 2019 4 commits
    • Aymeric Augustin's avatar
      Remove stray egg-info directory automatically. · 7a865821
      Aymeric Augustin authored
      If a user or contributor ran `pip install -e .` on transformers < 3.0,
      pip created a transformers.egg-info directory next to the transformers
      directory at the root of the repository.
      
      In transformers 3.0, the source is in a `src` subdirectory.
      `pip install -e .` creates a transformers.egg-info directory there.
      However, pip will still pick transformers.egg-info from the previous
      location. This is a bug: https://github.com/pypa/pip/issues/5466
      
      Users and contributors are likely to hit this problem because the
      documentation for transformers 3.0 relies heavily on extra_requires
      which didn't exist in earlier versions, so aren't defined in a stale
      transformers.egg-info directory.
      
      If such a directory exists, remove it. It's autogenerated, gitignored
      and not supposed to contain anything of value.
      7a865821
    • Aymeric Augustin's avatar
      Remove requirements.txt. · d73eb552
      Aymeric Augustin authored
      It's redundant with setup.py and, also, incomplete (e.g. numpy).
      d73eb552
    • Aymeric Augustin's avatar
      Include all optional dependencies in extras. · 76a1417f
      Aymeric Augustin authored
      Take advantage of this to simplify the Circle CI configuration.
      
      Don't bother with tensorboardX: it's a fallback for PyTorch < 1.1.0.
      76a1417f
    • Aymeric Augustin's avatar
      Review and update setup.py. · f2522869
      Aymeric Augustin authored
      f2522869
  6. 22 Dec, 2019 4 commits
  7. 21 Dec, 2019 2 commits
    • Aymeric Augustin's avatar
      Reformat source code with black. · fa84ae26
      Aymeric Augustin authored
      This is the result of:
      
          $ black --line-length 119 examples templates transformers utils hubconf.py setup.py
      
      There's a lot of fairly long lines in the project. As a consequence, I'm
      picking the longest widely accepted line length, 119 characters.
      
      This is also Thomas' preference, because it allows for explicit variable
      names, to make the code easier to understand.
      fa84ae26
    • Aymeric Augustin's avatar
      Prevent parallel downloads of the same file with a lock. · a4c9338b
      Aymeric Augustin authored
      Since the file is written to the filesystem, a filesystem lock is the
      way to go here. Add a dependency on the third-party filelock library to
      get cross-platform functionality.
      a4c9338b
  8. 20 Dec, 2019 2 commits
  9. 19 Dec, 2019 1 commit
  10. 17 Dec, 2019 2 commits
  11. 13 Dec, 2019 1 commit
  12. 10 Dec, 2019 1 commit
  13. 06 Dec, 2019 1 commit
    • Aymeric Augustin's avatar
      Remove dependency on pytest for running tests (#2055) · 35401fe5
      Aymeric Augustin authored
      * Switch to plain unittest for skipping slow tests.
      
      Add a RUN_SLOW environment variable for running them.
      
      * Switch to plain unittest for PyTorch dependency.
      
      * Switch to plain unittest for TensorFlow dependency.
      
      * Avoid leaking open files in the test suite.
      
      This prevents spurious warnings when running tests.
      
      * Fix unicode warning on Python 2 when running tests.
      
      The warning was:
      
          UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
      
      * Support running PyTorch tests on a GPU.
      
      Reverts 27e015bd.
      
      * Tests no longer require pytest.
      
      * Make tests pass on cuda
      35401fe5
  14. 04 Dec, 2019 1 commit
  15. 03 Dec, 2019 1 commit
  16. 26 Nov, 2019 1 commit
  17. 11 Oct, 2019 1 commit
  18. 09 Oct, 2019 1 commit
  19. 26 Sep, 2019 3 commits
  20. 08 Sep, 2019 1 commit
  21. 05 Sep, 2019 1 commit
  22. 04 Sep, 2019 1 commit
  23. 28 Aug, 2019 1 commit
  24. 24 Aug, 2019 1 commit
  25. 23 Aug, 2019 1 commit
  26. 15 Aug, 2019 1 commit
  27. 05 Aug, 2019 1 commit
  28. 16 Jul, 2019 1 commit