-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
39 lines (32 loc) · 1.01 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
import pathlib
import re
from setuptools import setup
HERE = pathlib.Path(__file__).parent
README = (HERE / "README.md").read_text()
packages = [
"BetterThreads"
]
version = None
with open('BetterThreads/__init__.py') as file:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', file.read(), re.MULTILINE).group(1)
if not version:
raise RuntimeError("Version is not set")
setup(
name="better-threads",
version=version,
description="A package that provides extended control over threads",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/ItsYasiru/Better-Threads",
author="Yasiru",
author_email="yasiru.dharmathilaka@gmail.com",
license="MIT",
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.9"
],
packages=packages,
include_package_data=True
)