Commit Graph

36 Commits

Author SHA1 Message Date
Valentin Lorentz
94c7c7dfa3 supybot-plugin-create: Remove fallback for missing supybot.i18n
It is unlikely new plugins will be used on stock Supybot or Gribble.
2022-04-08 13:02:31 +02:00
Valentin Lorentz
dacaefda24 supybot-plugin-create: Create setup.py 2022-02-05 17:32:11 +01:00
Valentin Lorentz
74f86654b1 Remove fallbacks for old Python versions. 2022-01-01 18:11:36 +01:00
Valentin Lorentz
63eb6672ea Revert generic 'The Limnoria Contributors' in copyright notices
This commit reverts db7ef3f025
(though it keeps the year updates)

After discussion with several people, it seems better to mention
copyright owners explicitly. eg. https://reuse.software/faq/#vcs-copyright
explains the issue of using VCSs to track copyright.

As db7ef3f025 only replaced mentions
of my name with 'The Limnoria Contributors', this commit only needs
to undo that + add one person who contributed to setup.py.
2021-10-17 09:57:55 +02:00
Valentin Lorentz
db7ef3f025 all: Add generic 'The Limnoria Contributors' to copyright notices.
No need to bother with details (that are all outdated / out of sync
anyway), just look up the git history.
2021-08-01 21:54:49 +02:00
James Lu
7e70ce43f2 scripts: migrate shebangs and version checks to Python 3 2020-01-05 11:29:41 -08:00
James Lu
7ac2828ab2 supybot-plugin-create: CVS is dead, stop mentioning it 2019-10-19 10:20:38 -07:00
James Lu
11d4015f71 Fixes and tests to supybot-plugin-create; modernize the plugin template (#1340)
* supybot-plugin-create: compactify import statements in the template

* supybot-plugin-create: prefer importlib over imp on Python >= 3.4

The imp module is deprecated as of Python 3.4[1], with importlib being the successor. However, importlib is only available in Python 2.7+ and 3.1+, so we should still use a fallback.

[1]: https://docs.python.org/3.6/library/imp.html

* test: add test cases for supybot-plugin-create

* -plugin-create: fix errors when only a subset of args are given

* -plugin-create: rename --real-name to --author/-a

These days, working under a pseudonym or alias is not unheard of, so putting emphasis on real names feels somewhat out of place.

* -plugin-create: add -d as an alias to --desc for consistency
2018-06-20 17:18:46 +02:00
nyuszika7h
9f059b91ba Add missing future imports for print_function
There are some places where `print()` is used to print a blank line.
However, unless the future feature `print_function` is imported,
that will print `()` in Python 2.
2015-06-12 22:22:16 +02:00
James Lu
9a07f07a72 supybot-plugin-create: create PEP8-compliant files 2014-12-27 11:16:08 -08:00
James Lu
95fb289f53 supybot-plugin-create: use options.desc to fill in more fields, saner defaults 2014-12-10 17:28:40 -08:00
Julian Paul Glass
191b1b2d06 supybot-plugin-create: options.desc substitution for README.md 2014-11-25 12:01:42 +00:00
Julian Paul Glass
09c01e0467 supybot-plugin-create: Added --desc short description option. 2014-11-25 11:51:37 +00:00
Julian Paul Glass
cbe579ec2d Substitution string re-added to __init__Template 2014-11-25 11:40:30 +00:00
spline
94b1074749 Fix typo in supybot-plugin-create. 2014-10-18 17:05:31 +02:00
GLolol
3c3d51e300 supybot-plugin-create: remove outdated reference to supybot.com
All links just give a 404 error, and the main site itself just redirects to sourceforge now.
2014-09-21 12:30:37 +02:00
Mikaela Suomalainen
94feaa5faf scripts/supybot-plugin-create: Fix #721 .
* README template is now cut to two lines for easier reading in non-word
wrapping text editors on normal terminal size.
* README is now saved as `README.md` instead of `README.txt`.
2014-06-06 11:37:13 +03:00
Valentin Lorentz
cdb14ec4f5 Fix one occurence missing from previous commit. 2014-04-12 07:12:07 +00:00
Valentin Lorentz
3c7f9d09c5 supybot-plugin-create: Only catch ImportError for the i18n fallback. 2013-12-15 20:08:49 +00:00
Valentin Lorentz
c56f26b91d Wrap now internationalizes docstrings. 2013-05-20 17:52:41 +02:00
Valentin Lorentz
4090793468 Fix scripts to work with Python 3 without 2to3. 2013-04-27 16:16:08 +02:00
Valentin Lorentz
43248f5cea supybot-plugin-create: Various updates (stock supybot compatibility, Python 3 compatibility, reload config by default. 2013-04-11 19:33:42 +02:00
Valentin Lorentz
3dba9088b0 Merge remote-tracking branch 'supybot/master' into testing
Conflicts:
	INSTALL
	plugins/ChannelLogger/README.txt
	plugins/ChannelStats/README.txt
	plugins/Google/plugin.py
	plugins/Google/test.py
	plugins/Plugin/test.py
	plugins/Web/test.py
	setup.py
	src/callbacks.py
	src/ircdb.py
	src/irclib.py
	src/utils/str.py
	test/test_irclib.py
2013-01-01 21:11:24 +01:00
James McCoy
82ecf36fcd Update my name/contact information
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-09-01 10:16:48 -04:00
James McCoy
83f872fa12 Bump minimum Python version to 2.6 for multiprocessing support
Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
2012-09-01 10:06:50 -04:00
Valentin Lorentz
d52e501ae8 Use open() instead of file(). 2012-08-04 13:13:16 +02:00
Mika Suomalainen
c9dab259ba scripts/supybot-plugin-create: Fix issue #181. 2012-05-04 08:54:33 +03:00
Valentin Lorentz
106a527082 Decorates plugin class with internationalizeDocstring 2010-10-10 18:49:21 +02:00
Valentin Lorentz
90a0ea3c3a Edit scripts/supybot-plugin-create to fit plugin templates changes 2010-10-10 18:18:51 +02:00
James Vega
342ab23af8 Bump the minimum supported Python version to 2.4.
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-10-23 19:35:24 -04:00
James Vega
d37580e592 Change our minimum dependency back to 2.3
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-05-18 00:16:42 -04:00
James Vega
151b3729d8 Bump our minimum required version to 2.4
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-31 07:50:30 -04:00
James Vega
777f69dcf0 supybot-plugin-create: Also make a local directory in the plugin directory
This is to be used for storing third party modules that the plugin needs to
use.  The plugin should then import them using

universalImport('module', 'local.module')

so system-wide/packaged installs of the module are preferred, falling back to
the version shipped with the plugin.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-11 19:36:13 -04:00
James Vega
150f29dbde scripts: Change tabstop to softtabstop in our modelines
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-11 19:26:49 -04:00
James Vega
296980e20e scripts/supybot-plugin-create: Prompt the user to see if the wish to use Supybot's license. 2005-08-30 16:22:45 +00:00
James Vega
482a49022c Rename supybot-newplugin to supybot-plugin-create. 2005-04-04 03:11:46 +00:00