-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
42 lines (37 loc) · 1.27 KB
/
setup.py
File metadata and controls
42 lines (37 loc) · 1.27 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
import sys
from setuptools import setup, find_packages
pkgVersion = "INVALID_VERSION"
# Default version from file
with open("rites/_version.py", "r") as f:
for line in f:
if line.startswith("__version__"):
pkgVersion = line.split("=")[1].strip().replace('"', '').replace("'", '')
break
# Check for version argument
for arg in sys.argv:
if arg.startswith('--version='):
pkgVersion = arg.split('=')[1]
# Remove this argument so setuptools doesn't see it
sys.argv.remove(arg)
break
print(f"Building package with version {pkgVersion}")
setup(
name="rites",
version=pkgVersion,
description="Reclipse's Initial Try at Enhanced Simplicity or R.I.T.E.S. A simple and lightweight QoL module.",
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
author="Reclipse",
maintainer="Reclipse",
url="https://github.com/ReclipseTheOne/rites",
packages=find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
install_requires=[
'colored>=2.2.4'
]
)