Giter Club home page Giter Club logo

apypie's People

Contributors

dependabot[bot] avatar ekohl avatar ephracis avatar evgeni avatar mdellweg avatar ogajduse avatar sean797 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

apypie's Issues

create better fixtures from the environ

I think this could be done with a fixture:

@pytest.fixture
def temporary_environ():
  old_environ = os.environ.copy()
  yield
  os.environ = old_environ

Then on the test:

@pytest.mark.usefixtures("temporary_environ")
def test_init_with_existing_cachedir(fixture_dir, requests_mock, tmpdir):

I think you can even stack it:

@pytest.fixture
def temporary_xdg_cache_home(tmpdir):
    old_environ = os.environ.copy()
    os.environ['XDG_CACHE_HOME'] = tmpdir.strpath
    yield
    os.environ = old_environ

_Originally posted by @ekohl in #58

honour the apipie hash header

We currently ignore the hash, thats good for FAM tests, but means we never notice if the file changes on the server

enable gzip/deflate

this should save a bit of traffic in requests.

FAM will need to use VCR with decode_compressed_response to have the tapes uncompressed and readable

License file is not included in release tarball on PyPi

Include license file for those, who consume the release from PyPI.
apypie dependencies do it:

$ find ~/.virtualenvs/apypie/ -type f -name "*LICENSE*" 
/home/ogajduse/.virtualenvs/apypie/lib/python3.7/site-packages/wheel-0.34.2.dist-info/LICENSE.txt
/home/ogajduse/.virtualenvs/apypie/lib/python3.7/site-packages/setuptools-46.1.3.dist-info/LICENSE
/home/ogajduse/.virtualenvs/apypie/lib/python3.7/site-packages/urllib3-1.25.8.dist-info/LICENSE.txt
/home/ogajduse/.virtualenvs/apypie/lib/python3.7/site-packages/pip-20.0.2.dist-info/LICENSE.txt
/home/ogajduse/.virtualenvs/apypie/lib/python3.7/site-packages/certifi-2020.4.5.dist-info/LICENSE
/home/ogajduse/.virtualenvs/apypie/lib/python3.7/site-packages/idna-2.9.dist-info/LICENSE.rst
/home/ogajduse/.virtualenvs/apypie/lib/python3.7/site-packages/requests-2.23.0.dist-info/LICENSE

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.