This repository has been archived by the owner on Mar 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
59 lines (49 loc) · 1.54 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
57
58
59
import os
import sys
from setuptools import setup
from setuptools import find_packages
from setuptools.command.install import install
VERSION = "0.5.40"
def readme():
with open("README.md", "r") as fh:
return fh.read()
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 = f"Git tag: {tag} does not match the version of this app: {VERSION}"
sys.exit(info)
setup(
name="libkol",
version=VERSION,
author="",
author_email="dan@heathmailbox.com",
description="Python library for interacting with the Kingdom of Loathing ",
long_description=readme(),
long_description_content_type="text/markdown",
url="https://github.com/python-kol/libkol",
packages=find_packages(),
package_data={"libkol": ["libkol.db", "py.typed"]},
install_requires=[
"aioitertools==0.4.0",
"aiohttp==3.5.4",
"beautifulsoup4==4.7.1",
"dataclasses==0.6",
"multidict==4.5.2",
"typing==3.6.6",
"yarl==1.3.0",
"aiosqlite==0.10.0",
"tortoise-orm==0.12.2",
"PuLP==1.6.10",
"sympy==1.4",
"dill==0.3.0",
],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
cmdclass={"verify": VerifyVersionCommand},
)