1
0
Fork 0
forked from github/pelican
Commit graph

14 commits

Author SHA1 Message Date
Justin Mayer
d43b786b30 Modernize code base to Python 3+ syntax
Replaces syntax that was relevant in earlier Python versions but that
now has modernized equivalents.
2020-04-27 09:45:31 +02:00
Kevin Yap
1e0e541b57 Initial pass of removing Python 2 support
This commit removes Six as a dependency for Pelican, replacing the
relevant aliases with the proper Python 3 imports. It also removes
references to Python 2 logic that did not require Six.
2019-11-26 06:16:41 +09:00
John Franey
3395e71570 Fix linting issues
Fixes linting issues that caused the `flake8` CI stage to fail.
2019-02-06 10:22:57 -04:00
Justin Mayer
56a483475b PyCodeStyle fixes to keep Flake8 happy
Travis appears to be using new versions of underlying code style
analyzers, so these changes were necessary in order to keep tests green.
2017-10-26 13:53:32 -07:00
derwinlu
5a19887a22 Correct new flake8 warnings 2017-01-24 09:12:16 +01:00
derwinlu
8993c55e6e fulfil pep8 standard 2015-08-17 13:34:32 +02:00
Dirk Makowski
71995d5e1b Port pelican to python 3.
Stays compatible with 2.x series, thanks to an unified codebase.
2013-01-11 03:20:09 +01:00
solsTiCe d'Hiver
a0d2d34466 shutil.copytree seems to throw OSError exception too
So revert to previous Exception handling
2012-07-09 20:08:20 +02:00
solsTiCe d'Hiver
842817f110 Revert "Use logging module instead of err function"
This reverts commit 4acbbb8d0f.

I don't know how to use logging/logger

This throws:
No handlers could be found for logger "pelican.tools.pelican_themes"
2012-07-09 20:05:21 +02:00
solsTiCe d'Hiver
4acbbb8d0f Use logging module instead of err function 2012-07-09 19:48:53 +02:00
solsTiCe d'Hiver
10e668a87c Fix issue #175
Force world-readable permission on files and directory of the
themes installed by pelican-themes.
Only on posix system i.e. mostly non Windows

Rationale:
If the theme's files have only -rw------- permissions, once installed
 system wide and owned by root, they will not be accessible to any user but only
root.
2012-07-09 19:39:34 +02:00
Ian Cordasco
707536725d Failed to commit some important changes. 2012-06-25 11:43:12 -04:00
Ian Cordasco
387e5c1ab9 Add upgrade ability to pelican-themes. Fix typos.
I disliked having to do:

$ pelican-theme -r <theme-name> -i <theme-path>

So I modified install() to handle an upgrade of an existing theme. While doing
so, I noticed that in install() and symlink() the script would error with 'no a
directory' instead of 'not a directory'. So I fixed that for you as well.
2012-06-25 08:57:09 -04:00
Andrea Crotti
4e4af9d011 move tools in pelican.tools and add the pelican.tools package to setup.py 2012-03-16 18:53:08 +00:00
Renamed from tools/pelican_themes.py (Browse further)