Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reenable Coveralls #23

Merged
merged 2 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,27 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r .github/workflows/requirements-${{ matrix.req-version }}.txt
pip install pytest pytest-cov
pip install pytest pytest-cov coveralls
pip install .
- name: Run tests
run: |
pytest --cov=lazyarray -v
# - name: Upload coverage data
# run: |
# coveralls --service=github
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# COVERALLS_FLAG_NAME: ${{ matrix.test-name }}
# COVERALLS_PARALLEL: true
# coveralls:
# name: Indicate completion to coveralls.io
# needs: test
# runs-on: ubuntu-latest
# container: python:3-slim
# steps:
# - name: Finished
# run: |
# pip3 install --upgrade coveralls
# coveralls --service=github --finish
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload coverage data
run: |
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.test-name }}
COVERALLS_PARALLEL: true
coveralls:
name: Indicate completion to coveralls.io
needs: test
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finished
run: |
pip3 install --upgrade coveralls
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 4 additions & 4 deletions doc/developers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ To see how well the tests cover the code base, run::
Making a release
================

* Update the version numbers in setup.py, lazyarray.py, doc/conf.py and doc/installation.txt
* Update the version numbers in pyproject.toml, lazyarray.py, doc/conf.py and doc/installation.txt
* Update changelog.txt
* Run all the tests with Python 3
* python setup.py sdist upload
* Update the download link in doc/installation.txt
* python -m build
* twine upload dist/lazyarray-<version>*
* Commit the changes, tag with release number, push to Github
* Rebuild the documentation at http://lazyarray.readthedocs.org/
* Rebuild the documentation at http://lazyarray.readthedocs.org/
30 changes: 4 additions & 26 deletions doc/installation.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,49 +5,27 @@ Installation
Dependencies
============

* Python >= 3.6
* numpy_ >= 1.13
* (optional) scipy_ >= 0.19
* Python >= 3.8
* numpy_ >= 1.20
* (optional) scipy_ >= 1.7

Installing from the Python Package Index
========================================

If you have pip_ installed::

$ pip install lazyarray

This will automatically download and install the latest release (you may need
to have administrator privileges on the machine you are installing on).

To download and install manually, download:

https://pypi.python.org/packages/source/l/lazyarray/lazyarray-0.5.2.tar.gz

Then::

$ tar xzf lazyarray-0.5.2.tar.gz
$ cd lazyarray-0.5.2
$ python setup.py install

or::

$ python3 setup.py install

depending on what your Python interpreter is named.


Installing from source
======================

To install the latest version of lazyarray from the Git repository::

$ git clone https://github.com/NeuralEnsemble/lazyarray
$ cd lazyarray
$ python setup.py install
$ pip install .


.. _`numpy`: http://numpy.scipy.org/
.. _`scipy`: http://scipy.org/
.. _`quantities`: http://pypi.python.org/pypi/quantities
.. _`pip`: http://pypi.python.org/pypi/pip
.. _`setuptools`: http://pypi.python.org/pypi/setuptools
1 change: 0 additions & 1 deletion requirements.txt

This file was deleted.