Skip to content

Commit 7d953c6

Browse files
committed
added git attributes
1 parent a93fbda commit 7d953c6

11 files changed

Lines changed: 365 additions & 0 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/scatterkit/_version.py export-subst

.github/ISSUE_TEMPLATE/Bug.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
**Expected behavior**
8+
9+
<!--
10+
A clear and concise description of what you want to do and what you think should happen. (Code to reproduce the behavior can be added below).
11+
-->
12+
13+
**Actual behavior**
14+
15+
<!--
16+
What happened instead. Add as much detail as you can. Include (copy and paste) stack traces and any output.
17+
-->
18+
19+
20+
**Code to reproduce the behavior**
21+
22+
<!--
23+
Show us how to reproduce the failiure. If you can, use trajectory files from the test data folder in `tests/data` or `https://github.com/maicos-devel/maicos/tree/main/tests/data`
24+
25+
You can also attach (small) files to the section below or add URLs where to download an archive with all necessary files.
26+
27+
Please try to create an input set that is as minimal and small as possible and reproduces the bug as quickly as possible.
28+
29+
``` python
30+
import maicos
31+
32+
....
33+
34+
```
35+
-->
36+
37+
**Current version**
38+
39+
<!--
40+
Please complete the following information to help us understand the issue better.
41+
42+
- Which version are you using? (run `python -c "import maicos as mda; print(maicos.__version__)"`)
43+
- Which version of Python (`python -V`)?
44+
- Which operating system?
45+
---

.github/ISSUE_TEMPLATE/Feature.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
5+
---
6+
7+
**Is your feature request related to a problem? Please describe.**
8+
<!--A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]-->
9+
10+
**Describe the solution you'd like**
11+
<!--A clear and concise description of what you want to happen.-->
12+
13+
**Describe alternatives you've considered**
14+
<!--A clear and concise description of any alternative solutions or features you've considered.-->
15+
16+
**Additional context**
17+
<!--Add any other context or screenshots about the feature request here.-->

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: monthly
7+
open-pull-requests-limit: 1
8+
groups:
9+
action-dependencies:
10+
patterns:
11+
- "*" # A wildcard to create one PR for all dependencies in the ecosystem

.github/pull_request_template.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!-- What does this implement/fix? Explain your changes here. -->
2+
3+
Fixes #
4+
5+
Changes made in this Pull Request:
6+
-
7+
8+
PR Checklist
9+
------------
10+
- [ ] Docs?
11+
- [ ] Issue raised/referenced?

.github/workflows/build.yml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
paths:
6+
# build wheels in PR if this file changed
7+
- ".github/workflows/build.yml"
8+
# build wheels in PR if any of the build system files changed
9+
- "**/setup.py"
10+
- "**/pyproject.toml"
11+
- "**/MANIFEST.in"
12+
schedule:
13+
# check the build once a week on mondays
14+
- cron: "0 10 * * 1"
15+
workflow_dispatch:
16+
# allow manual triggering of the workflow
17+
18+
jobs:
19+
build-wheels:
20+
name: wheels / ${{ matrix.os }}
21+
runs-on: ${{ matrix.os }}
22+
strategy:
23+
matrix:
24+
# macos-13 is an intel runner, macos-15 is apple silicon
25+
os: [ubuntu-24.04, ubuntu-24.04-arm, windows-2025, macos-13, macos-15]
26+
27+
steps:
28+
- uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 0
31+
32+
- name: Build wheels
33+
uses: pypa/cibuildwheel@v3.1.3
34+
35+
- uses: actions/upload-artifact@v4
36+
with:
37+
name: wheel-${{ matrix.os }}
38+
path: ./wheelhouse/*.whl
39+
40+
build-sdist:
41+
name: sdist
42+
runs-on: ubuntu-latest
43+
44+
steps:
45+
- uses: actions/checkout@v4
46+
with:
47+
fetch-depth: 0
48+
49+
- name: setup Python
50+
uses: actions/setup-python@v5
51+
with:
52+
python-version: "3.13"
53+
check-latest: true
54+
55+
- name: Install dependencies
56+
run: python -m pip install wheel build tox
57+
58+
- name: Build sdist
59+
run: python -m build --sdist --outdir dist .
60+
61+
- name: Test build integrity
62+
run: tox -e build
63+
64+
- uses: actions/upload-artifact@v4
65+
with:
66+
name: sdist
67+
path: dist/*.tar.gz
68+
69+
release:
70+
name: Release package
71+
if: startsWith(github.ref, 'refs/tags/v') && github.event_name == 'workflow_dispatch'
72+
needs: [build-wheels, build-sdist]
73+
runs-on: ubuntu-latest
74+
environment:
75+
name: pypi
76+
url: https://pypi.org/project/maicos
77+
permissions:
78+
id-token: write
79+
contents: write
80+
81+
steps:
82+
- name: Download all artifacts
83+
uses: actions/download-artifact@v4
84+
with:
85+
path: dist
86+
merge-multiple: true
87+
88+
- name: Publish distribution to PyPI
89+
uses: pypa/gh-action-pypi-publish@release/v1
90+
91+
- name: Publish to GitHub release
92+
uses: softprops/action-gh-release@v2
93+
with:
94+
files: |
95+
dist/*.tar.gz
96+
dist/*.whl
97+
prerelease: ${{ contains(github.ref, '-rc') }}
98+
env:
99+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/docs.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches: [main]
6+
tags: ["*"]
7+
pull_request:
8+
# Check all PR
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: setup Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: "3.13"
24+
check-latest: true
25+
26+
- name: install dependencies
27+
run: python -m pip install tox gitpython
28+
29+
- name: build documentation
30+
run: tox -e docs
31+
32+
- name: Check for Changelog
33+
if: github.event_name == 'pull_request'
34+
run: python ./developer/check_changelog.py
35+
36+
- name: put documentation in the website
37+
run: |
38+
git clone https://github.com/$GITHUB_REPOSITORY --branch gh-pages gh-pages
39+
rm -rf gh-pages/.git
40+
cd gh-pages
41+
42+
REF_KIND=$(echo $GITHUB_REF | cut -d / -f2)
43+
if [[ "$REF_KIND" == "tags" ]]; then
44+
DOC_KIND="stable"
45+
else
46+
DOC_KIND="latest"
47+
fi
48+
49+
rm -rf $DOC_KIND
50+
mv ../docs/build/html $DOC_KIND
51+
52+
- name: deploy to gh-pages
53+
if: github.event_name == 'push'
54+
uses: peaceiris/actions-gh-pages@v4
55+
with:
56+
github_token: ${{ secrets.GITHUB_TOKEN }}
57+
publish_dir: ./gh-pages/
58+
force_orphan: true

.github/workflows/lint.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Lint
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.13"
20+
check-latest: true
21+
22+
- name: Install dependencies
23+
run: python -m pip install tox
24+
25+
- name: Lint the code
26+
run: tox -e lint
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Read the Docs link
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
8+
permissions:
9+
pull-requests: write
10+
11+
jobs:
12+
documentation-links:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: readthedocs/actions/preview@v1
16+
with:
17+
project-slug: maicos

.github/workflows/tests-dev.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Tests dev
2+
3+
on:
4+
schedule:
5+
# check once a week on mondays
6+
- cron: '0 10 * * 1'
7+
8+
jobs:
9+
tests-dev:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: ["3.10", "3.13"]
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install tests dependencies
26+
run: python -m pip install tox
27+
28+
- name: Run tests against MDAnalysis dev version
29+
run: tox -e tests-dev

0 commit comments

Comments
 (0)