Skip to content

Commit

Permalink
Fix issue #140 : make project pip installable.
Browse files Browse the repository at this point in the history
* Use importlib to retrieve version.
* Remove analyzeMFT.py as a script
  • Loading branch information
william-billaud committed Sep 21, 2024
1 parent 46976a8 commit 36d9bcd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
Empty file removed __init.py__
Empty file.
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
openpyxl==3.0.10
sqlite3
openpyxl==3.0.10
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
from setuptools import setup, find_packages
from src.analyzeMFT.constants import VERSION

with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()

setup(
name='analyzeMFT',
version=VERSION,
version='3.0.6.6',
author='Benjamin Cance',
author_email='[email protected]',
package_dir={'': 'src'},
Expand All @@ -19,14 +18,12 @@
description='Analyze the $MFT from a NTFS filesystem.',
long_description=long_description,
long_description_content_type='text/markdown',
scripts=['analyzeMFT.py'],
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
Expand Down
3 changes: 2 additions & 1 deletion src/analyzeMFT/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
VERSION = '3.0.6.6'
from importlib.metadata import version
VERSION = version('analyzeMFT')

# File Record Flags
FILE_RECORD_IN_USE = 0x0001
Expand Down

0 comments on commit 36d9bcd

Please sign in to comment.