-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
44 lines (38 loc) · 1.46 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
43
44
#!/usr/bin/env python3
# -*- coding: utf-8, vim: expandtab:ts=4 -*-
import sys
import setuptools
import importlib.util
def import_pyhton_file(module_name, file_path):
# Import module from file: https://docs.python.org/3/library/importlib.html#importing-a-source-file-directly
spec = importlib.util.spec_from_file_location(module_name, file_path)
module = importlib.util.module_from_spec(spec)
sys.modules[module_name] = module
spec.loader.exec_module(module)
return module
with open('README.md') as fh:
long_description = fh.read()
setuptools.setup(
name='xtsv',
# Get version without actually importing the module (else we need the dependencies installed)
version=getattr(import_pyhton_file('version', 'xtsv/version.py'), '__version__'),
author='dlazesz',
author_email='devel@oliphant.nytud.hu',
description='A generic TSV-style format based intermodular communication framework and REST API',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/nytud/xtsv',
packages=setuptools.find_packages(exclude=['tests']),
install_requires=[
'werkzeug',
'flask',
'flask-restful',
],
include_package_data=True,
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
'Operating System :: OS Independent',
],
python_requires='>=3.7',
)