-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
68 lines (63 loc) · 2.44 KB
/
setup.py
File metadata and controls
68 lines (63 loc) · 2.44 KB
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Setup script for Stow-Python - Python reimplementation of GNU Stow.
Works with Python 2.7+ and Python 3.0+.
"""
from setuptools import setup
import os
# Read version from the package
here = os.path.abspath(os.path.dirname(__file__))
version = '2.4.1'
# Try to read version from source
try:
with open(os.path.join(here, 'bin', 'stow')) as f:
for line in f:
if line.startswith('VERSION'):
version = line.split('=')[1].strip().strip("'\"")
break
except Exception:
pass
setup(
name='stow-python',
version=version,
description='Stow-Python - Python reimplementation of the GNU Stow symlink farm manager',
long_description=open('README.md').read() if os.path.exists('README.md') else '',
long_description_content_type='text/markdown',
author='Istvan Sarandi',
author_email='istvan.sarandi@gmail.com',
url='https://github.com/isarandi/stow-python',
license='GPL-3.0-or-later',
scripts=['bin/stow', 'bin/chkstow'],
python_requires='>=2.7',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: POSIX',
'Operating System :: Unix',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.0',
'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: 3.14',
'Topic :: System :: Installation/Setup',
'Topic :: System :: Systems Administration',
],
keywords='stow symlink dotfiles package-manager',
)