-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
51 lines (45 loc) · 1.36 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
45
46
47
48
49
50
51
import sys
import os
from setuptools import setup, find_packages
from setuptools.command.install import install
with open("README.md", "r") as readme_file:
long_description = readme_file.read()
VERSION = "0.2.0"
class VerifyVersionCommand(install):
"""Custom command to verify that the git tag matches our version"""
description = 'verify that the git tag matches our version'
def run(self):
tag = os.getenv('CIRCLE_TAG')
if tag != VERSION:
info = "Git tag: {0} does not match the version of this app: {1}".format(
tag, VERSION
)
sys.exit(info)
setup(
name='galeritas',
version=VERSION,
packages=find_packages(),
python_requires='>=3.6.9',
install_requires=[
'numpy>=1.15',
'scipy>=1.4.1',
'pandas>=1.0.3',
'scikit-learn>=0.20.4',
'seaborn>=0.11.0',
'pytest>=6.1.2',
'pytest-mpl>=0.12.0',
'matplotlib>=3.3.3'
],
url='https://github.com/Creditas/galeritas/',
author='Creditas Data Science Team',
author_email='[email protected]',
long_description=long_description,
long_description_content_type="text/markdown",
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent"
],
cmdclass={
'verify': VerifyVersionCommand,
}
)