diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md new file mode 100644 index 0000000..6e20cfc --- /dev/null +++ b/.github/CONTRIBUTING.md @@ -0,0 +1,46 @@ +See the [Scikit-HEP Developer introduction][skhep-dev-intro] for a +detailed description of best practices for developing Scikit-HEP packages. + +[skhep-dev-intro]: https://scikit-hep.org/developer/intro + +# Setting up a development environment + +You can set up a development environment by running: + +```bash +python3 -m venv .env +source ./.env/bin/activate +pip install -v -e .[all] +``` + +# Post setup + +You should prepare pre-commit, which will help you by checking that commits +pass required checks: + +```bash +pip install pre-commit # or brew install pre-commit on macOS +pre-commit install # Will install a pre-commit hook into the git repo +``` + +You can also/alternatively run `pre-commit run` (changes only) or `pre-commit +run --all-files` to check even without installing the hook. + +# Testing + +Use PyTest to run the unit checks: + +```bash +pytest +``` + +# Building docs + +You can build the docs using: + + +From inside your environmentwith the docs extra installed, run: + +```bash +sphinx-build -M html docs docs/_build +``` diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..c1eac3c --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 +updates: + # Maintain dependencies for GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + ignore: + # Offical actions have moving tags like v1 + # that are used, so they don't need updates here + - dependency-name: "actions/*" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..333907c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,75 @@ +name: CI + +on: + workflow_dispatch: + pull_request: + push: + branches: + - master + - main + - develop + release: + types: + - published + +jobs: + pre-commit: + name: Format + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-python@v2 + - uses: pre-commit/action@v2.0.0 + with: + extra_args: --hook-stage manual --all-files + + checks: + name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }} + runs-on: ${{ matrix.runs-on }} + strategy: + fail-fast: false + matrix: + python-version: [3.7, 3.9] + runs-on: [ubuntu-latest, macos-latest, windows-latest] + + include: + - python-version: pypy-3.7 + runs-on: ubuntu-latest + + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install package + run: python -m pip install .[test] + + - name: Test package + run: python -m pytest -ra + + + dist: + name: Distribution build + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + + - name: Build sdist and wheel + run: pipx run --spec build pyproject-build + + - uses: actions/upload-artifact@v2 + with: + path: dist + + - uses: pypa/gh-action-pypi-publish@v1.4.1 + if: github.event_name == 'release' && github.event.action == 'published' + with: + user: __token__ + # Remember to generate this and set it in "GitHub Secrets" + password: ${{ secrets.pypi_password }} + # Remove this line + repository_url: https://test.pypi.org/legacy/ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..16a18ed --- /dev/null +++ b/.gitignore @@ -0,0 +1,141 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ + +# setuptools_scm +src/*/version.py diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..77f3111 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,54 @@ +repos: +- repo: https://github.com/psf/black + rev: 20.8b1 + hooks: + - id: black + +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.4.0 + hooks: + - id: check-added-large-files + - id: check-case-conflict + - id: check-merge-conflict + - id: check-symlinks + - id: check-yaml + - id: debug-statements + - id: end-of-file-fixer + - id: mixed-line-ending + - id: requirements-txt-fixer + - id: trailing-whitespace + +- repo: https://github.com/PyCQA/isort + rev: 5.8.0 + hooks: + - id: isort + +- repo: https://github.com/asottile/pyupgrade + rev: v2.11.0 + hooks: + - id: pyupgrade + args: ["--py36-plus"] + +- repo: https://github.com/asottile/setup-cfg-fmt + rev: v1.17.0 + hooks: + - id: setup-cfg-fmt + +- repo: https://github.com/pycqa/flake8 + rev: 3.9.0 + hooks: + - id: flake8 + exclude: docs/conf.py + additional_dependencies: [flake8-bugbear, flake8-print] + +- repo: https://github.com/pre-commit/mirrors-mypy + rev: v0.812 + hooks: + - id: mypy + files: src + +- repo: https://github.com/mgedmin/check-manifest + rev: "0.45" + hooks: + - id: check-manifest + stages: [manual] diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..6b75703 --- /dev/null +++ b/LICENSE @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2021, Andrzej Novak. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the vector package developers nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..bf6443e --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,7 @@ +prune * +graft src +graft tests + +include LICENSE README.md pyproject.toml setup.py setup.cfg +recursive-include src/mplhep/fonts/ * +global-exclude __pycache__ *.py[cod] .* diff --git a/README.md b/README.md new file mode 100644 index 0000000..87ba13c --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +# mplhep_data + +[![Actions Status][actions-badge]][actions-link] +[![Documentation Status][rtd-badge]][rtd-link] +[![Code style: black][black-badge]][black-link] + +[![PyPI version][pypi-version]][pypi-link] +[![Conda-Forge][conda-badge]][conda-link] +[![PyPI platforms][pypi-platforms]][pypi-link] + +[![GitHub Discussion][github-discussions-badge]][github-discussions-link] +[![Gitter][gitter-badge]][gitter-link] +[![Scikit-HEP][sk-badge]](https://scikit-hep.org/) + + + +[actions-badge]: https://github.com/Scikit-HEP/mplhep_data/workflows/CI/badge.svg +[actions-link]: https://github.com/Scikit-HEP/mplhep_data/actions +[black-badge]: https://img.shields.io/badge/code%20style-black-000000.svg +[black-link]: https://github.com/psf/black +[conda-badge]: https://img.shields.io/conda/vn/conda-forge/mplhep_data +[conda-link]: https://github.com/conda-forge/mplhep_data-feedstock +[github-discussions-badge]: https://img.shields.io/static/v1?label=Discussions&message=Ask&color=blue&logo=github +[github-discussions-link]: https://github.com/Scikit-HEP/mplhep_data/discussions +[gitter-badge]: https://badges.gitter.im/https://github.com/Scikit-HEP/mplhep_data/community.svg +[gitter-link]: https://gitter.im/https://github.com/Scikit-HEP/mplhep_data/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge +[pypi-link]: https://pypi.org/project/mplhep_data/ +[pypi-platforms]: https://img.shields.io/pypi/pyversions/mplhep_data +[pypi-version]: https://badge.fury.io/py/mplhep_data.svg +[rtd-badge]: https://readthedocs.org/projects/mplhep_data/badge/?version=latest +[rtd-link]: https://mplhep_data.readthedocs.io/en/latest/?badge=latest +[sk-badge]: https://scikit-hep.org/assets/images/Scikit--HEP-Project-blue.svg diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..d2fd011 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,6 @@ +[build-system] +requires = ["wheel", "setuptools>=42", "setuptools_scm[toml]>=3.4"] +build-backend = "setuptools.build_meta" + +[tool.setuptools_scm] +write_to = "src/mplhep_data/version.py" diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..c9123bf --- /dev/null +++ b/setup.cfg @@ -0,0 +1,83 @@ +[metadata] +name = mplhep_data +description = Font (Data) sub-package for mplhep +long_description = file: README.md +long_description_content_type = text/markdown +url = https://github.com/Scikit-HEP/mplhep_data +author = Andrzej Novak +author_email = novak5andrzej@gmail.com +maintainer = The Scikit-HEP admins +maintainer_email = scikit-hep-admins@googlegroups.com +license = BSD-3-Clause +license_file = LICENSE +platforms = + Any +classifiers = + Development Status :: 1 - Planning + Intended Audience :: Developers + Intended Audience :: Science/Research + License :: OSI Approved :: BSD License + Operating System :: OS Independent + Programming Language :: Python + Programming Language :: Python :: 3 + Programming Language :: Python :: 3 :: Only + Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.9 + Topic :: Scientific/Engineering + +[options] +packages = find: +install_requires = + numpy>=1.13.3 +python_requires = >=3.7 +include_package_data = True +package_dir = + =src + +[options.packages.find] +where = src + +[options.extras_require] +dev = + pytest>=4.6 +test = + pytest>=4.6 + +[tool:pytest] +addopts = -rs -s -Wd +testpaths = + tests + +[check-manifest] +ignore = + .github/** + .pre-commit-config.yaml + src/*/version.py + +[flake8] +ignore = E203, E231, E501, E722, W503, B950 +select = C,E,F,W,T,B,B9,I +per-file-ignores = + tests/*: T + +[mypy] +files = src +python_version = 3.7 +warn_unused_configs = True +disallow_any_generics = True +disallow_subclassing_any = True +disallow_untyped_calls = True +disallow_untyped_defs = True +disallow_incomplete_defs = True +check_untyped_defs = True +disallow_untyped_decorators = True +no_implicit_optional = True +warn_redundant_casts = True +warn_unused_ignores = True +warn_return_any = True +no_implicit_reexport = True +strict_equality = True + +[mypy-numpy] +ignore_missing_imports = True diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..bfd368d --- /dev/null +++ b/setup.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python +# Copyright (c) 2021, Andrzej Novak +# +# Distributed under the 3-clause BSD license, see accompanying file LICENSE +# or https://github.com/Scikit-HEP/mplhep_data for details. + +from setuptools import setup + +setup() diff --git a/src/mplhep_data/__init__.py b/src/mplhep_data/__init__.py new file mode 100644 index 0000000..97f0319 --- /dev/null +++ b/src/mplhep_data/__init__.py @@ -0,0 +1,3 @@ +from .version import version as __version__ + +__all__ = ("__version__",) diff --git a/src/mplhep_data/fonts/firamath/FiraMath-Bold.otf b/src/mplhep_data/fonts/firamath/FiraMath-Bold.otf new file mode 100755 index 0000000..e4fba12 Binary files /dev/null and b/src/mplhep_data/fonts/firamath/FiraMath-Bold.otf differ diff --git a/src/mplhep_data/fonts/firamath/FiraMath-Book.otf b/src/mplhep_data/fonts/firamath/FiraMath-Book.otf new file mode 100755 index 0000000..c3f223c Binary files /dev/null and b/src/mplhep_data/fonts/firamath/FiraMath-Book.otf differ diff --git a/src/mplhep_data/fonts/firamath/FiraMath-ExtraBold.otf b/src/mplhep_data/fonts/firamath/FiraMath-ExtraBold.otf new file mode 100755 index 0000000..12d29d5 Binary files /dev/null and b/src/mplhep_data/fonts/firamath/FiraMath-ExtraBold.otf differ diff --git a/src/mplhep_data/fonts/firamath/FiraMath-ExtraLight.otf b/src/mplhep_data/fonts/firamath/FiraMath-ExtraLight.otf new file mode 100755 index 0000000..11daeb6 Binary files /dev/null and b/src/mplhep_data/fonts/firamath/FiraMath-ExtraLight.otf differ diff --git a/src/mplhep_data/fonts/firamath/FiraMath-Heavy.otf b/src/mplhep_data/fonts/firamath/FiraMath-Heavy.otf new file mode 100755 index 0000000..a4f1f53 Binary files /dev/null and b/src/mplhep_data/fonts/firamath/FiraMath-Heavy.otf differ diff --git a/src/mplhep_data/fonts/firamath/FiraMath-Light.otf b/src/mplhep_data/fonts/firamath/FiraMath-Light.otf new file mode 100755 index 0000000..af015e2 Binary files /dev/null and b/src/mplhep_data/fonts/firamath/FiraMath-Light.otf differ diff --git a/src/mplhep_data/fonts/firamath/FiraMath-Medium.otf b/src/mplhep_data/fonts/firamath/FiraMath-Medium.otf new file mode 100755 index 0000000..7888471 Binary files /dev/null and b/src/mplhep_data/fonts/firamath/FiraMath-Medium.otf differ diff --git a/src/mplhep_data/fonts/firamath/FiraMath-Regular.otf b/src/mplhep_data/fonts/firamath/FiraMath-Regular.otf new file mode 100755 index 0000000..5b4281f Binary files /dev/null and b/src/mplhep_data/fonts/firamath/FiraMath-Regular.otf differ diff --git a/src/mplhep_data/fonts/firamath/FiraMath-SemiBold.otf b/src/mplhep_data/fonts/firamath/FiraMath-SemiBold.otf new file mode 100755 index 0000000..347738a Binary files /dev/null and b/src/mplhep_data/fonts/firamath/FiraMath-SemiBold.otf differ diff --git a/src/mplhep_data/fonts/firamath/FiraMath-Thin.otf b/src/mplhep_data/fonts/firamath/FiraMath-Thin.otf new file mode 100755 index 0000000..f762039 Binary files /dev/null and b/src/mplhep_data/fonts/firamath/FiraMath-Thin.otf differ diff --git a/src/mplhep_data/fonts/firamath/FiraMath-Ultra.otf b/src/mplhep_data/fonts/firamath/FiraMath-Ultra.otf new file mode 100755 index 0000000..5d87680 Binary files /dev/null and b/src/mplhep_data/fonts/firamath/FiraMath-Ultra.otf differ diff --git a/src/mplhep_data/fonts/firamath/FiraMath-UltraLight.otf b/src/mplhep_data/fonts/firamath/FiraMath-UltraLight.otf new file mode 100755 index 0000000..ea516df Binary files /dev/null and b/src/mplhep_data/fonts/firamath/FiraMath-UltraLight.otf differ diff --git a/src/mplhep_data/fonts/firamath/LICENSE_FiraMath b/src/mplhep_data/fonts/firamath/LICENSE_FiraMath new file mode 100644 index 0000000..cbf950b --- /dev/null +++ b/src/mplhep_data/fonts/firamath/LICENSE_FiraMath @@ -0,0 +1,92 @@ +Copyright (C) 2018, 2019 by Xiangdong Zeng + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION AND CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/src/mplhep_data/fonts/firasans/FiraMono-Bold.ttf b/src/mplhep_data/fonts/firasans/FiraMono-Bold.ttf new file mode 100755 index 0000000..12f05a7 Binary files /dev/null and b/src/mplhep_data/fonts/firasans/FiraMono-Bold.ttf differ diff --git a/src/mplhep_data/fonts/firasans/FiraMono-Medium.ttf b/src/mplhep_data/fonts/firasans/FiraMono-Medium.ttf new file mode 100755 index 0000000..a80896c Binary files /dev/null and b/src/mplhep_data/fonts/firasans/FiraMono-Medium.ttf differ diff --git a/src/mplhep_data/fonts/firasans/FiraMono-Regular.ttf b/src/mplhep_data/fonts/firasans/FiraMono-Regular.ttf new file mode 100755 index 0000000..f0572e1 Binary files /dev/null and b/src/mplhep_data/fonts/firasans/FiraMono-Regular.ttf differ diff --git a/src/mplhep_data/fonts/firasans/FiraSans-Black.ttf b/src/mplhep_data/fonts/firasans/FiraSans-Black.ttf new file mode 100755 index 0000000..b40cf62 Binary files /dev/null and b/src/mplhep_data/fonts/firasans/FiraSans-Black.ttf differ diff --git a/src/mplhep_data/fonts/firasans/FiraSans-BlackItalic.ttf b/src/mplhep_data/fonts/firasans/FiraSans-BlackItalic.ttf new file mode 100755 index 0000000..30aa806 Binary files /dev/null and b/src/mplhep_data/fonts/firasans/FiraSans-BlackItalic.ttf differ diff --git a/src/mplhep_data/fonts/firasans/FiraSans-Bold.ttf b/src/mplhep_data/fonts/firasans/FiraSans-Bold.ttf new file mode 100755 index 0000000..f5bf9bc Binary files /dev/null and b/src/mplhep_data/fonts/firasans/FiraSans-Bold.ttf differ diff --git a/src/mplhep_data/fonts/firasans/FiraSans-BoldItalic.ttf b/src/mplhep_data/fonts/firasans/FiraSans-BoldItalic.ttf new file mode 100755 index 0000000..7ac379f Binary files /dev/null and b/src/mplhep_data/fonts/firasans/FiraSans-BoldItalic.ttf differ diff --git a/src/mplhep_data/fonts/firasans/FiraSans-ExtraBold.ttf b/src/mplhep_data/fonts/firasans/FiraSans-ExtraBold.ttf new file mode 100755 index 0000000..f477455 Binary files /dev/null and b/src/mplhep_data/fonts/firasans/FiraSans-ExtraBold.ttf differ diff --git a/src/mplhep_data/fonts/firasans/FiraSans-ExtraBoldItalic.ttf b/src/mplhep_data/fonts/firasans/FiraSans-ExtraBoldItalic.ttf new file mode 100755 index 0000000..31b7404 Binary files /dev/null and b/src/mplhep_data/fonts/firasans/FiraSans-ExtraBoldItalic.ttf differ diff --git a/src/mplhep_data/fonts/firasans/FiraSans-ExtraLight.ttf b/src/mplhep_data/fonts/firasans/FiraSans-ExtraLight.ttf new file mode 100755 index 0000000..faf1cfb Binary files /dev/null and b/src/mplhep_data/fonts/firasans/FiraSans-ExtraLight.ttf differ diff --git a/src/mplhep_data/fonts/firasans/FiraSans-ExtraLightItalic.ttf b/src/mplhep_data/fonts/firasans/FiraSans-ExtraLightItalic.ttf new file mode 100755 index 0000000..3b35322 Binary files /dev/null and b/src/mplhep_data/fonts/firasans/FiraSans-ExtraLightItalic.ttf differ diff --git a/src/mplhep_data/fonts/firasans/FiraSans-Italic.ttf b/src/mplhep_data/fonts/firasans/FiraSans-Italic.ttf new file mode 100755 index 0000000..f8d4e7e Binary files /dev/null and b/src/mplhep_data/fonts/firasans/FiraSans-Italic.ttf differ diff --git a/src/mplhep_data/fonts/firasans/FiraSans-Light.ttf b/src/mplhep_data/fonts/firasans/FiraSans-Light.ttf new file mode 100755 index 0000000..63be25f Binary files /dev/null and b/src/mplhep_data/fonts/firasans/FiraSans-Light.ttf differ diff --git a/src/mplhep_data/fonts/firasans/FiraSans-LightItalic.ttf b/src/mplhep_data/fonts/firasans/FiraSans-LightItalic.ttf new file mode 100755 index 0000000..ee8ba59 Binary files /dev/null and b/src/mplhep_data/fonts/firasans/FiraSans-LightItalic.ttf differ diff --git a/src/mplhep_data/fonts/firasans/FiraSans-Medium.ttf b/src/mplhep_data/fonts/firasans/FiraSans-Medium.ttf new file mode 100755 index 0000000..efa2e0c Binary files /dev/null and b/src/mplhep_data/fonts/firasans/FiraSans-Medium.ttf differ diff --git a/src/mplhep_data/fonts/firasans/FiraSans-MediumItalic.ttf b/src/mplhep_data/fonts/firasans/FiraSans-MediumItalic.ttf new file mode 100755 index 0000000..817ed64 Binary files /dev/null and b/src/mplhep_data/fonts/firasans/FiraSans-MediumItalic.ttf differ diff --git a/src/mplhep_data/fonts/firasans/FiraSans-Regular.ttf b/src/mplhep_data/fonts/firasans/FiraSans-Regular.ttf new file mode 100755 index 0000000..159ccfd Binary files /dev/null and b/src/mplhep_data/fonts/firasans/FiraSans-Regular.ttf differ diff --git a/src/mplhep_data/fonts/firasans/FiraSans-SemiBold.ttf b/src/mplhep_data/fonts/firasans/FiraSans-SemiBold.ttf new file mode 100755 index 0000000..535a650 Binary files /dev/null and b/src/mplhep_data/fonts/firasans/FiraSans-SemiBold.ttf differ diff --git a/src/mplhep_data/fonts/firasans/FiraSans-SemiBoldItalic.ttf b/src/mplhep_data/fonts/firasans/FiraSans-SemiBoldItalic.ttf new file mode 100755 index 0000000..0d134e5 Binary files /dev/null and b/src/mplhep_data/fonts/firasans/FiraSans-SemiBoldItalic.ttf differ diff --git a/src/mplhep_data/fonts/firasans/FiraSans-Thin.ttf b/src/mplhep_data/fonts/firasans/FiraSans-Thin.ttf new file mode 100755 index 0000000..162ea86 Binary files /dev/null and b/src/mplhep_data/fonts/firasans/FiraSans-Thin.ttf differ diff --git a/src/mplhep_data/fonts/firasans/FiraSans-ThinItalic.ttf b/src/mplhep_data/fonts/firasans/FiraSans-ThinItalic.ttf new file mode 100755 index 0000000..6febc77 Binary files /dev/null and b/src/mplhep_data/fonts/firasans/FiraSans-ThinItalic.ttf differ diff --git a/src/mplhep_data/fonts/firasans/LICENSE_FiraSans b/src/mplhep_data/fonts/firasans/LICENSE_FiraSans new file mode 100644 index 0000000..df7fded --- /dev/null +++ b/src/mplhep_data/fonts/firasans/LICENSE_FiraSans @@ -0,0 +1,45 @@ +Copyright (c) 2014, Mozilla Foundation https://mozilla.org/ with Reserved Font Name Fira Sans. + +Copyright (c) 2014, Telefonica S.A. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL + +—————————————————————————————- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +—————————————————————————————- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. + +The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. + +DEFINITIONS +“Font Software” refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. + +“Reserved Font Name” refers to any names specified as such after the copyright statement(s). + +“Original Version” refers to the collection of Font Software components as distributed by the Copyright Holder(s). + +“Modified Version” refers to any derivative made by adding to, deleting, or substituting—in part or in whole—any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. + +“Author” refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. + +5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/src/mplhep_data/fonts/texgyreheros/LICENSE_TexGyreHeros b/src/mplhep_data/fonts/texgyreheros/LICENSE_TexGyreHeros new file mode 100755 index 0000000..e7f0068 --- /dev/null +++ b/src/mplhep_data/fonts/texgyreheros/LICENSE_TexGyreHeros @@ -0,0 +1,29 @@ +This is a preliminary version (2006-09-30), barring acceptance from +the LaTeX Project Team and other feedback, of the GUST Font License. +(GUST is the Polish TeX Users Group, http://www.gust.org.pl) + +For the most recent version of this license see +http://www.gust.org.pl/fonts/licenses/GUST-FONT-LICENSE.txt +or +http://tug.org/fonts/licenses/GUST-FONT-LICENSE.txt + +This work may be distributed and/or modified under the conditions +of the LaTeX Project Public License, either version 1.3c of this +license or (at your option) any later version. + +Please also observe the following clause: +1) it is requested, but not legally required, that derived works be + distributed only after changing the names of the fonts comprising this + work and given in an accompanying "manifest", and that the + files comprising the Work, as listed in the manifest, also be given + new names. Any exceptions to this request are also given in the + manifest. + + We recommend the manifest be given in a separate file named + MANIFEST-.txt, where is some unique identification + of the font family. If a separate "readme" file accompanies the Work, + we recommend a name of the form README-.txt. + +The latest version of the LaTeX Project Public License is in +http://www.latex-project.org/lppl.txt and version 1.3c or later +is part of all distributions of LaTeX version 2006/05/20 or later. diff --git a/src/mplhep_data/fonts/texgyreheros/texgyreheros-bold.otf b/src/mplhep_data/fonts/texgyreheros/texgyreheros-bold.otf new file mode 100755 index 0000000..2f23b92 Binary files /dev/null and b/src/mplhep_data/fonts/texgyreheros/texgyreheros-bold.otf differ diff --git a/src/mplhep_data/fonts/texgyreheros/texgyreheros-bolditalic.otf b/src/mplhep_data/fonts/texgyreheros/texgyreheros-bolditalic.otf new file mode 100755 index 0000000..556b8e1 Binary files /dev/null and b/src/mplhep_data/fonts/texgyreheros/texgyreheros-bolditalic.otf differ diff --git a/src/mplhep_data/fonts/texgyreheros/texgyreheros-italic.otf b/src/mplhep_data/fonts/texgyreheros/texgyreheros-italic.otf new file mode 100755 index 0000000..ae50725 Binary files /dev/null and b/src/mplhep_data/fonts/texgyreheros/texgyreheros-italic.otf differ diff --git a/src/mplhep_data/fonts/texgyreheros/texgyreheros-regular.otf b/src/mplhep_data/fonts/texgyreheros/texgyreheros-regular.otf new file mode 100755 index 0000000..ac6c32f Binary files /dev/null and b/src/mplhep_data/fonts/texgyreheros/texgyreheros-regular.otf differ diff --git a/src/mplhep_data/fonts/texgyreheros/texgyreheroscn-bold.otf b/src/mplhep_data/fonts/texgyreheros/texgyreheroscn-bold.otf new file mode 100755 index 0000000..dc5f63a Binary files /dev/null and b/src/mplhep_data/fonts/texgyreheros/texgyreheroscn-bold.otf differ diff --git a/src/mplhep_data/fonts/texgyreheros/texgyreheroscn-bolditalic.otf b/src/mplhep_data/fonts/texgyreheros/texgyreheroscn-bolditalic.otf new file mode 100755 index 0000000..2b46b47 Binary files /dev/null and b/src/mplhep_data/fonts/texgyreheros/texgyreheroscn-bolditalic.otf differ diff --git a/src/mplhep_data/fonts/texgyreheros/texgyreheroscn-italic.otf b/src/mplhep_data/fonts/texgyreheros/texgyreheroscn-italic.otf new file mode 100755 index 0000000..f5159dd Binary files /dev/null and b/src/mplhep_data/fonts/texgyreheros/texgyreheroscn-italic.otf differ diff --git a/src/mplhep_data/fonts/texgyreheros/texgyreheroscn-regular.otf b/src/mplhep_data/fonts/texgyreheros/texgyreheroscn-regular.otf new file mode 100755 index 0000000..5630217 Binary files /dev/null and b/src/mplhep_data/fonts/texgyreheros/texgyreheroscn-regular.otf differ diff --git a/tests/test_package.py b/tests/test_package.py new file mode 100644 index 0000000..0b52e20 --- /dev/null +++ b/tests/test_package.py @@ -0,0 +1,5 @@ +import mplhep_data as m + + +def test_version(): + assert m.__version__