-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
58 lines (49 loc) · 1.66 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
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def get_long_description():
path = os.path.join(os.path.dirname(__file__), 'README.md')
try:
import pypandoc
return pypandoc.convert(path, 'rst')
except(IOError, ImportError, RuntimeError):
with open(path, 'r') as f:
return f.read()
setup(
name='pycataloguer',
version='0.0.2',
license='LGPL-3.0',
description='Cataloguer for your files',
packages=['pycataloguer'],
#long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(),
long_description=get_long_description(),
author='Konstantin Polyakov',
author_email='[email protected]',
maintainer='Konstantin Polyakov',
maintainer_email='[email protected]',
url='https://github.com/shyzik93/PyCataloguer',
download_url='https://github.com/shyzik93/pycataloguer/archive/master.zip',
install_requires=['SQLAlchemy'],
entry_points={
'console_scripts': ['pycat = pycataloguer.cli:do_cmd']
},
include_package_data=True,
classifiers=[
"Environment :: Console",
"Natural Language :: English",
"Programming Language :: Python :: 3.4",
"Topic :: Scientific/Engineering"
]
)
'''
# uninstall globally
sudo python setup.py install --record installed.txt
sudo xargs rm -vr < installed.txt
# uinstall in your home directory
python setup.py install --user --record installed.txt
xargs rm -vr < installed.txt
Из папки rep://dist:
cd pycataloguer-0.1.0 ; xargs rm -vr < installed.txt ; cd .. ; tar -xzf pycataloguer-0.1.0.tar.gz ; cd pycataloguer-0.1.0 ; python3 setup.py install ; cd ..
'''