Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@ comment:
behavior: default
flags: null
paths: null
ignore:
- "mdpow-molconfgen/_version.py"
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Build and upload to PyPi

on:
push:
tags:
- "*"
release:
types:
- published

jobs:
test_pypi_push:
environment:
name: deploy
url: https://test.pypi.org/p/mdpow-molconfgen
permissions:
id-token: write
if: |
github.repository == 'Becksteinlab/mdpow-molconfgen' &&
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/'))
name: Build, upload and test pure Python wheels to TestPypi
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: testpypi_deploy
uses: MDAnalysis/pypi-deployment@main
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
with:
test_submission: true
package_name: 'molconfgen'

pypi_push:
environment:
name: deploy
url: https://pypi.org/p/mdpow-molconfgen
permissions:
id-token: write
if: |
github.repository == 'Becksteinlab/mdpow-molconfgen' &&
(github.event_name == 'release' && github.event.action == 'published')
name: Build, upload and test pure Python wheels to PyPi
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: pypi_deploy
uses: MDAnalysis/pypi-deployment@main
if: github.event_name == 'release' && github.event.action == 'published'
with:
package_name: 'molconfgen'
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,16 @@ ENV/

# mypy
.mypy_cache/

# macOS finder
.DS_Store

# poetry
poetry.lock

# generated data files when running notebooks
*.trr
\#*

# emacs backup files
*~
Expand All @@ -119,5 +122,6 @@ poetry.lock
SANDBOX/
tmp/

# versioningit generated files
molconfgen/_version.py

# cursor config
settings.json
4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ include MANIFEST.in
include AUTHORS.md CHANGELOG.md CODE_OF_CONDUCT.md README.md

graft molconfgen
recursive-include molconfgen/data *
global-exclude *.py[cod] __pycache__ *.so *~
recursive-include molconfgen/data/*
global-exclude *.py[cod] __pycache__ *.so *~ .DS_Store .ipynb_checkpoints/*
18 changes: 13 additions & 5 deletions molconfgen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,23 @@
mdpow-molconfgen
================

Generation of conformers of small molecules.
Generation of conformers of small molecules via dihedral scanning.
Evaluate the potential energy of each conformer in vacuo.

The package is meant to work with the input that is used for the
MDPOW_ package.

.. _MDPOW:: https://mdpow.readthedocs.io
"""

# Version is handled by versioningit
try:
from ._version import __version__
except ImportError:
__version__ = "unknown"
from importlib.metadata import version

__version__ = version("mdpow-molconfgen")

# Add imports here
from . import chem
from . import sampler
from . import output
from . import analyze
from . import workflows
16 changes: 9 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,20 @@ doc = [
# documentation = "https://mdpow-molconfgen.readthedocs.io"

[tool.setuptools]
packages = ["molconfgen", "molconfgen.tests"]
packages = ["molconfgen", "molconfgen.tests", "molconfgen.data"]
include-package-data = true

[tool.versioningit]
vcs = "git"
default-version = "0.0.0"
default-version = "1+unknown"

[tool.versioningit.tag2version]
regex = "^(?P<version>[0-9]+\\.[0-9]+\\.[0-9]+)$"
[tool.versioningit.vcs]
method = "git"
match = ["*"]

[tool.versioningit.write]
file = "molconfgen/_version.py"
[tool.versioningit.format]
distance = "{base_version}+{distance}.{vcs}{rev}"
dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"
distance-dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"

[tool.pytest.ini_options]
minversion = "6.0"
Expand Down
Loading