Skip to content

Commit

Permalink
setup.py: Fixed package building
Browse files Browse the repository at this point in the history
  • Loading branch information
cubicbyte committed Jul 26, 2023
1 parent 936f5f9 commit 74b1163
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import re
from pathlib import Path

from setuptools import setup, find_packages


Expand All @@ -9,19 +7,6 @@ def read(path: str) -> str:
return f.read()


def get_requirements():
"""Build the requirements list for this project"""
requirements_list = []

with Path('requirements.txt').open() as reqs:
for install in reqs:
if install.startswith('#'):
continue
requirements_list.append(install.strip())

return requirements_list


def get_version(ver_file: str) -> str: # Credits to pyTelegramBotAPI setup.py
with open(ver_file, 'r', encoding='utf-8') as f:
return re.search(r"^__version__\s*=\s*'(.*)'.*$",
Expand All @@ -40,7 +25,13 @@ def get_version(ver_file: str) -> str: # Credits to pyTelegramBotAPI setup.py
packages = find_packages(),
license='MIT',
keywords='python reddit account-generator account-maker account-generation r-place rplace',
install_requires=get_requirements(),
install_requires=[
'selenium==4.8.3',
'selenium-recaptcha-solver==1.9.0',
'random-username==1.0.2',
'webdriverdownloader==1.1.0.3',
'stem==1.8.2',
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 3',
Expand Down

0 comments on commit 74b1163

Please sign in to comment.