Skip to content

Commit

Permalink
The python community has selected the pyproject.toml to store proje…
Browse files Browse the repository at this point in the history
…ct metadata

- https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
- https://peps.python.org/pep-0621

This commit also removes the quite deprecated `versioneer` module and replaces it with
`setuptools_scm` that handles the project version alone (no needs to bump version).

Contributors to the software are also added at the end of the README following the contribution
graphs of github.
  • Loading branch information
xgarrido committed Feb 22, 2024
1 parent f743740 commit ad8c6b3
Show file tree
Hide file tree
Showing 13 changed files with 88 additions and 2,944 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,10 @@ jobs:
- name: Install dependencies via pip
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pytest pytest-cov
python -m pip install .
python -m pip install .[test]
- name: Unit tests
run: |
python -m pip install camb
python -m pytest -vv mflike --cov=mflike --cov-report=xml:coverage.xml
- name: Report Coverage (codecov)
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:

- name: Build sdist and wheel
run: |
python -m pip install wheel setuptools
python setup.py sdist bdist_wheel
python -m pip install build
python -m build
- uses: actions/upload-artifact@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,4 @@ venv.bak/

# mypy
.mypy_cache/
/mflike/_version.py
8 changes: 7 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
include versioneer.py
include mflike/_version.py

exclude .git*
exclude codecov.yml

prune binder
prune notebooks
prune .github
6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,9 @@ Simulation releases
- ``v0.6`` release make use of CMB map based simulations (see https://github.com/simonsobs/map_based_simulations/blob/master/201911_lensed_cmb/README.md). Only temperature foregrounds were considered.

Releases prior to ``v0.6`` version were development simulations and should not be used for simulation analysis.

Contributors
------------

.. image:: https://contrib.rocks/image?repo=simonsobs/LAT_MFLike
:target: https://github.com/simonsobs/LAT_MFLike/graphs/contributors
2 changes: 1 addition & 1 deletion binder/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
matplotlib
camb
mflike @ git+https://github.com/simonsobs/LAT_MFLike@master#egg=mflike
mflike
4 changes: 0 additions & 4 deletions mflike/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
from .mflike import MFLike

from ._version import get_versions
__version__ = get_versions()['version']
del get_versions
Loading

0 comments on commit ad8c6b3

Please sign in to comment.