Skip to content

Commit f2e0b27

Browse files
authored
Release/0.1.0
2 parents f9e20d8 + ae23bb3 commit f2e0b27

File tree

16 files changed

+1204
-25
lines changed

16 files changed

+1204
-25
lines changed

.github/workflows/pre-commit.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Continuous Integration
2+
3+
on:
4+
[push, pull_request]
5+
6+
jobs:
7+
pre-commit:
8+
runs-on: ubuntu-latest
9+
timeout-minutes: 10
10+
strategy:
11+
matrix:
12+
python-version: [3.8]
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install python dependencies
20+
run: |
21+
pip install --upgrade pip
22+
pip install -e .[pre-commit]
23+
reentry scan
24+
- name: Run pre-commit
25+
run: |
26+
pre-commit install
27+
pre-commit run --all-files || ( git status --short ; git diff ; exit 1 )

.github/workflows/publish.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: Publish on Test PyPI and PyPI
2+
3+
on:
4+
push:
5+
branches:
6+
# Commits pushed to release/ branches are published on Test PyPI if they
7+
# have a new version number.
8+
- "release/**"
9+
tags:
10+
# Tags that start with the "v" prefix are published on PyPI.
11+
- "v*"
12+
13+
jobs:
14+
15+
build-and-publish-test:
16+
17+
name: Build and publish on TestPyPI
18+
if: startsWith(github.ref, 'refs/heads/release/')
19+
20+
runs-on: ubuntu-latest
21+
environment:
22+
name: Test PyPI
23+
url: https://test.pypi.org/project/aiidalab/
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
28+
- name: Set up Python 3.8
29+
uses: actions/setup-python@v2
30+
with:
31+
python-version: 3.8
32+
33+
- name: Install pypa/build
34+
run: python -m pip install build
35+
36+
- name: Build a binary wheel and a source tarball
37+
run: >-
38+
python -m
39+
build
40+
--sdist
41+
--wheel
42+
--outdir dist/
43+
.
44+
- name: Publish distribution on Test PyPI
45+
uses: pypa/gh-action-pypi-publish@release/v1
46+
with:
47+
user: __token__
48+
password: ${{ secrets.PYPI_API_TOKEN }}
49+
repository_url: https://test.pypi.org/legacy/
50+
51+
build-and-publish:
52+
53+
name: Build and publish on PyPI
54+
if: startsWith(github.ref, 'refs/tags')
55+
56+
runs-on: ubuntu-latest
57+
environment:
58+
name: PyPI
59+
url: https://pypi.org/project/aiidalab/
60+
61+
steps:
62+
- uses: actions/checkout@v2
63+
64+
- name: Set up Python 3.8
65+
uses: actions/setup-python@v2
66+
with:
67+
python-version: 3.8
68+
69+
- name: Install pypa/build
70+
run: python -m pip install build
71+
72+
- name: Build a binary wheel and a source tarball
73+
run: >-
74+
python -m
75+
build
76+
--sdist
77+
--wheel
78+
--outdir dist/
79+
.
80+
- name: Publish distribution on PyPI
81+
uses: pypa/gh-action-pypi-publish@release/v1
82+
with:
83+
user: __token__
84+
password: ${{ secrets.PYPI_API_TOKEN }}

.gitignore

Lines changed: 204 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,204 @@
1+
2+
# Created by https://www.toptal.com/developers/gitignore/api/vscode,macos,vim,python
3+
# Edit at https://www.toptal.com/developers/gitignore?templates=vscode,macos,vim,python
4+
5+
### macOS ###
6+
# General
7+
.DS_Store
8+
.AppleDouble
9+
.LSOverride
10+
11+
# Icon must end with two \r
12+
Icon
13+
14+
15+
# Thumbnails
16+
._*
17+
18+
# Files that might appear in the root of a volume
19+
.DocumentRevisions-V100
20+
.fseventsd
21+
.Spotlight-V100
22+
.TemporaryItems
23+
.Trashes
24+
.VolumeIcon.icns
25+
.com.apple.timemachine.donotpresent
26+
27+
# Directories potentially created on remote AFP share
28+
.AppleDB
29+
.AppleDesktop
30+
Network Trash Folder
31+
Temporary Items
32+
.apdisk
33+
34+
### Python ###
35+
# Byte-compiled / optimized / DLL files
36+
__pycache__/
37+
*.py[cod]
38+
*$py.class
39+
40+
# C extensions
41+
*.so
42+
43+
# Distribution / packaging
44+
.Python
45+
build/
46+
develop-eggs/
47+
dist/
48+
downloads/
49+
eggs/
50+
.eggs/
51+
lib/
52+
lib64/
53+
parts/
54+
sdist/
55+
var/
56+
wheels/
57+
pip-wheel-metadata/
58+
share/python-wheels/
59+
*.egg-info/
60+
.installed.cfg
61+
*.egg
62+
MANIFEST
63+
64+
# PyInstaller
65+
# Usually these files are written by a python script from a template
66+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
67+
*.manifest
68+
*.spec
69+
70+
# Installer logs
71+
pip-log.txt
72+
pip-delete-this-directory.txt
73+
74+
# Unit test / coverage reports
75+
htmlcov/
76+
.tox/
77+
.nox/
78+
.coverage
79+
.coverage.*
80+
.cache
81+
nosetests.xml
82+
coverage.xml
83+
*.cover
84+
*.py,cover
85+
.hypothesis/
86+
.pytest_cache/
87+
pytestdebug.log
88+
89+
# Translations
90+
*.mo
91+
*.pot
92+
93+
# Django stuff:
94+
*.log
95+
local_settings.py
96+
db.sqlite3
97+
db.sqlite3-journal
98+
99+
# Flask stuff:
100+
instance/
101+
.webassets-cache
102+
103+
# Scrapy stuff:
104+
.scrapy
105+
106+
# Sphinx documentation
107+
docs/_build/
108+
doc/_build/
109+
110+
# PyBuilder
111+
target/
112+
113+
# Jupyter Notebook
114+
.ipynb_checkpoints
115+
116+
# IPython
117+
profile_default/
118+
ipython_config.py
119+
120+
# pyenv
121+
.python-version
122+
123+
# pipenv
124+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
125+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
126+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
127+
# install all needed dependencies.
128+
#Pipfile.lock
129+
130+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
131+
__pypackages__/
132+
133+
# Celery stuff
134+
celerybeat-schedule
135+
celerybeat.pid
136+
137+
# SageMath parsed files
138+
*.sage.py
139+
140+
# Environments
141+
.env
142+
.venv
143+
env/
144+
venv/
145+
ENV/
146+
env.bak/
147+
venv.bak/
148+
pythonenv*
149+
150+
# Spyder project settings
151+
.spyderproject
152+
.spyproject
153+
154+
# Rope project settings
155+
.ropeproject
156+
157+
# mkdocs documentation
158+
/site
159+
160+
# mypy
161+
.mypy_cache/
162+
.dmypy.json
163+
dmypy.json
164+
165+
# Pyre type checker
166+
.pyre/
167+
168+
# pytype static type analyzer
169+
.pytype/
170+
171+
# profiling data
172+
.prof
173+
174+
### Vim ###
175+
# Swap
176+
[._]*.s[a-v][a-z]
177+
!*.svg # comment out if you don't need vector files
178+
[._]*.sw[a-p]
179+
[._]s[a-rt-v][a-z]
180+
[._]ss[a-gi-z]
181+
[._]sw[a-p]
182+
183+
# Session
184+
Session.vim
185+
Sessionx.vim
186+
187+
# Temporary
188+
.netrwhist
189+
*~
190+
# Auto-generated tag files
191+
tags
192+
# Persistent undo
193+
[._]*.un~
194+
195+
### vscode ###
196+
.vscode/*
197+
!.vscode/settings.json
198+
!.vscode/tasks.json
199+
!.vscode/launch.json
200+
!.vscode/extensions.json
201+
*.code-workspace
202+
203+
/dev_nb
204+
# End of https://www.toptal.com/developers/gitignore/api/vscode,macos,vim,python

.pre-commit-config.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# # Install pre-commit hooks via
2+
# pre-commit install
3+
4+
repos:
5+
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
rev: v3.4.0
7+
hooks:
8+
- id: check-yaml
9+
- id: check-json
10+
- id: trailing-whitespace
11+
12+
- repo: https://github.com/psf/black
13+
rev: 20.8b1
14+
hooks:
15+
- id: black
16+
language_version: python3
17+
name: black
18+
exclude: versioneer.py|pyepal/_version.py|^docs/
19+
entry: black
20+
types: [python]
21+
22+
- repo: https://github.com/pre-commit/mirrors-isort
23+
rev: "v5.6.4" # Use the revision sha / tag you want to point at
24+
hooks:
25+
- id: isort
26+
name: isort
27+
language: system
28+
types: [python]
29+
entry: isort
30+
31+
- repo: local
32+
hooks:
33+
# prospector: collection of linters
34+
- id: pylint
35+
name: pylint
36+
entry: pylint
37+
types: [python]
38+
language: system
39+

0 commit comments

Comments
 (0)