-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
52 lines (47 loc) · 1.45 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
import os
import pathlib
import setuptools
from setuptools import setup
# The directory containing this file
HERE = pathlib.Path(__file__).parent
# The text of the README file
README = (HERE / "README.md").read_text()
def package_files(directory):
paths = []
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
if '__pycache__' not in path and not filename.endswith('.pyc'):
paths.append(os.path.join('..', path, filename))
return paths
# The directory containing the profile and codecs
extra_files = package_files('snippet/.snippet')
# This call to setup() does all the work
setup(
name="snippet-cli",
version="2.2.0",
description="An advanced snippet manager for the command-line.",
long_description=README,
long_description_content_type="text/markdown",
url="https://github.com/bytebutcher/snippet",
author="bytebutcher",
author_email="[email protected]",
license="GPL-3.0",
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent"
],
packages=setuptools.find_packages(),
package_data={'snippet': extra_files},
include_package_data=True,
install_requires=[
'pyparsing==3.1.1',
'argcomplete==3.1.6',
'iterfzf==1.1.0.44.0',
'colorama==0.4.6'
],
entry_points={
"console_scripts": [
"snippet=snippet:main",
]
},
)