-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·59 lines (50 loc) · 1.59 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·59 lines (50 loc) · 1.59 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
#!/usr/bin/env python
import os
import sys
from pathlib import Path
from setuptools import setup, find_packages
from setuptools.command.install import install
VERSION = "v1.3.0"
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()
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('TAG_NAME')
if tag != VERSION:
info = "Git tag: {0} does not match the version of this app: {1}".format(
tag, VERSION
)
sys.exit(info)
setup(
name="target-airtable",
version=VERSION,
license="GNU Affero General Public License v3.0",
description="Singer.io target for loading data",
long_description=long_description,
long_description_content_type='text/markdown',
author="ednarb29",
url="https://github.com/ednarb29/target-airtable",
keywords=["singer.io", "singer-target", "airtable"],
classifiers=[
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: GNU Affero General Public License v3"
],
py_modules=["target_airtable"],
install_requires=[
"singer-python>=5.0.12",
"requests>=2.27.1",
"pyairtable==1.1.0"
],
entry_points="""
[console_scripts]
target-airtable=target_airtable:main
""",
packages=find_packages(),
package_data={},
include_package_data=True,
cmdclass={
'verify': VerifyVersionCommand,
}
)