forked from magnuswatn/fodselsnummer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (36 loc) · 1.31 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import os
import codecs
try:
from setuptools import setup # type: ignore
except (ImportError, ModuleNotFoundError):
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)',
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',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
)