-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
setup.py
34 lines (30 loc) · 1.04 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
from setuptools import setup, find_packages
version = ""
with open("rustplus/__init__.py") as input_file:
for line in input_file.readlines():
if line.startswith("__version__"):
version = line.strip("__version__ =").strip().strip('"')
break
requirements = []
with open("requirements.txt") as input_file:
for line in input_file.readlines():
requirements.append(line.strip())
with open("README.md", errors='ignore') as input_file:
readme = input_file.read()
setup(
name='rustplus',
author='olijeffers0n',
url='https://github.com/olijeffers0n/rustplus',
project_urls={
"Issue tracker": "https://github.com/olijeffers0n/rustplus/issues",
},
version=version,
packages=find_packages(include=['rustplus', 'rustplus.*']),
license='MIT',
description='A python wrapper for the Rust Plus API',
long_description=readme,
include_package_data=True,
long_description_content_type='text/markdown',
install_requires=requirements,
python_requires='>=3.8.0',
)