Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
v1.3.10: coil unlock and link fixes
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Feb 14, 2017
1 parent 839993d commit 5af92af
Show file tree
Hide file tree
Showing 24 changed files with 58 additions and 37 deletions.
5 changes: 2 additions & 3 deletions .pypt/commitlog
Expand Up @@ -2,7 +2,7 @@
# -*- encoding: utf-8 -*-
# Kw’s Release Tools/Python Project Template
# Commit and Changelog Parser
# Copyright © 2013-2016, Chris Warrick.
# Copyright © 2013-2017, Chris Warrick.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -88,7 +88,7 @@ def main():
new_version = args.new_version[0]

with open(filename) as fh:
e = re.findall('#~ C(.*?) MESSAGE START ~#\n(.*?)\n#~ C(.*?) MESSAGE '
e = re.findall('#~ (C[A-Z]+) MESSAGE START ~#\n(.*?)\n#~ (C[A-Z]+) MESSAGE '
'END ~#', fh.read(), flags=re.S)

for i in e:
Expand All @@ -97,7 +97,6 @@ def main():
print('ERROR: mismatched tags')
return 1
else:
i[0] = 'C' + i[0] # regexp hack
if i[0] == 'COMMIT':
with open(filename + '-commit', 'w') as fh:
fh.write(i[1])
Expand Down
2 changes: 1 addition & 1 deletion .pypt/ghrel
Expand Up @@ -2,7 +2,7 @@
# -*- encoding: utf-8 -*-
# Kw’s Release Tools/Python Project Template
# GitHub Release Creator
# Copyright © 2013-2016, Chris Warrick.
# Copyright © 2013-2017, Chris Warrick.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down
2 changes: 1 addition & 1 deletion .venv
@@ -1 +1 @@
nikola-py3
nikola
6 changes: 5 additions & 1 deletion CHANGELOG.rst
Expand Up @@ -2,7 +2,11 @@
Appendix A. Changelog
=====================

:Version: 1.3.9
:Version: 1.3.10

1.3.10
* Add `coil unlock` command
* Fix links to docs

1.3.9
* Work on non-English sites (fix #45)
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Expand Up @@ -2,7 +2,7 @@
Appendix A. Contribution rules
==============================
:Info: Those are the contribution rules for Coil CMS.
:Copyright: © 2012-2016, Chris Warrick.
:Copyright: © 2012-2017, Chris Warrick.
:License: 3-clause BSD

.. index:: contributing
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,4 +1,4 @@
Copyright © 2014-2016 Chris Warrick, Roberto Alsina, Henry Hirsch et al.
Copyright © 2014-2017 Chris Warrick, Roberto Alsina, Henry Hirsch et al.

Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
Expand Down
2 changes: 1 addition & 1 deletion README
Expand Up @@ -8,4 +8,4 @@ people that don’t feel comfortable using the command line.
Setup
-----

Setting up Coil CMS is described in `the documentation <https://coil.readthedocs.org/en/latest/admin/setup/>`_.
Setting up Coil CMS is described in `the documentation <https://coil.readthedocs.io/admin/setup/>`_.
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -8,4 +8,4 @@ people that don’t feel comfortable using the command line.
Setup
-----

Setting up Coil CMS is described in `the documentation <https://coil.readthedocs.org/en/latest/admin/setup/>`_.
Setting up Coil CMS is described in `the documentation <https://coil.readthedocs.io/admin/setup/>`_.
4 changes: 2 additions & 2 deletions coil/__init__.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

# Coil CMS v1.2.0
# Copyright © 2014-2016 Chris Warrick, Roberto Alsina, Henry Hirsch et al.
# Copyright © 2014-2017 Chris Warrick, Roberto Alsina, Henry Hirsch et al.

# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and associated
Expand Down Expand Up @@ -29,4 +29,4 @@

__all__ = ['__version__']

__version__ = '1.3.9'
__version__ = '1.3.10'
15 changes: 14 additions & 1 deletion coil/__main__.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

# Coil CMS v1.2.0
# Copyright © 2014-2016 Chris Warrick, Roberto Alsina, Henry Hirsch et al.
# Copyright © 2014-2017 Chris Warrick, Roberto Alsina, Henry Hirsch et al.

# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and associated
Expand Down Expand Up @@ -30,6 +30,7 @@
Usage:
coil devserver [-b | --browser] [-p <port> | --port=<port>] [--no-url-fix] [--no-debug]
coil unlock
coil write_users
coil -h | --help
coil --version
Expand Down Expand Up @@ -60,6 +61,8 @@ def main():
sys.exit(write_users(arguments))
elif arguments['devserver']:
sys.exit(devserver(arguments))
elif arguments['unlock']:
sys.exit(unlock(arguments))


def init(arguments):
Expand Down Expand Up @@ -94,5 +97,15 @@ def devserver(arguments):
print("FATAL: no conf.py found")
return 255


def unlock(arguments):
"""Unlock the database."""
import redis
u = coil.utils.ask("Redis URL", "redis://localhost:6379/0")
db = redis.StrictRedis.from_url(u)
db.set('site:lock', 0)
print("Database unlocked.")
return 0

if __name__ == '__main__':
main()
2 changes: 1 addition & 1 deletion coil/data/coil_assets/css/coil.css
@@ -1,5 +1,5 @@
/*
* Copyright © 2014-2016 Chris Warrick, Roberto Alsina, Henry Hirsch et al.
* Copyright © 2014-2017 Chris Warrick, Roberto Alsina, Henry Hirsch et al.
* See /LICENSE for licensing information.
*/

Expand Down
2 changes: 1 addition & 1 deletion coil/data/coil_assets/js/coil.js
@@ -1,5 +1,5 @@
/*
* Copyright © 2014-2016 Chris Warrick, Roberto Alsina, Henry Hirsch et al.
* Copyright © 2014-2017 Chris Warrick, Roberto Alsina, Henry Hirsch et al.
* See /LICENSE for licensing information.
*/

Expand Down
2 changes: 1 addition & 1 deletion coil/forms.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

# Coil CMS v1.2.0
# Copyright © 2014-2016 Chris Warrick, Roberto Alsina, Henry Hirsch et al.
# Copyright © 2014-2017 Chris Warrick, Roberto Alsina, Henry Hirsch et al.

# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and associated
Expand Down
4 changes: 2 additions & 2 deletions coil/init.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

# Coil CMS v1.2.0
# Copyright © 2014-2016 Chris Warrick, Roberto Alsina, Henry Hirsch et al.
# Copyright © 2014-2017 Chris Warrick, Roberto Alsina, Henry Hirsch et al.

# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and associated
Expand Down Expand Up @@ -35,7 +35,7 @@
def init():
"""Initialize a site."""
print("Please read the documentation and set up Coil CMS manually:")
print("https://coil.readthedocs.org/en/latest/admin/setup/")
print("https://coil.readthedocs.io/admin/setup/")
return 255


Expand Down
2 changes: 1 addition & 1 deletion coil/tasks.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

# Coil CMS v1.2.0
# Copyright © 2014-2016 Chris Warrick, Roberto Alsina, Henry Hirsch et al.
# Copyright © 2014-2017 Chris Warrick, Roberto Alsina, Henry Hirsch et al.

# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and associated
Expand Down
2 changes: 1 addition & 1 deletion coil/utils.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

# Coil CMS v1.2.0
# Copyright © 2014-2016 Chris Warrick, Roberto Alsina, Henry Hirsch et al.
# Copyright © 2014-2017 Chris Warrick, Roberto Alsina, Henry Hirsch et al.

# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and associated
Expand Down
4 changes: 2 additions & 2 deletions coil/web.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

# Coil CMS v1.2.0
# Copyright © 2014-2016 Chris Warrick, Roberto Alsina, Henry Hirsch et al.
# Copyright © 2014-2017 Chris Warrick, Roberto Alsina, Henry Hirsch et al.

# Permission is hereby granted, free of charge, to any
# person obtaining a copy of this software and associated
Expand Down Expand Up @@ -143,7 +143,7 @@ def configure_site():
_site.default_lang: (
(app.config['NIKOLA_URL'],
'<i class="fa fa-globe"></i> View Site'),
('https://coil.readthedocs.org/en/latest/user/',
('http://coil.readthedocs.io/user/',
'<i class="fa fa-question-circle"></i> Help'),
)
}
Expand Down
6 changes: 5 additions & 1 deletion docs/CHANGELOG.rst
Expand Up @@ -2,7 +2,11 @@
Appendix A. Changelog
=====================

:Version: 1.3.9
:Version: 1.3.10

1.3.10
* Add `coil unlock` command
* Fix links to docs

1.3.9
* Work on non-English sites (fix #45)
Expand Down
2 changes: 1 addition & 1 deletion docs/CONTRIBUTING.rst
Expand Up @@ -2,7 +2,7 @@
Appendix A. Contribution rules
==============================
:Info: Those are the contribution rules for Coil CMS.
:Copyright: © 2012-2016, Chris Warrick.
:Copyright: © 2012-2017, Chris Warrick.
:License: 3-clause BSD

.. index:: contributing
Expand Down
2 changes: 1 addition & 1 deletion docs/LICENSE.rst
Expand Up @@ -2,7 +2,7 @@
Appendix B. License
===================

Copyright © 2014-2016 Chris Warrick, Roberto Alsina, Henry Hirsch et al.
Copyright © 2014-2017 Chris Warrick, Roberto Alsina, Henry Hirsch et al.

Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated
Expand Down
2 changes: 1 addition & 1 deletion docs/README.rst
Expand Up @@ -8,4 +8,4 @@ people that don’t feel comfortable using the command line.
Setup
-----

Setting up Coil CMS is described in `the documentation <https://coil.readthedocs.org/en/latest/admin/setup/>`_.
Setting up Coil CMS is described in `the documentation <https://coil.readthedocs.io/admin/setup/>`_.
6 changes: 3 additions & 3 deletions docs/conf.py
Expand Up @@ -48,16 +48,16 @@

# General information about the project.
project = 'Coil CMS'
copyright = '2014-2016 Chris Warrick, Roberto Alsina, Henry Hirsch et al'
copyright = '2014-2017 Chris Warrick, Roberto Alsina, Henry Hirsch et al'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '1.3.9'
version = '1.3.10'
# The full version, including alpha/beta/rc tags.
release = '1.3.9'
release = '1.3.10'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
6 changes: 3 additions & 3 deletions release
@@ -1,7 +1,7 @@
#!/bin/zsh
# The Release Script
# Part of the Python Project Template.
# Copyright © 2013-2016, Chris Warrick.
# Copyright © 2013-2017, Chris Warrick.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -138,8 +138,8 @@ sed "s/# $PROJECT v.*/# $PROJECT v$version/" $PROJECTLC/**/*.py -i
sed "s/__version__ = .*/__version__ = '$version'/g" $PROJECTLC/__init__.py -i
sed "s/:Date: .*/:Date: $date/g" docs/*.rst -i

sed "s/pkgver=.*/pkgver=$version/g" PKGBUILD -i || true
sed "s/pkgver=.*/pkgver=$version/g" PKGBUILD-git -i || true
[[ -e "PKGBUILD" ]] && sed "s/pkgver=.*/pkgver=$version/g" PKGBUILD -i || true
[[ -e "PKGBUILD-git" ]] && sed "s/pkgver=.*/pkgver=$version/g" PKGBUILD-git -i || true

cp docs/README.rst docs/CHANGELOG.rst docs/CONTRIBUTING.rst .
cp docs/README.rst README
Expand Down
11 changes: 6 additions & 5 deletions setup.py
Expand Up @@ -7,7 +7,7 @@
dependencies = [l.strip() for l in fh]

setup(name='coil',
version='1.3.9',
version='1.3.10',
description='A user-friendly CMS frontend for Nikola.',
keywords='coil,nikola,cms',
author='Chris Warrick, Roberto Alsina, Henry Hirsch et al.',
Expand All @@ -18,13 +18,14 @@
platforms='any',
zip_safe=False,
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=['Development Status :: 5 - Production/Stable',
classifiers=['Development Status :: 7 - Inactive',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4'],
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
packages=['coil'],
install_requires=dependencies,
include_package_data=True,
Expand Down

0 comments on commit 5af92af

Please sign in to comment.