From d5722320844bfe87f84b30b62753fba9dca72948 Mon Sep 17 00:00:00 2001 From: Flynn Date: Sun, 13 Oct 2019 22:19:18 -0400 Subject: [PATCH] bump to v0.1.3 (#10) * bump to v0.1.3 * add deploy script --- HISTORY.rst | 7 +++++++ README.rst | 2 +- deploy.sh | 7 +++++++ pyproject.toml | 2 +- voting/__init__.py | 18 +++++++++--------- voting/{__version__.py => _version.py} | 2 +- 6 files changed, 26 insertions(+), 12 deletions(-) create mode 100644 deploy.sh rename voting/{__version__.py => _version.py} (94%) diff --git a/HISTORY.rst b/HISTORY.rst index 7c63219..729afa4 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -1,6 +1,13 @@ Release History --------------- +0.1.3 (2019-10-13) +~~~~~~~~~~~~~~~~~~ + +* Fix for Adams method +* Fix for Webster method +* Fix _version.py for conflicts + 0.1.2 (2019-07-11) ~~~~~~~~~~~~~~~~~~ diff --git a/README.rst b/README.rst index 2cf184d..e7e9376 100644 --- a/README.rst +++ b/README.rst @@ -26,7 +26,7 @@ methods. Installation ------------ -The ``voting`` package works in Python 2.7, 3.4, 3.5, 3.6. It is available on +The ``voting`` package works in Python 2.7, 3.5, 3.6 and 3.7. It is available on pypi and can be installed using pip. .. code-block:: shell diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..ba31b7c --- /dev/null +++ b/deploy.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +set -e +export VERSION=$(poetry run python -c "import voting; print(voting.__version__)") +poetry build +poetry run twine upload dist/voting-${VERSION}* +git tag -a ${VERSION} -m "${VERSION}" +git push --tags \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 79830b9..895308e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,7 @@ exclude = ''' [tool.poetry] name = "voting" -version = "0.1.2" +version = "0.1.3" description = "Voting and election related functions." authors = ["Christopher Flynn "] readme = "README.rst" diff --git a/voting/__init__.py b/voting/__init__.py index 5709e1b..6ec7558 100644 --- a/voting/__init__.py +++ b/voting/__init__.py @@ -1,13 +1,13 @@ """Module level accessible objects.""" -from voting.__version__ import __version__ -from voting.__version__ import __description__ -from voting.__version__ import __url__ -from voting.__version__ import __title__ -from voting.__version__ import __author__ -from voting.__version__ import __author_email__ -from voting.__version__ import __license__ -from voting.__version__ import __copyright__ -from voting.__version__ import __docs_copyright__ +from voting._version import __version__ +from voting._version import __description__ +from voting._version import __url__ +from voting._version import __title__ +from voting._version import __author__ +from voting._version import __author_email__ +from voting._version import __license__ +from voting._version import __copyright__ +from voting._version import __docs_copyright__ __all__ = ( __version__, diff --git a/voting/__version__.py b/voting/_version.py similarity index 94% rename from voting/__version__.py rename to voting/_version.py index a7f9b00..ab6f157 100644 --- a/voting/__version__.py +++ b/voting/_version.py @@ -2,7 +2,7 @@ __title__ = "voting" __description__ = "Voting and election related functions." __url__ = "https://github.com/crflynn/voting" -__version__ = "0.1.2" +__version__ = "0.1.3" __author__ = "Christopher Flynn" __author_email__ = "crf204@gmail.com" __license__ = "MIT"