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 cee515a
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 1 deletion.
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.

0 comments on commit cee515a

Please sign in to comment.