-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated README and setup.py for 1.5 release
- Loading branch information
1 parent
a1fdc1b
commit 5452318
Showing
3 changed files
with
49 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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', | ||
], | ||
) |