Skip to content

Commit 104eb94

Browse files
Release 0.10.0 (#115)
* Depend on Particle 0.14 * Try to fix README display on PyPI * Bump version number * CHANGELOG update * Copy .pre-commit-config.yaml file from Particle, to please the CI * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * [CI skip] CHANGELOG update Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 8b0d7fb commit 104eb94

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1914
-1413
lines changed

.github/workflows/wheel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
- name: Build SDist
2525
run: python setup.py sdist
26-
26+
2727
- uses: actions/upload-artifact@v2
2828
with:
2929
path: dist/*

.pre-commit-config.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
repos:
3+
- repo: https://github.com/psf/black
4+
rev: 20.8b1
5+
hooks:
6+
- id: black
7+
- repo: https://github.com/pre-commit/pre-commit-hooks
8+
rev: v3.3.0
9+
hooks:
10+
- id: check-added-large-files
11+
args: ['--maxkb=1000']
12+
- id: mixed-line-ending
13+
- id: trailing-whitespace
14+
- id: check-merge-conflict
15+
- id: check-case-conflict
16+
- id: check-symlinks
17+
- id: check-yaml
18+
- id: requirements-txt-fixer
19+
- id: debug-statements
20+
- id: end-of-file-fixer
21+
- id: fix-encoding-pragma
22+
- repo: https://github.com/mgedmin/check-manifest
23+
rev: "0.45"
24+
hooks:
25+
- id: check-manifest
26+
stages: [manual]
27+
- repo: https://github.com/pre-commit/mirrors-mypy
28+
rev: v0.790
29+
hooks:
30+
- id: mypy
31+
files: src
32+
additional_dependencies: [attrs==19.3.0]

CHANGELOG.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
# Changelog
22

3+
## Version 0.10.0 (2020-12-10)
4+
5+
* Dependencies:
6+
- Package dependent on ``Particle`` version 0.14.
7+
* Miscellaneous:
8+
- Pre-commit hooks added - Black formatting, check-manifest, etc.
9+
310
## Version 0.9.1 (2020-11-04)
411

512
* Parsing of decay files (aka .dec files):
6-
- ``DecFileParser`` class enhanced to understand the CopyDecay statement.
13+
- ``DecFileParser`` class enhanced to understand EvtGen's CopyDecay statement in decay files.
714
* Tests:
815
- Added tests for Python 3.8 and 3.9 on Windows.
916
* Miscellaneous:
@@ -50,7 +57,7 @@
5057
* Universal representation of decay chains:
5158
- Classes ``DecayChain``, ``DecayMode``, ``DaughtersDict`` and ``DecayChainViewer`` enhanced.
5259
* Dependencies and Python version support:
53-
- Package dependent on ``Particle`` versions 0.9.*.
60+
- Package dependent on ``Particle`` versions 0.9.
5461
- Support for Python 3.8 added.
5562

5663

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![DecayLanguage](https://raw.githubusercontent.com/scikit-hep/decaylanguage/master/images/DecayLanguage.png)](https://decaylanguage.readthedocs.io/en/latest/)
1+
<img alt="DecayLanguage logo" src="https://raw.githubusercontent.com/scikit-hep/decaylanguage/master/images/DecayLanguage.png"/>
22

33
# DecayLanguage: describe, manipulate and convert particle decays
44

@@ -17,8 +17,6 @@
1717
[![Binder demo](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/scikit-hep/decaylanguage/master?urlpath=lab/tree/notebooks/DecayLanguageDemo.ipynb)
1818

1919

20-
<!-- break -->
21-
2220
DecayLanguage implements a language to describe and convert particle decays
2321
between digital representations, effectively making it possible to interoperate
2422
several fitting programs. Particular interest is given to programs dedicated

decaylanguage/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
# Copyright (c) 2018-2020, Eduardo Rodrigues and Henry Schreiner.
23
#
34
# Distributed under the 3-clause BSD license, see accompanying file LICENSE

decaylanguage/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python
2-
# coding: utf-8
2+
# -*- coding: utf-8 -*-
33
# Copyright (c) 2018-2020, Eduardo Rodrigues and Henry Schreiner.
44
#
55
# Distributed under the 3-clause BSD license, see accompanying file LICENSE
@@ -15,10 +15,10 @@
1515

1616

1717
class DecayLanguageDecay(cli.Application):
18-
generator = cli.SwitchAttr(['-G', '--generator'], cli.Set('goofit'), mandatory=True)
18+
generator = cli.SwitchAttr(["-G", "--generator"], cli.Set("goofit"), mandatory=True)
1919

2020
def main(self, filename):
21-
if self.generator == 'goofit':
21+
if self.generator == "goofit":
2222
ampgen2goofit(filename)
2323

2424

decaylanguage/_version.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
# -*- coding: utf-8 -*-
12
# Copyright (c) 2018-2020, Eduardo Rodrigues and Henry Schreiner.
23
#
34
# Distributed under the 3-clause BSD license, see accompanying file LICENSE
45
# or https://github.com/scikit-hep/decaylanguage for details.
56

67

7-
__version__ = '0.9.1'
8+
__version__ = "0.10.0"
89

910
version = __version__
10-
version_info = __version__.split('.')
11+
version_info = __version__.split(".")

0 commit comments

Comments
 (0)