-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·69 lines (54 loc) · 1.73 KB
/
setup.py
File metadata and controls
executable file
·69 lines (54 loc) · 1.73 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/env python3
# coding: UTF-8
import os
from setuptools import setup, Command
root = os.path.abspath('.')
current_dir = os.path.dirname(__file__)
def read_file(file_name):
with open(os.path.join(current_dir, file_name), 'r') as file:
return file.read()
README = read_file('README.rst')
VERSION = read_file('VERSION')
class CleanCommand(Command):
"""Custom clean command to tidy up the project root."""
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
os.system('rm -vrf ./build ./dist ./*.pyc ./*.tgz ./*.egg-info ./eggs')
test_deps = [
'coverage',
'pytest',
'pytest-cov'
]
extras = {
'test': test_deps,
}
setup(
name = 'estnin',
version = VERSION,
url = 'https://github.com/antirais/estnin',
py_modules = ['estnin'],
license = 'MIT',
include_package_data = True,
author = 'Anti Räis',
author_email = 'antirais@gmail.com',
description = 'library for handling Estonian national identity numbers',
long_description = README,
test_suite = 'tests',
setup_requires = ['pytest-runner'],
tests_require = test_deps,
extras_require = {'test': test_deps},
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries',
],
cmdclass = {
'clean': CleanCommand,
},
)