-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into maintenance_update_TRAINING_integration_te…
…st_diffuse
- Loading branch information
Showing
9 changed files
with
176 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: CD | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
deployment: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
# make sure we have version info | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python --version | ||
pip install -U pip setuptools wheel | ||
python setup.py sdist | ||
- name: Publish package | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
__version__ = "0.4.0.post1" | ||
from .version import __version__ | ||
|
||
__all__ = ['__version__'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Try to use setuptools_scm to get the current version; this is only used | ||
# in development installations from the git repository. | ||
# see protopipe/version.py for details | ||
try: | ||
from setuptools_scm import get_version | ||
|
||
version = get_version(root="..", relative_to=__file__) | ||
except Exception as e: | ||
raise ImportError(f"setuptools_scm broken or not installed: {e}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# same as for ctapipe | ||
|
||
try: | ||
try: | ||
from ._dev_version import version | ||
except ImportError: | ||
from ._version import version | ||
except Exception: | ||
import warnings | ||
|
||
warnings.warn( | ||
"Could not determine protopipe version; this indicates a broken installation." | ||
" Install protopipe from PyPI, using the conda environment or from a local git repository." | ||
" Installing github's autogenerated source release tarballs " | ||
" does not include version information and should be avoided." | ||
) | ||
del warnings | ||
version = "0.0.0" | ||
|
||
__version__ = version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[build-system] | ||
requires = ["setuptools >= 40.6.0", "wheel", "setuptools_scm[toml]>=3.4"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.black] | ||
line-length = 88 | ||
target-version = ['py36', 'py37', 'py38'] | ||
include = '\.pyi?$' | ||
exclude = ''' | ||
/( | ||
\.eggs | ||
| \.git | ||
| \.hg | ||
| \.mypy_cache | ||
| \.tox | ||
| \.venv | ||
| _build | ||
| buck-out | ||
| build | ||
)/ | ||
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
[build_sphinx] | ||
source-dir = docs | ||
build-dir = docs/_build | ||
|
||
[upload_docs] | ||
upload-dir = docs/_build/html | ||
show-response = 1 | ||
|
||
[tool:pytest] | ||
minversion=3.0 | ||
norecursedirs=build docs/_build | ||
addopts = -v | ||
|
||
[aliases] | ||
test=pytest | ||
|
||
[metadata] | ||
name = protopipe | ||
description = Prototype pipeline for the Cherenkov Telescope Array (CTA) | ||
long_description = file: README.rst | ||
author = Dr. Michele Peresano et al. | ||
author_email = michele.peresano@cea.fr | ||
license = CeCILL-B Free Software License Agreement | ||
url = /~https://github.com/cta-observatory/protopipe | ||
edit_on_github = False | ||
github_project = cta-observatory/protopipe | ||
|
||
[flake8] | ||
exclude= | ||
build, | ||
docs, | ||
.eggs | ||
max-line-length=90 | ||
#ignore=W291,E303,W391,F403,F401,W503,W1202 | ||
select = C,E,F,W,B,B950 | ||
ignore = E501,W503,E203 | ||
per-file-ignores = | ||
*/__init__.py: F401, F403 | ||
|
||
[pycodestyle] | ||
count = False | ||
ignore = E501,W503,E203 | ||
max-line-length = 90 | ||
statistics = True | ||
|
||
[yapf] # a code reformatter | ||
based_on_style: pep8 | ||
dedent_closing_brackets: true | ||
coalesce_brackets: true | ||
join_multiple_lines: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters