Skip to content

Commit

Permalink
Add pyqt-distutils to dependencies and write basic setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxxi committed Apr 27, 2019
1 parent 3f02922 commit a01041d
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pyuic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"files": [
[
"uilib/views/forms/*.ui",
"uilib/views"
]
],
"pyrcc": "pyrcc5",
"pyrcc_options": "",
"pyuic": "pyuic5",
"pyuic_options": "--from-imports"
}
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
cycler==0.10.0
decorator==4.4.0
docopt==0.6.2
imageio==2.5.0
kiwisolver==1.0.1
matplotlib==3.0.3
networkx==2.3
numpy==1.16.2
Pillow==6.0.0
pyparsing==2.4.0
pyqt-distutils==0.7.3
PyQt5==5.12.1
PyQt5-sip==4.19.15
python-dateutil==2.8.0
Expand Down
21 changes: 21 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from setuptools import setup, find_packages
from uilib.fileIO import appVersionStr
# import build_ui
try:
from pyqt_distutils.build_ui import build_ui
cmdclass = {'build_ui': build_ui}
except ImportError:
build_ui = None # user won't have pyqt_distutils when deploying
cmdclass = {}

requirements = list(open('requirements.txt').read().splitlines())

setup(
name='openMotor',
version=appVersionStr,
packages=find_packages(),
url='https://github.com/reilleya/openMotor',
install_requires=requirements,
long_description=open('README.md').read(),
cmdclass=cmdclass
)
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.

0 comments on commit a01041d

Please sign in to comment.