llllllllll / cloudpickle-generators

cloudpickle support for generators, including partially consumed generators.
BSD 3-Clause "New" or "Revised" License
17 stars 6 forks source link

DEV: add support for python 3.7 #5

Closed ddn0 closed 5 years ago

ddn0 commented 5 years ago

Test Plan

Python 3.7

(tf1.13) ddn@pca:cloudpickle-generators$ python --version
Python 3.7.0
(tf1.13) ddn@pca:cloudpickle-generators$ pytest cloudpickle_generators
============================================================ test session starts ============================================================
platform darwin -- Python 3.7.0, pytest-4.2.1, py-1.7.0, pluggy-0.8.1
sensitiveurl: .*
rootdir: /Users/ddn/w/cloudpickle-generators, inifile:
plugins: requests-mock-1.5.2, xdist-1.26.1, variables-1.7.1, selenium-1.16.0, metadata-1.8.0, html-1.20.0, forked-1.0.2, cov-2.6.1, base-url-1.4.1, asyncio-0.10.0
collected 11 items

cloudpickle_generators/tests/test_cloudpickle_generators.py ...........                                                               [100%]

========================================================= 11 passed in 0.04 seconds =========================================================

Python 3.6

(tf1.13) ddn@pca:cloudpickle-generators$ conda activate nvim
(nvim) ddn@pca:cloudpickle-generators$ python --version
Python 3.6.8 :: Anaconda, Inc.
(nvim) ddn@pca:cloudpickle-generators$ pip install -e .
Obtaining file:///Users/ddn/w/cloudpickle-generators
Requirement already satisfied: cloudpickle in /anaconda3/envs/nvim/lib/python3.6/site-packages (from cloudpickle-generators==0.1.0) (0.5.3)
Installing collected packages: cloudpickle-generators
  Found existing installation: cloudpickle-generators 0.1.0
    Uninstalling cloudpickle-generators-0.1.0:
      Successfully uninstalled cloudpickle-generators-0.1.0
  Running setup.py develop for cloudpickle-generators
Successfully installed cloudpickle-generators
(nvim) ddn@pca:cloudpickle-generators$ pytest cloudpickle_generators
============================================================ test session starts ============================================================
platform darwin -- Python 3.6.8, pytest-4.2.1, py-1.7.0, pluggy-0.8.1
sensitiveurl: .*
rootdir: /Users/ddn/w/cloudpickle-generators, inifile:
plugins: requests-mock-1.5.2, xdist-1.26.1, variables-1.7.1, selenium-1.16.0, metadata-1.8.0, html-1.20.0, forked-1.0.1, cov-2.6.1, base-url-1.4.1, asyncio-0.10.0
collected 11 items

cloudpickle_generators/tests/test_cloudpickle_generators.py ...........                                                               [100%]

========================================================= 11 passed in 0.08 seconds =========================================================
llllllllll commented 5 years ago

Oh, I don't have this on pypi at all. Would putting this on pypi be helpful for you?

ddn0 commented 5 years ago

Having this in pypi would be awesome!