Skip to content

Commit

Permalink
Merge pull request #61 from ninahakansson/updates_for_next_pypi_release
Browse files Browse the repository at this point in the history
Updates for next pypi release
  • Loading branch information
adybbroe authored May 20, 2021
2 parents 5eb0fb4 + d9a2384 commit 015c986
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 62 deletions.
14 changes: 14 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[run]
branch = True
source = level1c4pps
relative_files = True

[report]
exclude_lines =
if self.debug:
pragma: no cover
raise NotImplementedError
if __name__ == .__main__.:
ignore_errors = True
omit =
tests/*
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Pull Requests Merged

#### Features addedes
#### Features addeded

* [PR 60](https://github.com/foua-pps/level1c4pps/pull/60) - Add support for github-ci and prepare releasing on PyPi

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
level1c4pps
===========

[![Build status](https://github.com/foua-pps/level1c4pps/workflows/CI/badge.svg?branch=main)](https://github.com/foua-pps/level1c4pps/workflows/CI/badge.svg?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/foua-pps/level1c4pps/badge.svg)](https://coveralls.io/github/foua-pps/level1c4pps)
[![Build status](https://github.com/foua-pps/level1c4pps/workflows/CI/badge.svg?branch=master)](https://github.com/foua-pps/level1c4pps/workflows/CI/badge.svg?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/foua-pps/level1c4pps/badge.svg)](https://coveralls.io/github/foua-pps/level1c4pps?branch=master)


Tools to generate NWCSAF/PPS level-1C formattet netCDF files from various
Expand Down
6 changes: 5 additions & 1 deletion RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ prerequisites: `pip install setuptools twine`
loghub foua-pps/level1c4pps --token <personal access token (see https://github.com/settings/tokens)> -st v<previous version> -plg bug "Bugs fixed" -plg enhancement "Features added" -plg documentation "Documentation changes"
```

The "--token <personal access token (see https://github.com/settings/tokens)>" somtimes can be excluded.

Paste CHANGELOG.temp to CHANGELOG.md and update RELEASE-VERSION to the version that will be released.

Don't forget to commit!

5. Create a tag with the new version number, starting with a 'v', eg:
Expand All @@ -23,7 +27,7 @@ git tag -a v0.1.1 -m "Version 0.1.1"
See [semver.org](http://semver.org/) on how to write a version number.


6. push changes to github `git push --follow-tags`
6. push changes to github `git push name-of-foua-pps-repo master --follow-tags`

7. Verify the Github actions unit tests passed

Expand Down
7 changes: 2 additions & 5 deletions level1c4pps/eumgacfdr2pps_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,17 @@

import os
import time
import satpy
from satpy.scene import Scene
from level1c4pps import (get_encoding, compose_filename,
set_header_and_band_attrs_defaults,
remove_attributes,
rename_latitude_longitude, update_angle_attributes,
dt64_to_datetime,
platform_name_to_use_in_filename,
fix_too_great_attributes,
logger,
get_header_attrs, convert_angles)
from satpy.utils import debug_on
debug_on()
from distutils.version import LooseVersion
import satpy

if LooseVersion(satpy.__version__) < LooseVersion('0.24.0'):
debug_on()
raise ImportError("'eumgac2pps' writer requires satpy 0.24.0 or greater")
Expand Down
1 change: 1 addition & 0 deletions level1c4pps/tests/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def test_get_band_encoding(self):
None, None)

def test_adjust_lons(self):
"""Test adjusted longitudes."""
from level1c4pps import centered_modulus
in_lons = xr.DataArray([340.0, 10.0, -22.0])
out_lons = xr.DataArray([-20.0, 10.0, -22.0])
Expand Down
5 changes: 4 additions & 1 deletion level1c4pps/tests/test_seviri2pps.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@


class TestSeviri2PPS(unittest.TestCase):
"""Test for SEVIRI converter."""

def test_rotate_band(self):
"""Test rotation of bands."""
area = AreaDefinition(area_id='test',
Expand Down Expand Up @@ -432,8 +434,9 @@ def test_add_proj_satpos(self):
np.testing.assert_array_equal(scene['satellite_altitude'], [30])



class TestCalibration(unittest.TestCase):
"""Test SEVIRI calibration."""

def test_get_calibration_for_date(self):
"""Test MODIS-intercalibrated gain and offset for specific date."""
coefs = calib.get_calibration_for_date(
Expand Down
52 changes: 0 additions & 52 deletions tests/seviri2pps_for_dirs.py

This file was deleted.

0 comments on commit 015c986

Please sign in to comment.