Commit Graph

131 Commits

Author SHA1 Message Date
Kai Huuhko 1466ea7207 efl.ecore: Return of ecore.x (from python-ecore)
Made some corrections to make it compile and fixed doc formatting.
2014-05-13 17:59:48 +03:00
Kai Huuhko d98cd27107 efl.ecore: Transform into a package
The old efl.ecore.so module renamed to __init__.so which gets
automatically used for the package namespace when there is an empty
__init__.py included.
2014-05-13 15:12:38 +03:00
Kai Huuhko 63f69a4039 setup.py: Add git commit count to dev build version string 2014-05-13 15:12:38 +03:00
Kai Huuhko 927320a247 setup.py: Add env variable USE_CYTHON for compilation from pyx sources
pyx source files are now used only when USE_CYTHON is set to 1 or the
C source files have not yet been pre-compiled.

Only efl.eo.c is checked for this so if you cancel an initial build make
sure to enable USE_CYTHON when re-starting the build.

The pyx sources will now be included in the source tarball.
2014-04-30 19:14:02 +03:00
Kai Huuhko fdfa113926 setup.py: pep-8 cleanup 2014-04-29 12:20:33 +03:00
Kai Huuhko 339b87ab87 setup.py: Fall back to a relaxed check for Cython version
If StrictVersion doesn't understand the version string we
fall back to LooseVersion. This should work with version strings
such as 0.20.1post0
2014-04-18 01:43:18 +03:00
Kai Huuhko 6ebdf2b607 Bring back Python bindings for Ethumb. 2014-04-11 18:12:49 +03:00
Kai Huuhko 62e13d7c5c setup.py: Make the gcc include paths unique.
Build logs compacted considerably.
2014-04-09 18:25:48 +03:00
Kai Huuhko ab778fc86b setup.py: Disable automatic string encoding 2014-04-07 00:44:19 +03:00
Davide Andreoli b84c109fef doc: automatically show parameters in functions and methods documentation
This require the Cython "embedsignature" directive, that automatically add the signature in the first line of the docstring.
Then the Sphinx Autodoc module parse the docstring and extract the signature.

Signature is also cleaned using the 'autodoc-process-signature' callback to remove the 'self' param and all the cython params type,
2014-04-06 16:17:27 +02:00
Davide Andreoli 2d17403250 setup.py: removed the conditional compilation of packages.
All the stuff is now required, this avoid half/broken installation of the bindings and simplify setup logic.
2014-04-06 12:52:52 +02:00
Davide Andreoli 4661bc4d6f setup.py: no need to set cython directives for each module 2014-04-06 12:24:34 +02:00
Kai Huuhko 75c8351fdf Enable automatic conversion of strings 2014-04-06 01:31:13 +03:00
Kai Huuhko 73e63ec7e3 Update information in README etc. and bump the series in setup.py
We're at series 1.10 development, that goes in VERSION, with no releases
in this series out yet, denoted by 1.9.99 in RELEASE
2014-04-05 06:35:32 +03:00
Kai Huuhko 1149c6ed91 Bump Cython version requirement for future development.
This is required for const (added in 0.18) and automatic string
conversion (added in 0.19).
2014-04-04 17:57:50 +03:00
Davide Andreoli 2346ff93fb Development of the 1.10 version start now.
Also added note on how to make a release, for future reference.
2014-03-05 22:56:11 +01:00
Davide Andreoli 2b9fdb8f35 Python-EFL: start to prepare the 1.9 release
* raised version to 1.9.0
* removed versions from docs conf, they now comes automatically from setup.py
* updated some years around
* added a favicon to the docs
2014-03-02 23:09:54 +01:00
Davide Andreoli 18b5efdb38 Python-EFL: updated authors
Also added a simple&stupid Makefile for lazy devs.
2014-03-01 22:03:44 +01:00
Kai Huuhko 264491875d Edje: Re-enable edje-edit. 2013-12-30 14:04:57 +02:00
Kai Huuhko a9a944b17b Add Python 2.6 compatibility, disabled one API method in evas.Image
Image.image_data_memoryview_get was disabled.

This method can be added back once we figure out how to do conditional
compilation using Python version.

Using an evas.Image instance as a memoryview object should do the same
thing as the disabled method.
2013-12-28 18:35:39 +02:00
Kai Huuhko e2d28bef6a setup.py: os.environ.has_key -> os.getenv
For some reason the former fails on the build bot
2013-12-19 22:27:56 +02:00
Kai Huuhko 8726199f6c Force default visibility in CFLAGS.
Fixes T504
2013-12-19 19:22:23 +02:00
Kai Huuhko 728ba96115 Bump version for 1.9 development 2013-12-10 09:55:46 +02:00
Kai Huuhko 363bfbe334 Bump version for release, update TODO, add changes.html 2013-12-07 12:20:59 +02:00
Kai Huuhko 925b67d8f8 setup.py: Lowering EFL required versions to 1.8.0 2013-12-02 23:00:37 +02:00
Kai Huuhko aa9344e643 setup.py: Add couple of missing deps and bump version requirements. 2013-12-02 22:29:24 +02:00
Kai Huuhko d6c145325c setup.py: Detect installed libs and produce bindings as needed. 2013-12-02 21:59:33 +02:00
Kai Huuhko 50af0b86a5 Removing eldbus stuff, we'll be using python-dbus integration for now. 2013-12-02 01:09:39 +02:00
Kai Huuhko 98498c04b9 Move compatibility packages under directory "compat".
They are installed in the root python pkg dir as before.
2013-11-29 19:31:21 +02:00
Kai Huuhko d3962ae2a9 Enable 1.7 compatibility packages. 2013-11-24 23:32:29 +02:00
Kai Huuhko 5bc92ee2de Add python-efl 1.7 compatibility packages, commented out by default. 2013-11-23 02:14:22 +02:00
Kai Huuhko 4d493bfd27 Make setup.py more rel... respectable, update TODO. 2013-11-21 22:17:21 +02:00
Kai Huuhko 3a79fbdde2 Simplify setup.py elm extensions, disable builder option in setup.cfg 2013-11-19 21:21:03 +02:00
Kai Huuhko 9f6422a807 setup.py: Output error traceback from Cython check
This will hopefully shed more light on what's going wrong in onefang's
build script.

Also use script dir instead of cwd for relative path.
2013-11-09 13:26:09 +02:00
Kai Huuhko 09afe05a3c Elementary: Add GLView. 2013-11-09 11:54:44 +02:00
Kai Huuhko d8a6a5c614 Elementary: Disable Accessibility parts 2013-11-02 16:23:30 +02:00
Kai Huuhko e4e56b2605 Edje-edit: Disable build and tests.
Do this for now as it's undergoing changes and mostly broken anyway.
2013-10-30 21:01:24 +02:00
Kai Huuhko 567ba9cda2 Add more useful settings in their default values to setup. 2013-10-28 23:40:17 +02:00
Kai Huuhko 4771ca5ccb Move logger to its own module. 2013-10-24 22:58:09 +03:00
Davide Andreoli f2b7c24f7a Python-EFL: some little and stupid cleanup to setup.py and some additions to MANIFEST.in
* Fix clean_generated_files to also include utils
* change format() usage to simple str concat...just to hurt kuuko :)
* remove the usless check for __main__
2013-10-16 22:35:44 +02:00
Kai Huuhko 3b95ccd069 Facilitate creating a source tarball with 'setup.py sdist' command.
setup.py was modified to work with the generated package.

TODO: Include Sphinx documentation.
2013-10-16 21:31:50 +03:00
Kai Huuhko c574a76ce9 setup.py: Recognize commands 'sdist' and 'bdist' 2013-10-16 16:30:08 +03:00
Kai Huuhko f5fbb90e42 setup.py: Don't print current Cython version. 2013-10-15 15:17:33 +03:00
Kai Huuhko 5f4a46da4b Move common conversion functions from efl.eo to efl.utils.conversions 2013-10-01 04:56:28 +03:00
Kai Huuhko 4f96a2b096 Update TODOs 2013-09-25 02:39:04 +03:00
Kai Huuhko 88db824a77 Change the _METHOD_DEPRECATED function into a decorator.
- move the decorator into a new package/module: utils/deprecated
 - simplify setup.py logic slightly, it still needs work
2013-09-20 12:01:50 +03:00
Davide Andreoli 50a70d2933 Python-EFL: fix the cython version check
If the cython import fail than min_ver is never defined and the except will fail badly
2013-09-15 12:59:39 +02:00
Kai Huuhko 4249715066 Add the define EFL_BETA_API_SUPPORT for Eo. 2013-07-26 18:45:43 +03:00
Kai Huuhko 94896f625d Complete renaming edbus -> eldbus. 2013-05-06 22:36:09 +03:00
Kai Huuhko 7b77e37b8c Add an example for installing to a custom prefix to the INSTALL file and
drop the Cython required version to 0.17.0.
2013-05-04 17:18:54 +00:00
Davide Andreoli 2b7a9c7030 Python-EFL: follow the eldbus rename. 2013-05-01 23:13:26 +02:00
Davide Andreoli 8219a6a52b Python-EFL: Check the minimum cython version 2013-04-28 15:53:09 +02:00
Kai Huuhko 0d63acbee9 Elementary: Implement Accessible objects, with cbs TODO later. 2013-04-22 20:20:21 +03:00
Kai Huuhko 285856ea03 Elementary: Initial implementation for Store. Still needs work on
creating the data struct, maybe using memoryviews.

Includes some internal changes for Genlist.
2013-04-22 20:12:28 +03:00
Davide Andreoli 9d85805b13 Python-EFL: Implemented EdjeEdit API, with full unit tests.
Some stuff is not working on the C side, the unit test is full
of FIXME and TODO. The biggest problem is the PartState that
do not work at all, I will give a short look at this, but I'm
not so much intrested atm...If you want/need to help please
let me know.
2013-04-14 13:08:15 +02:00
Davide Andreoli 5c10701aa2 Python-EFL: remove old/unused file adn a fix for sutup.py
setup.py: commented out the command_options param,
it break the Sphinx 'fake' class that is used when sphinx
is not found.
2013-04-09 22:11:06 +02:00
Kai Huuhko 79022bf27b Convert dbus_mainloop C code to Cython. 2013-04-07 17:41:10 +03:00
Davide Andreoli 0a32be475a Python-EFL: first working dbus mainloop wrapper.
This one don't require edbus2 nor the old e_dbus, it reimplement
the dbus connection stuff that was in e_dbus (the old) in a
py module.
2013-04-06 12:46:52 +02:00
Davide Andreoli 7cd00bb793 Python-EFL: whops, forgot an efreet ref 2013-04-03 17:31:15 +02:00
Davide Andreoli 307a27022b Python-EFL: remove the efreet bindings.
We don't need them, just use pyxdg if you need fdo standards.
2013-04-03 14:34:38 +02:00
Davide Andreoli 14e05b7b19 Python-EFL: setup.py small improvements
* added the Cython annotate options (off by default)
 * removed build_sphinx, just use make_doc
 * moved pkg_config function on top
 * removed embedsignature option
2013-04-03 14:18:22 +02:00
Kai Huuhko aff266e08a Fix pkg-config error message so it doesn't always show Evas. 2013-03-31 15:09:50 +00:00
Kai Huuhko 4a157cb0a2 Add more skeletal work for Efreet.
Uri, base and trash should be fully usable now.
2013-03-29 16:36:16 +00:00
Kai Huuhko 9dca72f3c1 Revert a change to setup.py logic and add a clarifying comment. 2013-03-28 17:49:20 +00:00
Davide Andreoli 77dc3551fa Python-EFL: cleanup a little setup.py, INSTALL and TODO 2013-03-27 21:18:24 +01:00
Kai Huuhko 175701e56f Change the libs/includes to a sane minimal configuration which should
still satisfy even cippp's crazy cflags.
2013-03-23 16:33:32 +00:00
Kai Huuhko 10ec0a39d8 Link directly to evas as well. 2013-03-23 14:31:19 +00:00
Kai Huuhko 0f0b798b24 Link to eina in all extensions. 2013-03-23 14:10:39 +00:00
Kai Huuhko 04a38c813c Add eina to setup.py pkg-config for eo. 2013-03-23 13:55:12 +00:00
Kai Huuhko 6614553385 python-efl: Disable edbus (v2) bindings build until we come up with a
better solution.


SVN revision: 84449
2013-03-18 20:18:37 +00:00
Kai Huuhko 31b757f51b python-efl: Initial work on Efreet bindings.
SVN revision: 84426
2013-03-12 08:24:49 +00:00
Kai Huuhko e02e6491d4 python-efl: Skip build related code in setup.py when only generating
documentation.


SVN revision: 84399
2013-03-01 14:06:38 +00:00
Kai Huuhko 26902af425 python-efl: Initial work on edbus bindings.
Still needs the setup function that takes an existing connection to work 
properly.


SVN revision: 84395
2013-02-28 16:13:07 +00:00
Kai Huuhko 73f358ce47 python-efl: Apparently the builder option is not additive so let's use
html by default.


SVN revision: 84341
2013-02-24 14:10:06 +00:00
Kai Huuhko 2ce957823a python-efl: Enable documentation coverage analysis.
Building docs with this enabled you'll find simple .txt files in 
build/sphinx/coverage dir.


SVN revision: 84340
2013-02-24 13:23:33 +00:00
Kai Huuhko 6def8c3adb python-efl: Re-enable minimum version test once again.
SVN revision: 84105
2013-02-19 10:38:08 +00:00
Kai Huuhko 743a747a30 python-efl: Add Sphinx documentation files.
SVN revision: 84096
2013-02-19 09:53:30 +00:00
Davide Andreoli 50cf3b0a0a Python-EFL: make ecore Exe and FdHandler py3 friendly. svn ignore++
SVN revision: 84029
2013-02-17 20:53:51 +00:00
Kai Huuhko 53e832d0af python-efl: Committing changes to setup.py forgotten from last commit
SVN revision: 84028
2013-02-17 19:50:37 +00:00
Davide Andreoli 454d967f84 Python-EFL: Cleanup and enable compilation of emotion, cleaned also the test.
SVN revision: 83931
2013-02-14 23:05:55 +00:00
Davide Andreoli 8b86398860 Put in a first, still wip, version of the python bindings in a merged tree.
This is meant to be the 1.8 version of the wrappers and will include everything
that now is in the python folder.

Atm this include evas, ecore, edje, elementary and emotion (emotion still commented
in the build couse it need some more testing). Eo is used as a base for all the
objects that inherit from it in C, but in real nothing is used from Eo, it is
used more like a container to share code between the libs.

All the docs has been stripped out because we want to use the new sphinx style 
docs that Kay has done in his git repo. (Kay: please wait a little bit to include
it, as working on the libs without docs is much more easy)

The new wrappers include a new container module called efl and thus you can live
with both the old and the new installation. This also means that you need to import
the new modules as:
"from efl import evas" (instead of the old "import evas")
The idea here is that you can make your code works with both version doing
something like:
try:
   import evas
except:
   from efl import evas
...like is done in the gtk bindings

Some stuff has been leaved out on purpose, because was old stuff (like the hacked 
evas rotation stuff) or because was not working as expected (like all the ecore.evas.XXX
modules). See the TODO.txt file for more info. Probably some stuff is out just because I
missed them, let me know if you miss something.

Improvements from the old version:
- Py3 compatible (still some work to be done, but really only TODO, no problems to resolv)
- Should also works on other platforms, like windoz (but not tested)
- Unittests greatly improved, you can also run ALL tests at once
- much more simpler :)


I will contine the works in the next weeks and hope someone will help too.

NOTE: I switched back to setup.py instead of autotools, because that is the right way to
compile python stuff. So to build just use:
 python setup.py install
or
 python3 setup.py install


Enjoy
davemds




SVN revision: 83831
2013-02-11 22:32:50 +00:00