-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust setup.py with proper requirements packages and path outputs
- Loading branch information
1 parent
df507d8
commit b536a68
Showing
2 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = [ ] | ||
|
||
|
@@ -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', | ||
|
@@ -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, | ||
|
@@ -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") ) |