This repository has been archived by the owner on Nov 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
1,760 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
fomod-editor | ||
2.7.11 | ||
miniconda3-3.19.0/envs/fomod-editor | ||
3.5.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Changelog | ||
|
||
0.0.1 (2016-03-15) | ||
|
||
* GUI draft completed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# -*- mode: ruby -*- vi: set ft=ruby : | ||
|
||
|
||
Vagrant.configure(2) do |config| | ||
config.vm.define "ubuntu", primary: true do |ubuntu| | ||
ubuntu.vm.box = "ubuntu/wily64" | ||
ubuntu.vm.provision :shell, :path => "dev/vagrant-ubuntu-bootstrap.sh", :privileged => false | ||
end | ||
|
||
config.ssh.insert_key = false | ||
|
||
config.vm.provider "virtualbox" do |vb| | ||
vb.memory = "1024" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
install: | ||
- set PATH=C:\Miniconda-x64;C:\Miniconda-x64\Scripts;%PATH% | ||
- conda create -y -n fomod-editor -c https://conda.anaconda.org/mmcauliffe -c https://conda.anaconda.org/anaconda pyqt5=5.5.1 python=3.5.1 lxml=3.5.0 | ||
- activate fomod-editor | ||
- pip install pip -U | ||
- pip install setuptools -U | ||
- pip install -r reqs.txt | ||
|
||
build: off | ||
|
||
test_script: | ||
- inv build | ||
|
||
artifacts: | ||
- path: dist\* | ||
|
||
deploy: | ||
- provider: GitHub | ||
auth_token: | ||
secure: iMaZrvVT+OI/9jRs8LyOvmzVqIBa0/jpiK96wNzZww/KqKsMcferhIeSK7faNzOo | ||
artifact: 'dist\*.zip' | ||
force_update: true | ||
on: | ||
branch: master | ||
appveyor_repo_tag: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# -*- mode: python -*- | ||
|
||
block_cipher = None | ||
|
||
|
||
a = Analysis(['dev/pyinstaller-bootstrap.py'], | ||
pathex=['/vagrant'], | ||
binaries=None, | ||
datas=[('fomod/gui/logos', 'fomod/gui/logos')], | ||
hiddenimports=[], | ||
hookspath=[], | ||
runtime_hooks=[], | ||
excludes=[], | ||
win_no_prefer_redirects=False, | ||
win_private_assemblies=False, | ||
cipher=block_cipher) | ||
pyz = PYZ(a.pure, a.zipped_data, | ||
cipher=block_cipher) | ||
exe = EXE(pyz, | ||
a.scripts, | ||
exclude_binaries=True, | ||
name='designer', | ||
debug=False, | ||
strip=False, | ||
upx=True, | ||
console=False ) | ||
coll = COLLECT(exe, | ||
a.binaries, | ||
a.zipfiles, | ||
a.datas, | ||
strip=False, | ||
upx=True, | ||
name='FOMOD Designer') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# -*- mode: python -*- | ||
|
||
block_cipher = None | ||
|
||
|
||
a = Analysis(['dev\\pyinstaller-bootstrap.py'], | ||
pathex=['C:\\projects\\fomod-editor'], | ||
binaries=None, | ||
datas=[('./fomod/gui/logos', './fomod/gui/logos')], | ||
hiddenimports=[], | ||
hookspath=[], | ||
runtime_hooks=[], | ||
excludes=[], | ||
win_no_prefer_redirects=False, | ||
win_private_assemblies=False, | ||
cipher=block_cipher) | ||
pyz = PYZ(a.pure, a.zipped_data, | ||
cipher=block_cipher) | ||
exe = EXE(pyz, | ||
a.scripts, | ||
exclude_binaries=True, | ||
name='designer', | ||
debug=False, | ||
strip=False, | ||
upx=True, | ||
console=False ) | ||
coll = COLLECT(exe, | ||
a.binaries, | ||
a.zipfiles, | ||
a.datas, | ||
strip=False, | ||
upx=True, | ||
name='FOMOD Designer') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env python | ||
|
||
# Copyright 2016 Daniel Nunes | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
from fomod.__main__ import main | ||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright 2016 Daniel Nunes | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
sudo apt-get update | ||
|
||
# get git - needed for pyenv | ||
|
||
sudo apt-get install -y git git-flow | ||
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \ | ||
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev | ||
|
||
|
||
# shorten the command prompt | ||
|
||
echo 'parse_git_branch() { | ||
git branch 2> /dev/null | sed -e '\''/^[^*]/d'\'' -e '\''s/* \(.*\)/ (\1)/'\'' | ||
} | ||
export PS1="\[\033[38;5;10m\]\u@ \$(parse_git_branch)\w\\$ \[$(tput sgr0)\]"' >> /home/vagrant/.bashrc | ||
|
||
parse_git_branch() { | ||
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | ||
} | ||
export PS1="\[\033[38;5;10m\]\u@ \$(parse_git_branch)\w\\$ \[$(tput sgr0)\]" | ||
|
||
|
||
# configure git so you don't have to go back and forward all the time. | ||
|
||
git config --global user.email "gandaganza@gmail.com" | ||
git config --global user.name "Daniel Nunes" | ||
git config --global core.editor nano | ||
git config --global push.default simple | ||
git config --global credential.helper 'cache --timeout=18000' | ||
|
||
|
||
# get pyenv - I hate messing with system python on ubuntu | ||
|
||
git clone https://github.com/yyuu/pyenv.git /home/vagrant/.pyenv | ||
{ | ||
echo 'export PYENV_ROOT="$HOME/.pyenv"' | ||
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' | ||
echo 'eval "$(pyenv init -)"' | ||
} >> /home/vagrant/.bashrc | ||
|
||
export PYENV_ROOT="$HOME/.pyenv" | ||
export PATH="$PYENV_ROOT/bin:$PATH" | ||
eval "$(pyenv init -)" | ||
|
||
|
||
# get pyenv-virtualenv instead of plain old virtualenv | ||
|
||
git clone https://github.com/yyuu/pyenv-virtualenv.git \ | ||
/home/vagrant/.pyenv/plugins/pyenv-virtualenv | ||
echo 'eval "$(pyenv virtualenv-init -)"' >> /home/vagrant/.bashrc | ||
eval "$(pyenv virtualenv-init -)" | ||
|
||
|
||
# start installing the python versions | ||
|
||
env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install miniconda3-3.19.0 | ||
env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.5.1 | ||
|
||
|
||
# make the virtualenv | ||
|
||
pyenv shell miniconda3-3.19.0 | ||
conda create -y -n fomod-editor \ | ||
-c https://conda.anaconda.org/mmcauliffe \ | ||
-c https://conda.anaconda.org/anaconda \ | ||
python=3.5.1 pyqt5=5.5.1 lxml=3.5.0 | ||
pyenv shell miniconda3-3.19.0/envs/fomod-editor | ||
|
||
|
||
# move to the project folder and install the pip reqs | ||
|
||
cd /vagrant || exit | ||
pip install pip -U | ||
pip install setuptools -U | ||
pip install -r reqs.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/usr/bin/env python | ||
|
||
# Copyright 2016 Daniel Nunes | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
from PyQt5 import QtWidgets, QtGui | ||
from .templates import notimplemented as template | ||
|
||
|
||
class NotImplementedDialog(QtWidgets.QDialog, template.Ui_Dialog): | ||
def __init__(self): | ||
super(NotImplementedDialog, self).__init__() | ||
self.setupUi(self) | ||
|
||
self.label_2.setPixmap(QtGui.QPixmap("fomod/gui/logos/1456477754_user-admin.png")) | ||
|
||
self.pushButton.clicked.connect(self.ok) | ||
|
||
def ok(self): | ||
self.close() | ||
|
||
|
||
def main(): | ||
window = NotImplementedDialog() | ||
window.exec_() | ||
|
||
|
||
# For testing and debugging. | ||
if __name__ == "__main__": | ||
import sys | ||
app = QtWidgets.QApplication(sys.argv) | ||
window = NotImplementedDialog() | ||
window.show() | ||
sys.exit(app.exec_()) |
Oops, something went wrong.