Skip to content

Commit

Permalink
Release 0.10.0 (#115)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
eduardo-rodrigues and pre-commit-ci[bot] authored Dec 10, 2020
1 parent 8b0d7fb commit 104eb94
Show file tree
Hide file tree
Showing 43 changed files with 1,914 additions and 1,413 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- name: Build SDist
run: python setup.py sdist

- uses: actions/upload-artifact@v2
with:
path: dist/*
Expand Down
32 changes: 32 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

repos:
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
hooks:
- id: check-added-large-files
args: ['--maxkb=1000']
- id: mixed-line-ending
- id: trailing-whitespace
- id: check-merge-conflict
- id: check-case-conflict
- id: check-symlinks
- id: check-yaml
- id: requirements-txt-fixer
- id: debug-statements
- id: end-of-file-fixer
- id: fix-encoding-pragma
- repo: https://github.com/mgedmin/check-manifest
rev: "0.45"
hooks:
- id: check-manifest
stages: [manual]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.790
hooks:
- id: mypy
files: src
additional_dependencies: [attrs==19.3.0]
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# Changelog

## Version 0.10.0 (2020-12-10)

* Dependencies:
- Package dependent on ``Particle`` version 0.14.
* Miscellaneous:
- Pre-commit hooks added - Black formatting, check-manifest, etc.

## Version 0.9.1 (2020-11-04)

* Parsing of decay files (aka .dec files):
- ``DecFileParser`` class enhanced to understand the CopyDecay statement.
- ``DecFileParser`` class enhanced to understand EvtGen's CopyDecay statement in decay files.
* Tests:
- Added tests for Python 3.8 and 3.9 on Windows.
* Miscellaneous:
Expand Down Expand Up @@ -50,7 +57,7 @@
* Universal representation of decay chains:
- Classes ``DecayChain``, ``DecayMode``, ``DaughtersDict`` and ``DecayChainViewer`` enhanced.
* Dependencies and Python version support:
- Package dependent on ``Particle`` versions 0.9.*.
- Package dependent on ``Particle`` versions 0.9.
- Support for Python 3.8 added.


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

# DecayLanguage: describe, manipulate and convert particle decays

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


<!-- break -->

DecayLanguage implements a language to describe and convert particle decays
between digital representations, effectively making it possible to interoperate
several fitting programs. Particular interest is given to programs dedicated
Expand Down
1 change: 1 addition & 0 deletions decaylanguage/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2020, Eduardo Rodrigues and Henry Schreiner.
#
# Distributed under the 3-clause BSD license, see accompanying file LICENSE
Expand Down
6 changes: 3 additions & 3 deletions decaylanguage/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env python
# coding: utf-8
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2020, Eduardo Rodrigues and Henry Schreiner.
#
# Distributed under the 3-clause BSD license, see accompanying file LICENSE
Expand All @@ -15,10 +15,10 @@


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

def main(self, filename):
if self.generator == 'goofit':
if self.generator == "goofit":
ampgen2goofit(filename)


Expand Down
5 changes: 3 additions & 2 deletions decaylanguage/_version.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# -*- coding: utf-8 -*-
# Copyright (c) 2018-2020, Eduardo Rodrigues and Henry Schreiner.
#
# Distributed under the 3-clause BSD license, see accompanying file LICENSE
# or https://github.com/scikit-hep/decaylanguage for details.


__version__ = '0.9.1'
__version__ = "0.10.0"

version = __version__
version_info = __version__.split('.')
version_info = __version__.split(".")
Loading

0 comments on commit 104eb94

Please sign in to comment.