Skip to content

Commit

Permalink
Use pypi pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
ladinesa committed Sep 11, 2024
1 parent 52080e6 commit 6fe3e6e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 4 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Upload python package to pypi server and github release.
# Reference: https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/

name: Upload Python Package

on:
release:
types: [published]

jobs:
publish-to-pypi:
name: >-
Publish distribution to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/nomad-parser-plugins-atomistic
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "atomisticparsers"
name = "nomad-parser-plugins-atomistic"
version = "1.0"
description = "Collection of NOMAD parsers for atomistic codes."
readme = "README.md"
authors = [{ name = "The NOMAD Authors" }]
license = { file = "LICENSE" }
dependencies = [
"nomad-lab>=1.3.6.dev1",
"nomad-schema-plugin-simulation-workflow@git+https://github.com/nomad-coe/nomad-schema-plugin-simulation-workflow.git@develop",
"nomad-schema-plugin-run@git+https://github.com/nomad-coe/nomad-schema-plugin-run.git@develop",
"simulationparsers@git+https://github.com/nomad-coe/simulation-parsers.git@develop",
"nomad-schema-plugin-simulation-workflow>=1.0.1",
"nomad-schema-plugin-run@>=1.0.1",
"nomad-parser-plugins-simulation>=1.0.2",
"lxml>=5.2",
"mdanalysis==2.7.0",
"panedr>=0.2",
Expand Down

0 comments on commit 6fe3e6e

Please sign in to comment.