Skip to content

Commit

Permalink
Adjust setup.py with proper requirements packages and path outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
brnquester committed Dec 30, 2021
1 parent df507d8 commit b536a68
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
Binary file modified requirements.txt
Binary file not shown.
26 changes: 20 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
#!/usr/bin/env python3

"""The setup script."""

from appdirs import *
from setuptools import setup, find_packages
from colorama import init, Fore, Back, Style
import os

init(autoreset=True)

# Identify OS config default path
os_dirs = AppDirs("IntegrityGuard", "IntegrityGuard")

with open('README.md') as readme_file:
with open('README.rst') as readme_file:
readme = readme_file.read()

with open('HISTORY.md') as history_file:
with open('HISTORY.rst') as history_file:
history = history_file.read()

requirements = ['Click>=7.0', ]
requirements = [ 'appdirs>=1.4.4','watchdog>=1.0.2', 'colorama>=0.4.4' ]

test_requirements = [ ]

Expand All @@ -19,7 +25,7 @@
author_email='[email protected]',
python_requires='>=3.6',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
Expand All @@ -34,6 +40,9 @@
'integrityguard=integrityguard.cli:main',
],
},
data_files=[
(os_dirs.user_config_dir, ['src/helpers/integrityguard.conf'])
],
install_requires=requirements,
license="MIT license",
long_description=readme + '\n\n' + history,
Expand All @@ -47,3 +56,8 @@
version='0.1.1',
zip_safe=False,
)

# Print basic instructions for the user
print(Fore.GREEN + "Success!! See important information below:")
print(Fore.YELLOW + "Default config file path: " + os.path.join(os_dirs.user_config_dir, "integrityguard.conf") )
print(Fore.YELLOW + "Default hashes store path: " + os.path.join(os_dirs.user_data_dir, "hashes.json") )

0 comments on commit b536a68

Please sign in to comment.