-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
37 lines (32 loc) · 1.13 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
import setuptools
import os
version_file = os.path.join('dbpack', 'version.py')
if not os.path.isfile(version_file):
raise IOError(version_file)
with open(version_file, "r") as fid:
for line in fid:
if line.strip('\n').strip().startswith('__version__'):
__version__ = line.strip('\n').split('=')[-1].split()[0].strip().strip('"').strip("'")
break
else:
raise Exception(f'could not detect __version__ affectation in {version_file}')
with open("Readme.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="dbpack", # Replace with your own username
version=__version__,
author="Maximilien Lehujeur",
author_email="[email protected]",
description="",
long_description=long_description,
long_description_content_type="text/markdown",
url="",
license="MIT",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: POSIX :: Linux",
],
scripts=["dbpack/scripts/selection_columns.py"],
install_requires=['numpy'],
python_requires='>=3.7')