-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
36 lines (31 loc) · 1.05 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
import os
from setuptools import setup
def read_version():
with open("lapinmq/version", "r") as f:
return f.read().strip("\n")
def check_tag_version():
tag = os.getenv("GITHUB_REF")
expected_version = read_version()
if tag != f"refs/tags/{expected_version}":
raise Exception(f"Tag '{tag}' does not match the expected "
f"version '{expected_version}'")
with open("README.md", "r") as fh:
long_description = fh.read()
check_tag_version()
setup(
name='lapinmq',
version=read_version(),
description='Utilities for RabbitMQ following best practices',
long_description=long_description,
long_description_content_type="text/markdown",
url='https://github.com/madhur-tandon/lapinmq',
author='Madhur Tandon',
author_email='madhurtandon23@gmail.com',
license='BSD 2-clause',
install_requires=['pika==1.3.2'],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)