Skip to content

Commit

Permalink
wrap pkg details in dunder file
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Bury committed Jan 31, 2022
1 parent 60d088e commit 2210858
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 9 deletions.
12 changes: 11 additions & 1 deletion arfs/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
__version__ = "0.3.0"
import os.path

# The directory containing this file
HERE = os.path.abspath(os.path.dirname(__file__))

# get key package details from taco/__version__.py
ABOUT = {} # type: ignore
with open(os.path.join(HERE, '__version__.py')) as f:
exec(f.read(), ABOUT)

__version__ = ABOUT['__version__']
11 changes: 11 additions & 0 deletions arfs/__version__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"""
Information about the package.
"""

__title__ = 'arfs'
__description__ = 'All Relevant Feature Selection'
__version__ = '0.3.1'
__author__ = 'Thomas Bury'
__author_email__ = '[email protected]'
__license__ = 'MIT'
__url__ = 'https://github.com/ThomasBury/arfs'
21 changes: 13 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import os.path
from setuptools import setup, find_packages
import os.path

# The directory containing this file
HERE = os.path.abspath(os.path.dirname(__file__))

# get key package details from taco/__version__.py
ABOUT = {} # type: ignore
with open(os.path.join(HERE, 'arfs', '__version__.py')) as f:
exec(f.read(), ABOUT)

# The text of the README file
with open(os.path.join(HERE, "README.md")) as fid:
README = fid.read()
Expand All @@ -20,20 +25,20 @@

KEYWORDS = 'feature-selection, all-relevant, selection'

setup(name="arfs",
version="0.3.0",
description="All Relevant Feature Selection",
setup(name=ABOUT['__title__'],
version=ABOUT['__version__'],
description=ABOUT['__description__'],
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/ThomasBury/arfs",
author="Thomas Bury",
author_email='[email protected]',
url=ABOUT['__url__'],
author=ABOUT['__author__'],
author_email=ABOUT['__author_email__'],
packages=find_packages(),
zip_safe=False, # the package can run out of an .egg file
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
python_requires='>=3.6',
license='MIT',
license=ABOUT['__license__'],
keywords=KEYWORDS,
package_data={'': ['datasets/data/*.zip',
'datasets/descr/*.rst']},
Expand Down

0 comments on commit 2210858

Please sign in to comment.