Trying to make it build to a deb without failing
This commit is contained in:
parent
aca585ae36
commit
0b6e59e575
9
.gitignore
vendored
9
.gitignore
vendored
@ -1,2 +1,11 @@
|
||||
venv/
|
||||
__pycache__/
|
||||
.idea/
|
||||
bin/
|
||||
deb_dist/
|
||||
dist/
|
||||
include/
|
||||
lib/
|
||||
NotePostCLI-*.tar.gz
|
||||
share/
|
||||
NotePostCLI.egg-info/
|
||||
|
77
.idea/workspace.xml
generated
77
.idea/workspace.xml
generated
@ -1,7 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="7e2ff7f2-75de-431f-9457-e0d648b65015" name="Default Changelist" comment="" />
|
||||
<list default="true" id="7e2ff7f2-75de-431f-9457-e0d648b65015" name="Default Changelist" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/api.py" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/config.py" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/notepost.py" beforeDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/termcolors.py" beforeDir="false" />
|
||||
</list>
|
||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
@ -11,43 +18,10 @@
|
||||
<component name="FileEditorManager">
|
||||
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
|
||||
<file pinned="false" current-in-tab="true">
|
||||
<entry file="file://$PROJECT_DIR$/notepost.py">
|
||||
<entry file="file://$PROJECT_DIR$/setup.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="689">
|
||||
<caret line="183" column="18" lean-forward="true" selection-start-line="183" selection-start-column="18" selection-end-line="183" selection-end-column="18" />
|
||||
<folding>
|
||||
<element signature="e#24#39#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/termcolors.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="285">
|
||||
<caret line="19" column="22" selection-start-line="19" selection-start-column="22" selection-end-line="19" selection-end-column="22" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/api.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="165">
|
||||
<caret line="11" column="56" selection-start-line="11" selection-start-column="56" selection-end-line="11" selection-end-column="56" />
|
||||
<folding>
|
||||
<element signature="e#24#35#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/config.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="60">
|
||||
<caret line="4" column="9" selection-start-line="4" selection-start-column="9" selection-end-line="4" selection-end-column="9" />
|
||||
<state relative-caret-position="375">
|
||||
<caret line="26" selection-start-line="26" selection-end-line="26" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
@ -163,7 +137,6 @@
|
||||
</component>
|
||||
<component name="ToolWindowManager">
|
||||
<frame x="4" y="0" width="1912" height="1038" extended-state="0" />
|
||||
<editor active="true" />
|
||||
<layout>
|
||||
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.18075491" />
|
||||
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
||||
@ -194,6 +167,16 @@
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/note.class.py" />
|
||||
<entry file="file://$PROJECT_DIR$/notepost.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="2640">
|
||||
<caret line="183" column="18" lean-forward="true" selection-start-line="183" selection-start-column="18" selection-end-line="183" selection-end-column="18" />
|
||||
<folding>
|
||||
<element signature="e#24#39#0" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/termcolors.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="285">
|
||||
@ -201,16 +184,9 @@
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/setup.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="585">
|
||||
<caret line="39" column="75" selection-start-line="39" selection-start-column="75" selection-end-line="39" selection-end-column="75" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/api.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="165">
|
||||
<state relative-caret-position="120">
|
||||
<caret line="11" column="56" selection-start-line="11" selection-start-column="56" selection-end-line="11" selection-end-column="56" />
|
||||
<folding>
|
||||
<element signature="e#24#35#0" expanded="true" />
|
||||
@ -225,13 +201,10 @@
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/notepost.py">
|
||||
<entry file="file://$PROJECT_DIR$/setup.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="689">
|
||||
<caret line="183" column="18" lean-forward="true" selection-start-line="183" selection-start-column="18" selection-end-line="183" selection-end-column="18" />
|
||||
<folding>
|
||||
<element signature="e#24#39#0" expanded="true" />
|
||||
</folding>
|
||||
<state relative-caret-position="375">
|
||||
<caret line="26" selection-start-line="26" selection-end-line="26" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
|
@ -1,4 +1,4 @@
|
||||
NotePostCLI
|
||||
===========
|
||||
|
||||
A simple Python-based terminal app for using NotePost.
|
||||
A simple Python terminal app for using NotePost.
|
||||
|
0
notepostcli/__init__.py
Normal file
0
notepostcli/__init__.py
Normal file
@ -1,5 +1,9 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import i18n
|
||||
import requests
|
||||
|
@ -1,5 +1,9 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import json
|
||||
import appdirs
|
||||
import os
|
@ -1,5 +1,9 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import tempfile
|
||||
import i18n
|
||||
import validators
|
||||
@ -128,7 +132,10 @@ def editmenu():
|
||||
if noteid.upper() == "M":
|
||||
clearscreen()
|
||||
return
|
||||
editnote(notelist[noteid])
|
||||
try:
|
||||
editnote(notelist[noteid])
|
||||
except KeyError:
|
||||
print(i18n.t("Invalid selection."))
|
||||
|
||||
|
||||
def newnote():
|
||||
@ -174,7 +181,7 @@ def mainmenu():
|
||||
|
||||
|
||||
def main():
|
||||
print("NotePostCLI v1.0")
|
||||
print("NotePostCLI v0.1")
|
||||
if not checkconfig():
|
||||
print(i18n.t("No valid settings file found, running setup wizard."))
|
||||
firstsetup()
|
@ -1,4 +1,9 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from math import sqrt
|
||||
|
||||
|
@ -1,10 +0,0 @@
|
||||
appdirs==1.4.3
|
||||
certifi==2018.11.29
|
||||
chardet==3.0.4
|
||||
decorator==4.3.0
|
||||
idna==2.8
|
||||
python-i18n==0.3.5
|
||||
requests==2.21.0
|
||||
six==1.12.0
|
||||
urllib3==1.24.1
|
||||
validators==0.12.3
|
28
setup.py
Normal file
28
setup.py
Normal file
@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
setup(
|
||||
name="NotePostCLI",
|
||||
version="0.1",
|
||||
packages=find_packages(),
|
||||
install_requires=[
|
||||
"appdirs==1.4.3",
|
||||
"certifi==2018.11.29",
|
||||
"chardet==3.0.4",
|
||||
"decorator==4.3.0",
|
||||
"idna==2.8",
|
||||
"python-i18n==0.3.5",
|
||||
"requests==2.21.0",
|
||||
"six>=1.11.0",
|
||||
"urllib3==1.24.1",
|
||||
"validators==0.12.3"
|
||||
],
|
||||
entry_points = {
|
||||
'console_scripts' : ['notepost = notepostcli.notepost:main']
|
||||
},
|
||||
author="Netsyms Technologies",
|
||||
author_email="opensource@netsyms.com",
|
||||
license="MPL-2.0",
|
||||
url="https://source.netsyms.com/Apps/NotePostCLI"
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user