raymondxyy / pyaudlib

A speech signal processing library in Python with emphasis on deep learning.
MIT License
31 stars 6 forks source link

Automate installation #19

Closed andrewwuan closed 5 years ago

andrewwuan commented 5 years ago

This PR automates installation for audlib. There are a couple of changes:

  1. Before, we use Pipfile and pipenv to manage dependencies. Now, we specify those dependencies in setup.py and let python's own setuptools manage it. This also comes with pip support.
  2. Now, we can install the library with pip install audlib. I uploaded a test release to my PyPI account and we can transfer the ownership to Raymond if you guys think this looks good.
  3. sph2pipe is packaged with the release and will be compiled dynamically right before first use. I tried to find a post-install hook for pip but there is no clean way of doing it. Embed it in setup.py install does not automatically enable it in pip install.

TODO:

  1. cfg related changes.
  2. Exposing python modules in __init__.py.
  3. Figure out minimum dependency versions (for now, I'm using whatever versions I get when I install them, so likely the latest).
raymondxyy commented 5 years ago

Take a look at this branch based on your PR. There are two major changes:

  1. cfg-related code is removed.
  2. data-related unit tests are made optional.

TODO:

  1. Enable pytest on everything in test/ now, not just test/sig.
  2. Update travis CI -- right now it's still using pipenv.
andrewwuan commented 5 years ago

Tracked in https://github.com/raymondxyy/pyaudlib/pull/20