-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
56 lines (43 loc) · 1.47 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
52
53
54
55
56
from __future__ import unicode_literals
import os
import sys
from setuptools import setup
from setuptools.command.install import install
import pycoda
install_requires = ("factory-boy",)
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 != pycoda.__version__:
info = "Git tag: {0} does not match the version of this app: {1}".format(
tag, pycoda.__version__
)
sys.exit(info)
def readme():
"""print long description"""
with open("README.md") as f:
return f.read()
setup(
name="codapy",
version=pycoda.__version__,
description="Coded statement of Account (CODA) python API",
long_description=readme(),
long_description_content_type="text/markdown",
url="https://github.com/mhemeryck/pycoda",
install_requires=install_requires,
author="Martijn Hemeryck",
author_email="[email protected]",
license="MIT",
packages=["pycoda"],
zip_safe=True,
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Office/Business :: Financial :: Accounting",
],
cmdclass={"verify": VerifyVersionCommand},
)