Skip to content

Commit

Permalink
WIP: python packaging using setuptools.
Browse files Browse the repository at this point in the history
  • Loading branch information
HanatoK committed Feb 21, 2021
1 parent 0578b76 commit 737014d
Show file tree
Hide file tree
Showing 53 changed files with 32 additions and 7 deletions.
Empty file added BFEE2/__init__.py
Empty file.
Empty file added BFEE2/commonTools/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions gui.py → BFEE2/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from PySide2.QtWidgets import QVBoxLayout, QHBoxLayout, QGridLayout, QLabel, QGroupBox, QLineEdit, QSplitter
from PySide2.QtWidgets import QComboBox, QPushButton, QListWidget, QFileDialog, QCheckBox, QToolBar
from PySide2.QtGui import QIcon, QFont
import postTreatment, inputGenerator
from commonTools import commonSlots, ploter, fileParser
import BFEE2.postTreatment, BFEE2.inputGenerator
from BFEE2.commonTools import commonSlots, ploter, fileParser

VERSION = 'BFEEstimator v2.1alpha'

Expand Down
6 changes: 3 additions & 3 deletions inputGenerator.py → BFEE2/inputGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import os, sys, shutil, subprocess
import numpy as np
from commonTools import fileParser
from templates import configTemplate, scriptTemplate
from templates.gromacs.BFEEGromacs import BFEEGromacs
from BFEE2.commonTools import fileParser
from BFEE2.templates import configTemplate, scriptTemplate
from BFEE2.templates.gromacs.BFEEGromacs import BFEEGromacs

class inputGenerator():
''' generate all the inputs and define corresponding slots '''
Expand Down
File renamed without changes.
Empty file added BFEE2/templates/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions main.py → bin/BFEE2Gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@

import sys
from PySide2.QtWidgets import QApplication
import gui
import BFEE2.gui as gui

if __name__ == '__main__':

app = QApplication(sys.argv)
ex = gui.mainUI()
sys.exit(app.exec_())
sys.exit(app.exec_())
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = [
"setuptools>=42",
"wheel"
]
build-backend = "setuptools.build_meta"
18 changes: 18 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[metadata]
name = BFEE2
version = 2.1.0
author = Haohao Fu, Haochuan Chen, Wensheng Cai and Chris Chipot
author_email = [email protected]
maintainer = Haohao Fu
maintainer_email = [email protected]
url = https://github.com/fhh2626/BFEE2
license = GPLv3
description = Binding Free Energy Estimator 2
long_description = file: README.md
long_description_content_type = text/markdown

[options]
packages = find:
python_requires = >=3.6
scripts =
bin/BFEE2Gui.py
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from setuptools import setup; setup()

0 comments on commit 737014d

Please sign in to comment.