From 79907dcc8bb3718d97f00a2b68df6a0814691ec8 Mon Sep 17 00:00:00 2001 From: Bouke Haarsma Date: Sun, 1 Jun 2014 09:25:50 +0200 Subject: [PATCH] Released 1.0.0-beta1 --- CONTRIBUTORS => CONTRIBUTORS.rst | 0 LICENSE.txt => LICENSE | 0 MANIFEST.in | 3 +-- README.rst | 6 +++++- docs/conf.py | 6 +++--- docs/release-notes.rst | 26 +++++++++++++++++--------- docs/requirements.rst | 6 +++--- requirements_dev.txt | 4 ++++ setup.cfg | 5 ++++- setup.py | 3 ++- 10 files changed, 39 insertions(+), 20 deletions(-) rename CONTRIBUTORS => CONTRIBUTORS.rst (100%) rename LICENSE.txt => LICENSE (100%) diff --git a/CONTRIBUTORS b/CONTRIBUTORS.rst similarity index 100% rename from CONTRIBUTORS rename to CONTRIBUTORS.rst diff --git a/LICENSE.txt b/LICENSE similarity index 100% rename from LICENSE.txt rename to LICENSE diff --git a/MANIFEST.in b/MANIFEST.in index d04fb5b7e..768f8364a 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,4 @@ -include LICENSE.txt -include README.rst +include *.rst LICENSE prune two_factor/locale recursive-include two_factor/locale * recursive-include two_factor/templates * diff --git a/README.rst b/README.rst index 9af2b4555..e58c530cb 100644 --- a/README.rst +++ b/README.rst @@ -108,12 +108,14 @@ For Python compatibility, tox_ is used. You can run the full test suite with:: tox - See Also ======== Have a look at django-user-sessions_ for Django sessions with a foreign key to the user. This package is also included in the online `example app`_. +Also as a note-to-self, for packaging see +`Hynek's Sharing Your Labor of Love: PyPI Quick And Dirty`_. + License ======= The project is licensed under the MIT license. @@ -129,3 +131,5 @@ The project is licensed under the MIT license. .. _source code: https://github.com/Bouke/django-two-factor-auth .. _readthedocs.org: http://django-two-factor-auth.readthedocs.org/ .. _Yubikey: https://www.yubico.com/products/yubikey-hardware/ +.. _`Hynek's Sharing Your Labor of Love: PyPI Quick And Dirty`: + https://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/ diff --git a/docs/conf.py b/docs/conf.py index 71658e49c..c46d55023 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -52,9 +52,9 @@ # built documents. # # The short X.Y version. -version = '0.6' +version = '1.0' # The full version, including alpha/beta/rc tags. -release = '0.6.0' +release = '1.0.0-beta1' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -271,7 +271,7 @@ # allow autodoc to import some project files, which rely on Django from django.conf import settings settings.configure( - DEBUG=False, + DEBUG=False, INSTALLED_APPS=('django.contrib.auth',), AUTH_USER_MODEL='auth.User', ) diff --git a/docs/release-notes.rst b/docs/release-notes.rst index aab9a871a..2146856ae 100644 --- a/docs/release-notes.rst +++ b/docs/release-notes.rst @@ -1,19 +1,27 @@ Release Notes ============= -0.6.0 (in development) ----------------------- +1.0.0-beta1 +----------- * Support for Django 1.7 -* Fixed #39 -- Added support for custom user model (Django 1.5+) -* Two new translations: German and Spanish +* New translations: German, Spanish, French, Swedish and Portuguese (Brazil) +* #39 -- Added support for custom user model (Django 1.5+) +* Added management commands +* Added support for YubiKeys +* Fire signal when user is verified +* #44 -- Don't require re-login after setup +* #49 -- Advise to add backup devices after setup +* #52 -- Add URL encoding to otpauth URL +* #54 -- Mitigate voicemail hack +* #55 -- Use two_factor:login instead of LOGIN_URL 0.5.0 ----- -* Fixed #32 -- Make the auth method label capitalization more consistent -* Fixed #31 -- Set an error code for phone_number_validator -* Fixed #30 -- Don't transmit token seed through GET parameters -* Fixed #29 -- Generate QR codes locally -* Fixed #27 -- South migrations to support custom user model +* #32 -- Make the auth method label capitalization more consistent +* #31 -- Set an error code for phone_number_validator +* #30 -- Don't transmit token seed through GET parameters +* #29 -- Generate QR codes locally +* #27 -- South migrations to support custom user model 0.4.0 ----- diff --git a/docs/requirements.rst b/docs/requirements.rst index 6ae783c63..0087d14de 100644 --- a/docs/requirements.rst +++ b/docs/requirements.rst @@ -9,9 +9,9 @@ Python 3. Python ------ -The following Python versions are supported: 2.6, 2.7, 3.2 and 3.3. As support -for older Django versions is dropped, the minimum version might be raised. See -also `What Python version can I use with Django?`_. +The following Python versions are supported: 2.6, 2.7, 3.2, 3.3 and 3.4. As +support for older Django versions is dropped, the minimum version might be +raised. See also `What Python version can I use with Django?`_. django-otp ---------- diff --git a/requirements_dev.txt b/requirements_dev.txt index 43e50ffdd..fc0df5ecf 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -30,3 +30,7 @@ transifex-client Sphinx sphinx_rtd_theme + +# Build + +wheel diff --git a/setup.cfg b/setup.cfg index 501ec5e2a..155936a69 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,6 @@ [flake8] -exclude=two_factor/migrations,compat.py,two_factor/views/__init__.py +exclude = two_factor/migrations,compat.py,two_factor/views/__init__.py max-line-length = 100 + +[wheel] +universal = 1 diff --git a/setup.py b/setup.py index e7de32711..69f7caec8 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='django-two-factor-auth', - version='0.6.0-dev', + version='1.0.0-beta1', description='Complete Two-Factor Authentication for Django', long_description=open('README.rst').read(), author='Bouke Haarsma', @@ -31,6 +31,7 @@ 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.2', 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', 'Topic :: Security', 'Topic :: System :: Systems Administration :: Authentication/Directory', ],