Skip to content

Commit

Permalink
Devops: Move package into src/ directory
Browse files Browse the repository at this point in the history
This package directory structure is fast becoming the standard in the
Python packaging community. Even though the PyPA is not yet officially
recommending it as the standard, there are various articles out there
outlining the advantages of this structure over having the source folder
at the root of the repository.
  • Loading branch information
sphuber committed Dec 22, 2023
1 parent 6b17722 commit 24c443e
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/validate_release_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ def get_version_from_module(content: str) -> str:
args = parser.parse_args()
assert args.GITHUB_REF.startswith('refs/tags/v'), f'GITHUB_REF should start with "refs/tags/v": {args.GITHUB_REF}'
tag_version = args.GITHUB_REF[11:]
package_version = get_version_from_module(Path('aiida_wien2k/__init__.py').read_text(encoding='utf-8'))
package_version = get_version_from_module(Path('src/aiida_wien2k/__init__.py').read_text(encoding='utf-8'))
error_message = f'The tag version `{tag_version}` is different from the package version `{package_version}`'
assert tag_version == package_version, error_message
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion tests/calculations/test_scf123_lapw.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

import pytest
from aiida.orm import Dict, SinglefileData

from aiida_wien2k.calculations.run123_lapw import Wien2kRun123Lapw


Expand Down

0 comments on commit 24c443e

Please sign in to comment.