Proper title-casing for Python's Markdown.
Project description
mdx_titlecase
Proper title-casing for Python’s Markdown library.
Use titlecase module under the hood.
Install
This package is available on PyPi, so you can install the latest stable release and its dependencies with a simple pip call:
$ pip install mdx_titlecase
See also pip installation instructions.
Development
Check out latest development branch:
$ git clone git@github.com:kdeldycke/mdx_titlecase.git
$ cd ./mdx_titlecase
$ python ./setup.py develop
Run unit-tests:
$ python ./setup.py nosetests
Run PEP8 and Pylint code style checks:
$ pip install pep8 pylint
$ pep8 mdx_titlecase
$ pylint --rcfile=setup.cfg mdx_titlecase
Stability policy
Here is a bunch of rules we’re trying to follow regarding stability:
Patch releases (0.x.n → 0.x.(n+1) upgrades) are bug-fix only. These releases must not break anything and keeps backward-compatibility with 0.x.* and 0.(x-1).* series.
Minor releases (0.n.* → 0.(n+1).0 upgrades) includes any non-bugfix changes. These releases must be backward-compatible with any 0.n.* version but are allowed to drop compatibility with the 0.(n-1).* series and below.
Major releases (n.*.* → (n+1).0.0 upgrades) are not planned yet: we’re still in beta and the final feature set of the 1.0.0 release is not decided yet.
Release process
Start from the develop branch:
$ git clone git@github.com:kdeldycke/mdx_titlecase.git
$ git checkout develop
Revision should already be set to the next version, so we just need to set the released date in the changelog:
$ vi ./CHANGES.rst
Create a release commit, tag it and merge it back to master branch:
$ git add ./mdx_titlecase/__init__.py ./CHANGES.rst
$ git commit -m "Release vX.Y.Z"
$ git tag "vX.Y.Z"
$ git push
$ git push --tags
$ git checkout master
$ git pull
$ git merge "vX.Y.Z"
$ git push
Push packaging to the test cheeseshop:
$ pip install wheel
$ python ./setup.py register -r testpypi
$ python ./setup.py clean
$ rm -rf ./build ./dist
$ python ./setup.py sdist bdist_egg bdist_wheel upload -r testpypi
Publish packaging to PyPi:
$ python ./setup.py register -r pypi
$ python ./setup.py clean
$ rm -rf ./build ./dist
$ python ./setup.py sdist bdist_egg bdist_wheel upload -r pypi
Bump revision back to its development state:
$ pip install bumpversion
$ git checkout develop
$ bumpversion --verbose patch
$ git add ./mdx_titlecase/__init__.py ./CHANGES.rst
$ git commit -m "Post release version bump."
$ git push
Now if the next revision is no longer bug-fix only:
$ bumpversion --verbose minor
$ git add ./mdx_titlecase/__init__.py ./CHANGES.rst
$ git commit -m "Next release no longer bug-fix only. Bump revision."
$ git push
License
This software is licensed under the GNU General Public License v2 or later (GPLv2+).
ChangeLog
1.0.0 (2015-11-23)
First public release.
0.0.0 (2015-11-22)
First commit.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file mdx_titlecase-1.0.0.tar.gz
.
File metadata
- Download URL: mdx_titlecase-1.0.0.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6296cfd8b3f0ddf3fbc825036b3c57e28e33fc3952d67d4ea7bab9cf2c8a5467 |
|
MD5 | 8a58bb719613406c34f71dc0beb680d0 |
|
BLAKE2b-256 | f4bdc7b9666a2a5824c81e22cec2c81550fcae904753dc948de527f293cef5ed |
File details
Details for the file mdx_titlecase-1.0.0-py2.7.egg
.
File metadata
- Download URL: mdx_titlecase-1.0.0-py2.7.egg
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e23c24edeb229eb3d5d8c253d024c876e7789fb33f7949b8a1a82ca7ce8b4b3a |
|
MD5 | 094e6fce5eb94e3949315720aec454f9 |
|
BLAKE2b-256 | 1032463134f0a2bcc3b9d50240ac9abb5eb2c54ebb79a0cf5a3e2d0dab4f0730 |
File details
Details for the file mdx_titlecase-1.0.0-py2-none-any.whl
.
File metadata
- Download URL: mdx_titlecase-1.0.0-py2-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f4daad901ec1a75f7c8284d943761318c5466081755e8d0dd1a37aa8cce79e8 |
|
MD5 | c89729b3dd0f5b47e310af17c60f8083 |
|
BLAKE2b-256 | 11a3f16bc72c779e51d65d6864cdd74923a20acf006815f5cae7acb07c2bdaa3 |