Skip to content

Commit

Permalink
Extract version to VERSION file
Browse files Browse the repository at this point in the history
  • Loading branch information
tdg5 committed Dec 22, 2023
1 parent 6bf910a commit 780c6c5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
include VERSION
include qless/lua/*.lua
include qless/py.typed
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.12.0a6
10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
from os import path
from typing import Dict, List, Tuple

from setuptools import setup


VERSION_PATH = path.join(path.abspath(path.dirname(__file__)), "VERSION")
with open(VERSION_PATH, encoding="utf-8", mode="r") as f:
VERSION = f.read().strip()


def _long_description() -> Tuple[str, str]:
return open("README.md", "r", encoding="utf-8").read(), "text/markdown"

Expand Down Expand Up @@ -79,8 +85,6 @@ def _test_requires() -> List:
"qless.workers",
"qmore",
],
url="http://github.com/tdg5/qless-py",
version="0.12.0a6",
package_data={"qless": ["lua/*.lua"]},
package_dir={
"qless": "qless",
Expand All @@ -94,4 +98,6 @@ def _test_requires() -> List:
install_requires=_install_requires(),
scripts=["bin/qless-py-worker"],
tests_requires=_test_requires(),
url="http://github.com/tdg5/qless-py",
version=VERSION,
)
1 change: 1 addition & 0 deletions whitelist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ cpus
delitem
deregister
dest
dirname
divy
evt
exc
Expand Down

0 comments on commit 780c6c5

Please sign in to comment.