diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index cd13f9b..c780ae8 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -13,10 +13,10 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 strategy: matrix: - python-version: [3.5, 3.6, 3.7, 3.8] + python-version: ['3.5', '3.6', '3.7', '3.8'] steps: - uses: actions/checkout@v2 diff --git a/README.md b/README.md index 982c4da..d50b53e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ [![Python package](https://github.com/UUDigitalHumanitieslab/chamd/actions/workflows/python-package.yml/badge.svg?branch=develop)](https://github.com/UUDigitalHumanitieslab/chamd/actions/workflows/python-package.yml) - [![Python package](https://badge.fury.io/py/chamd.svg)](https://pypi.python.org/pypi/chamd/) - +[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.8091301.svg)](https://doi.org/10.5281/zenodo.8091301) # CHAMD Conversion and cleaning of CHILDES CHA files into PaQu Plaintext Metadata Format (to convert to Alpino). diff --git a/README.rst b/README.rst deleted file mode 100644 index ea097d4..0000000 --- a/README.rst +++ /dev/null @@ -1,52 +0,0 @@ -[![Python package](https://github.com/UUDigitalHumanitieslab/chamd/actions/workflows/python-package.yml/badge.svg?branch=develop)](https://github.com/UUDigitalHumanitieslab/chamd/actions/workflows/python-package.yml) - -Conversion and cleaning of CHILDES CHA files into PaQu Plaintext -Metadata Format (to convert to Alpino). - -`pypi chamd -`_ - -.. code:: bash - - pip install chamd - chamd --help - -Running from project: - -.. code:: bash - - python -m chamd --help - -Import as Library -================= - -This way the library can be used to read CHAT file (contents) from an external application. - -.. code:: python - - from chamd import ChatReader - reader = ChatReader() - chat = reader.read_file('example.cha') # or read_string - - for item in chat.metadata: - print(item) - for line in chat.lines: - for item in line.metadata: - print(item) - print(line.text) - - -Upload to PyPi -============== - -.. code:: bash - - python setup.py sdist - twine upload dist/* - -Run Tests -========= - -.. code:: bash - - python -m unittest discover tests/ diff --git a/setup.py b/setup.py index 9bbfd29..af03469 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name='chamd', python_requires='>=3.5, <4', - version='0.5.9', + version='0.5.10', description='Conversion and cleaning of CHILDES CHA files into PaQu Plaintext Metadata Format', long_description=long_description, author='Digital Humanities Lab, Utrecht University',