Skip to content

Commit

Permalink
Release v0.2.2
Browse files Browse the repository at this point in the history
Add build and upload shell script

Extend long package description to match README.rst

Add changelog

Bump version number
  • Loading branch information
erikhuizinga committed Mar 13, 2018
1 parent c231d0b commit 4b58a47
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 10 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Changelog

All releases contain all previous releases' content, except for the noted new features, changes, deprecations, etc.

## v0.2.2

- Change module structure, use: `from humps.camel import case`
- Add CHANGELOG.md
- Use Twine as setup tool
- Add shell script to build and upload distribution
- You may need to install and configure [Twine](https://github.com/pypa/twine), e.g. use its environment variables
- Extend long package description to match README.rst

## v0.1.0

- Support conversion of any string to camelCase
- Raise error for non `str` type inputs
- Ignore any non-alphanumeric characters
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include CHANGELOG.md
10 changes: 10 additions & 0 deletions build-upload.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

rm -rf dist

python setup.py clean check sdist bdist_wheel --universal

gpg --detach-sign -a dist/*.whl
gpg --detach-sign -a dist/*.tar.gz

twine upload dist/*
41 changes: 31 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,43 @@
setup(
name="humps",
packages=["humps", "tests"],
version="0.2.1",
version="0.2.2",
author="Erik Huizinga",
author_email="[email protected]",
license='LGPL-3.0',
url="https://github.com/erikhuizinga/humps",
description="camelCase converter",
long_description=
"*********\n"
"``humps``\n"
"*********\n"
"\n"
"*Convert any string to camelCase.*\n"
"\n"
"camelCase starts with a lower case alphabetic character, the rest of the string contains alphanumeric "
"characters. Any character case in the input is ignored. Any spaces in the input capitalise the following "
"character if alphabetic, except for the first character. Any non-alphanumeric characters are ignored.",
"""*********
``humps``
*********
*Convert any string to camelCase.*
Description
===========
camelCase starts with a lower case alphabetic character, the rest of the string contains alphanumeric characters. Any character case in the input is ignored. Any spaces in the input capitalise the following character if alphabetic, except for the first character. Any non-alphanumeric characters are ignored.
Installation
============
Shell:
.. code-block:: sh
pip install humps
Python:
.. code-block:: python
from humps.camel import case
print(case('Hello, World!'))
# Output: helloWorld
""",
keywords=["camelcase", 'camel', 'case', "string", "conversion"],
classifiers=[
"Development Status :: 4 - Beta",
Expand Down

0 comments on commit 4b58a47

Please sign in to comment.