Skip to content

Commit

Permalink
Updated README and setup.py for 1.5 release
Browse files Browse the repository at this point in the history
  • Loading branch information
magnuswatn committed Mar 1, 2018
1 parent a1fdc1b commit 5452318
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 14 deletions.
13 changes: 0 additions & 13 deletions README.md

This file was deleted.

31 changes: 31 additions & 0 deletions README.rst
@@ -0,0 +1,31 @@
fodselsnummer
=============

.. image:: https://travis-ci.org/magnuswatn/fodselsnummer.svg?branch=master
:target: https://travis-ci.org/magnuswatn/fodselsnummer

.. image:: https://codecov.io/gh/magnuswatn/fodselsnummer/branch/master/graph/badge.svg
:target: https://codecov.io/gh/magnuswatn/fodselsnummer

.. image:: https://badge.fury.io/py/fodselsnummer.svg
:target: https://badge.fury.io/py/fodselsnummer

Used to generate and validate Norwegian birth numbers ("fødselsnummer").

Installation
------------

.. code-block:: bash
$ pipenv install fodselsnummer
Example usage
-------------

.. code-block:: python
import fodselsnummer
fodselsnummer.check_fnr('12345678900')
19 changes: 18 additions & 1 deletion setup.py
@@ -1,21 +1,38 @@
import os
import codecs

try:
from setuptools import setup
except ImportError:
from distutils.core import setup

def read_file(filename, encoding='utf8'):
"""Read unicode from given file."""
with codecs.open(filename, encoding=encoding) as fd:
return fd.read()

here = os.path.abspath(os.path.dirname(__file__))
readme = read_file(os.path.join(here, 'README.rst'))

setup(
name='fodselsnummer',
description='For generating and validating of Norwegian "birth numbers" (fodselsnummer)',
version='1.1',
long_description=readme,
version='1.5',
license='MIT',
author='Magnus Watn',
keywords='fodselsnummer personnummer norway',
url='https://github.com/magnuswatn/fodselsnummer',
py_modules=['fodselsnummer'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
)

0 comments on commit 5452318

Please sign in to comment.