-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
setup.py
71 lines (65 loc) · 2.37 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
from setuptools import setup
from pathlib import Path
# Version number
with open("folderstats/__init__.py") as f:
for line in f:
if "__version__" in line:
version = line.split("=")[1].strip().strip('"').strip("'")
break
# The text of the README file
this_directory = Path(__file__).absolute().parent
with open(this_directory / "README.md") as f:
README = f.read()
# Requirements
try:
this_directory = Path(__file__).absolute().parent
with open((this_directory / 'requirements.txt'), encoding='utf-8') as f:
requirements = f.readlines()
requirements = [line.strip() for line in requirements]
except FileNotFoundError:
requirements = []
# This call to setup() does all the work
setup(
name="folderstats",
version=version,
description="Creates statistics from a folder structure",
long_description=README,
long_description_content_type='text/markdown',
url="https://github.com/njanakiev/folderstats",
author="Nikolai Janakiev",
author_email="[email protected]",
license="MIT",
classifiers=[
# As from http://pypi.python.org/pypi?%3Aaction=list_classifiers
# 'Development Status :: 1 - Planning',
# 'Development Status :: 2 - Pre-Alpha',
# 'Development Status :: 3 - Alpha',
# 'Development Status :: 4 - Beta',
# 'Development Status :: 5 - Production/Stable',
# 'Development Status :: 6 - Mature',
# 'Development Status :: 7 - Inactive',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX',
'Operating System :: MacOS',
'Operating System :: Unix',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Software Development :: Libraries :: Python Modules'
],
platforms='any',
packages=['folderstats'],
include_package_data=True,
install_requires=requirements,
entry_points={
"console_scripts": [
"folderstats = folderstats.__main__:main"
]
}
)