From b00f9584888eee0695e5b17464eff7ed2f961e28 Mon Sep 17 00:00:00 2001 From: jryannel Date: Tue, 11 Jul 2017 21:02:47 +0200 Subject: Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index d0eb57e..6da4a4a 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,10 @@ QFace is written out of the learnings of using IDLs in other large projects. Oft Please see the INSTALL and USAGE guides for more information. +## Documentation + +Documentation is hosted at [readthedocs](http://qface.readthedocs.io/en/latest/). + ## Install To install the qface library you need to have python3 and pip installed. -- cgit v1.2.1 From cc6169ac2238cf32fe120790c9fb639bfa2d4c96 Mon Sep 17 00:00:00 2001 From: Juergen Bocklage-Ryannel Date: Thu, 13 Jul 2017 13:53:10 +0200 Subject: Fixed some smaller issues with named filters and how the setup tools are working --- cli.py | 19 +++++++++++-------- qface/__about__.py | 2 +- qface/helper/qtcpp.py | 7 +++++-- setup.py | 3 +++ 4 files changed, 20 insertions(+), 11 deletions(-) diff --git a/cli.py b/cli.py index 09863a2..39ca71a 100755 --- a/cli.py +++ b/cli.py @@ -14,13 +14,13 @@ import logging.config from livereload import Server, shell -here = os.path.dirname(__file__) +here = Path(__file__).abspath().dirname() -logging.config.dictConfig(yaml.load(open(os.path.join(here, 'log.yaml')))) +logging.config.dictConfig(yaml.load((here / 'log.yaml').open())) logger = logging.getLogger(__name__) -os.environ['PYTHONPATH'] = os.getcwd() +os.environ['PYTHONPATH'] = Path.getcwd() def sh(cmd, all=False, **kwargs): @@ -167,15 +167,18 @@ def uninstall(): @cli.command() def upload(): - Path('build').rmtree_p() - dist = Path('dist') - dist.rmtree_p() - dist.makedirs_p() - sh('python3 setup.py bdist_wheel') sh('twine upload dist/*') Path('build').rmtree_p() +@cli.command() +def pack(): + Path('build').rmtree_p() + Path('dist').rmtree_p() + sh('python3 setup.py bdist_wheel') + sh('unzip -l dist/*.whl') + + @cli.command() def docs_serve(): server = Server() diff --git a/qface/__about__.py b/qface/__about__.py index 62e9bb7..2e0bc50 100644 --- a/qface/__about__.py +++ b/qface/__about__.py @@ -8,7 +8,7 @@ except NameError: __title__ = "qface" __summary__ = "A generator framework based on a common modern IDL" -__uri__ = "https://pelagicore.github.io/qface/" +__url__ = "https://pelagicore.github.io/qface/" __version__ = "1.3.1" __author__ = "JRyannel" __author_email__ = "qface-generator@googlegroups.com" diff --git a/qface/helper/qtcpp.py b/qface/helper/qtcpp.py index 97a5d44..8310c4b 100644 --- a/qface/helper/qtcpp.py +++ b/qface/helper/qtcpp.py @@ -134,7 +134,7 @@ class Filters(object): def parameters(env, s, filter=None, spaces=True): if not filter: filter = Filters.parameterType - else: + elif isinstance(filter, str): filter = env.filters[filter] args = [] indent = ', ' @@ -151,9 +151,12 @@ class Filters(object): return indent.join([filter(a) for a in args]) @staticmethod - def signature(s, expand=False, filter=None): + @environmentfilter + def signature(env, s, expand=False, filter=None): if not filter: filter = Filters.returnType + elif isinstance(filter, str): + filter = env.filters[filter] if isinstance(s, domain.Operation): args = s.parameters elif isinstance(s, domain.Signal): diff --git a/setup.py b/setup.py index 567f9e2..e37e3e6 100644 --- a/setup.py +++ b/setup.py @@ -43,6 +43,9 @@ setup( keywords='qt code generator framework', packages=find_packages(), include_package_data=True, + package_data={ + '': ['*[!*.pyc]'] + }, install_requires=[ 'jinja2', 'path.py', -- cgit v1.2.1 From 8a38b64721d618b66d06edc1cd44e3b10cb73d1f Mon Sep 17 00:00:00 2001 From: Juergen Bocklage-Ryannel Date: Thu, 13 Jul 2017 13:57:29 +0200 Subject: Added init package files --- qface/templates/__init__.py | 0 qface/templates/qface/__init__.py | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 qface/templates/__init__.py create mode 100644 qface/templates/qface/__init__.py diff --git a/qface/templates/__init__.py b/qface/templates/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/qface/templates/qface/__init__.py b/qface/templates/qface/__init__.py new file mode 100644 index 0000000..e69de29 -- cgit v1.2.1 From b985e14c0c22a02d888eee313721cda68b3b7808 Mon Sep 17 00:00:00 2001 From: Juergen Bocklage-Ryannel Date: Thu, 13 Jul 2017 13:58:44 +0200 Subject: bumped version number --- qface/__about__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qface/__about__.py b/qface/__about__.py index 2e0bc50..3252263 100644 --- a/qface/__about__.py +++ b/qface/__about__.py @@ -9,7 +9,7 @@ except NameError: __title__ = "qface" __summary__ = "A generator framework based on a common modern IDL" __url__ = "https://pelagicore.github.io/qface/" -__version__ = "1.3.1" +__version__ = "1.4" __author__ = "JRyannel" __author_email__ = "qface-generator@googlegroups.com" __copyright__ = "2017 Pelagicore" -- cgit v1.2.1