-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Install packages with poetry * Add mongomock dev dependency * Create initial GitHub Actions workflow * Fix parser grammar weights * Update pymongo insertion function * Add poetry entrypoint for CLI * Update pymongo update function * Move contents of setup to pyproject * Fix unit tests * Remove travis config * Update dependencies * Update gitignore --------- Co-authored-by: ElliottKasoar <[email protected]>
- Loading branch information
1 parent
8157bbd
commit d00f0b8
Showing
8 changed files
with
76 additions
and
68 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: ci | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install poetry | ||
run: pipx install poetry | ||
|
||
- name: Install python dependencies | ||
run: | | ||
poetry env use ${{ matrix.python-version }} | ||
poetry install --with dev | ||
- name: Run unit tests | ||
run: | | ||
poetry run python -m unittest -v tests | ||
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 was deleted.
Oops, something went wrong.
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,37 @@ | ||
[tool.poetry] | ||
name = "abcd" | ||
version = "0.6.0" | ||
description = "This is a package which helps to store and share atomistic data." | ||
authors = ["Adam Fekete", "Gabor Csanyi"] | ||
keywords=["ase", "database", "mongo", "flask", "opensearch"] | ||
readme = "README.md" | ||
homepage = "https://libatoms.github.io/abcd/" | ||
repository = "https://github.com/libatoms/abcd" | ||
documentation = "https://libatoms.github.io/abcd/" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.9" | ||
notebook = "^7.2" | ||
numpy = "^1.26" | ||
tqdm = "^4.66" | ||
pymongo = "^4.7.3" | ||
matplotlib = "^3.9" | ||
ase = "^3.23" | ||
lark = "^1.1.9" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
mongomock = "^4.1.2" | ||
|
||
[tool.poetry.extras] | ||
tests = ["mongomock"] | ||
mongo = ["pymongo"] | ||
http = ["requests"] | ||
server-api = ["flask"] | ||
server-app = ["flask", "Flask-Nav", "Flask-MongoEngine", "gunicorn", "flask-paginate"] | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.poetry.plugins."console_scripts"] | ||
"abcd" = "abcd.frontends.commandline:main" |
This file was deleted.
Oops, something went wrong.