metebalci / pdftitle

a utility to extract the title from a PDF file
GNU General Public License v3.0
131 stars 21 forks source link

refactor repository and unit tests #29

Open cknoll opened 2 years ago

cknoll commented 2 years ago

To make this repository more contribution friendly it should imho be structured in a "standard way", i.e. the top level directory only containing setup.py but not the actual source code. This simplifies the installation in development mode (pip install -e .) and also enables an easier overview of the repo for potential users and contributors.

Also this pr moves the bash based unit tests to a python file using the unittest module from python standard library. This should make it easier to add new tests (which are not necessarily command executions) in the future.

Note that make test still works., see e.g. https://app.circleci.com/pipelines/github/cknoll/pdftitle?branch=develop