Skip to content

Commit c91a891

Browse files
author
automated_user
committed
Initial commit by pymetrius
0 parents  commit c91a891

Some content is hidden

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

58 files changed

+2218
-0
lines changed

.bumpversion.cfg

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[bumpversion]
2+
current_version = 0.1.0.dev1
3+
commit = False
4+
tag = False
5+
allow_dirty = False
6+
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+)(?P<build>\d+))?
7+
serialize =
8+
{major}.{minor}.{patch}.{release}{build}
9+
{major}.{minor}.{patch}
10+
11+
[bumpversion:part:release]
12+
optional_value = prod
13+
first_value = dev
14+
values =
15+
dev
16+
prod
17+
18+
[bumpversion:part:build]
19+
20+
[bumpversion:file:setup.py]
21+
22+
[bumpversion:file:src/pymetrius_output/__init__.py]

.coveragerc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[run]
2+
source = src/pymetrius_output

.github/workflows/publish.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Python
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: 3.8
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install setuptools wheel twine
20+
- name: Build and publish
21+
env:
22+
TWINE_USERNAME: ${{ secrets.PYPI_REPO_USER }}
23+
TWINE_PASSWORD: ${{ secrets.PYPI_REPO_PASS }}
24+
run: |
25+
python setup.py sdist bdist_wheel
26+
twine upload dist/*

.github/workflows/tox.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Merge develop, run tests and build documentation
2+
3+
on:
4+
pull_request:
5+
branches: [develop]
6+
push:
7+
branches: [develop, master]
8+
workflow_dispatch:
9+
inputs:
10+
reason:
11+
description: Why did you trigger the pipeline?
12+
required: False
13+
default: Check if it runs again due to external changes
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
# pandoc needed for docu, see https://nbsphinx.readthedocs.io/en/0.7.1/installation.html?highlight=pandoc#pandoc
21+
- name: Install Non-Python Packages
22+
run: sudo apt-get update -yq && sudo apt-get -yq install pandoc
23+
- uses: actions/[email protected]
24+
with:
25+
fetch-depth: 0
26+
lfs: true
27+
persist-credentials: false
28+
# lfs=true is not enough, see https://stackoverflow.com/questions/61463578/github-actions-actions-checkoutv2-lfs-true-flag-not-converting-pointers-to-act
29+
- name: Checkout LFS Objects
30+
run: git lfs pull
31+
- uses: actions/checkout@v2
32+
with:
33+
fetch-depth: 0
34+
- name: Merge develop into current branch
35+
if: github.ref != 'refs/heads/develop'
36+
run: |
37+
git fetch origin develop:develop --update-head-ok
38+
git merge develop
39+
- name: Setup Python 3.8
40+
uses: actions/setup-python@v1
41+
with:
42+
python-version: 3.8
43+
- name: Cache tox envs and pip packages
44+
uses: actions/cache@v2
45+
with:
46+
path: |
47+
~/.cache/pip
48+
.tox
49+
key: ${{runner.os}}-${{github.ref}}-${{hashFiles('requirements.txt', 'setup.py', 'tox.ini')}}
50+
- name: Install Tox and any other packages
51+
run: pip install tox
52+
- name: Run Tox
53+
run: tox
54+
- name: Prepare Pages
55+
if: github.ref == 'refs/heads/develop'
56+
run: |
57+
mv docs/_build/html/* public/docs
58+
mv htmlcov/* public/coverage
59+
mv pylint.html public/pylint/index.html
60+
- name: Deploy Pages
61+
uses: JamesIves/[email protected]
62+
if: github.ref == 'refs/heads/develop'
63+
with:
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
BRANCH: gh-pages
66+
FOLDER: public
67+
TARGET_FOLDER: .
68+
CLEAN: true
69+
SINGLE_COMMIT: true

.gitignore

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
#
2+
.idea
3+
config_local.json
4+
temp
5+
6+
# Byte-compiled / optimized / DLL files
7+
__pycache__/
8+
*.py[cod]
9+
*$py.class
10+
11+
# C extensions
12+
*.so
13+
14+
# Distribution / packaging
15+
.Python
16+
build/
17+
develop-eggs/
18+
dist/
19+
downloads/
20+
eggs/
21+
.eggs/
22+
lib/
23+
lib64/
24+
parts/
25+
sdist/
26+
var/
27+
wheels/
28+
pip-wheel-metadata/
29+
share/python-wheels/
30+
*.egg-info/
31+
.installed.cfg
32+
*.egg
33+
MANIFEST
34+
35+
# PyInstaller
36+
# Usually these files are written by a python script from a template
37+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
38+
*.manifest
39+
*.spec
40+
41+
# Installer logs
42+
pip-log.txt
43+
pip-delete-this-directory.txt
44+
45+
# Unit test / coverage reports
46+
htmlcov/
47+
.tox/
48+
.nox/
49+
.coverage
50+
.coverage.*
51+
.cache
52+
nosetests.xml
53+
coverage.xml
54+
*.cover
55+
*.py,cover
56+
.hypothesis/
57+
.pytest_cache/
58+
59+
# Translations
60+
*.mo
61+
*.pot
62+
63+
# Django stuff:
64+
*.log
65+
local_settings.py
66+
db.sqlite3
67+
db.sqlite3-journal
68+
69+
# Flask stuff:
70+
instance/
71+
.webassets-cache
72+
73+
# Scrapy stuff:
74+
.scrapy
75+
76+
# Sphinx documentation
77+
docs/_build/
78+
79+
# PyBuilder
80+
target/
81+
82+
# Jupyter Notebook
83+
.ipynb_checkpoints
84+
85+
# IPython
86+
profile_default/
87+
ipython_config.py
88+
89+
# pyenv
90+
.python-version
91+
92+
# pipenv
93+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
94+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
95+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
96+
# install all needed dependencies.
97+
#Pipfile.lock
98+
99+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
100+
__pypackages__/
101+
102+
# Celery stuff
103+
celerybeat-schedule
104+
celerybeat.pid
105+
106+
# SageMath parsed files
107+
*.sage.py
108+
109+
# Environments
110+
.env
111+
.venv
112+
env/
113+
venv/
114+
ENV/
115+
env.bak/
116+
venv.bak/
117+
118+
# Spyder project settings
119+
.spyderproject
120+
.spyproject
121+
122+
# Rope project settings
123+
.ropeproject
124+
125+
# mkdocs documentation
126+
/site
127+
128+
# mypy
129+
.mypy_cache/
130+
.dmypy.json
131+
dmypy.json
132+
133+
# Pyre type checker
134+
.pyre/
135+
136+
# reports
137+
pylint.html
138+
.pylint.d

0 commit comments

Comments
 (0)