Browse Source

Update for Eclipse/PyDev.

Ignore files generated by the Eclipse IDE and the PyDev plugin;
add missing copyright notice; apply PyDev style.
pull/7/head
parent
commit
3a06e1ba03
  1. 3
      .gitignore
  2. 3
      incenp/pebble/__main__.py
  3. 1
      incenp/pebble/cache.py
  4. 1
      incenp/pebble/editor.py
  5. 1
      incenp/pebble/server.py
  6. 97
      setup.py

3
.gitignore

@ -1,4 +1,7 @@
build
dist
incenp.pebble.egg-info
.project
.pydevproject
.settings
*.pyc

3
incenp/pebble/__main__.py

@ -29,7 +29,6 @@ try:
except ImportError:
from ConfigParser import SafeConfigParser as ConfigParser
prog_name = "pbl"
prog_notice = """\
{} (Pebble {})
@ -48,7 +47,7 @@ def die(msg):
class VersionAction(argparse.Action):
def __init__(self, option_strings, dest):
super(VersionAction, self).__init__(option_strings, dest,nargs=0,
super(VersionAction, self).__init__(option_strings, dest, nargs=0,
help="show information about the program and exit")
def __call__(self, parser, namespace, values, option_string=None):

1
incenp/pebble/cache.py

@ -24,6 +24,7 @@ from sjcl import SJCL
from incenp.pebble.util import Error
class Vault:
def __init__(self, server, name, basedir, key, caching=True):

1
incenp/pebble/editor.py

@ -35,6 +35,7 @@ def _edit_file(contents):
return (edited, edited != contents)
def _credential_to_text(credential):
tags = u','.join([tag[u'text'] for tag in credential['tags']])
lines = [

1
incenp/pebble/server.py

@ -18,6 +18,7 @@ import requests
from incenp.pebble.util import Error
class Server:
def __init__(self, host, user, password):

97
setup.py

@ -1,3 +1,20 @@
# -*- coding: utf-8 -*-
# pebble - Passman client
# Copyright (C) 2018,2019,2020 Damien Goutte-Gattat
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from setuptools import setup
from incenp.pebble import __version__
@ -5,42 +22,46 @@ with open('README.md', 'r') as fh:
long_description = fh.read()
setup(
name = 'incenp.pebble',
version = __version__,
description = 'Command-line Passman client',
long_description = long_description,
long_description_content_type = 'text/markdown',
author = 'Damien Goutte-Gattat',
author_email = 'dgouttegattat@incenp.org',
url = 'https://git.incenp.org/damien/pebble',
classifiers = [
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'
],
install_requires = [
'requests',
'sjcl'
],
packages = [
'incenp',
'incenp.pebble',
'incenp.pebble.cli'
],
entry_points = {
'console_scripts': [
'pbl = incenp.pebble.__main__:main'
]
},
command_options = {
'build_sphinx': {
'project': ('setup.py', 'Pebble'),
'version': ('setup.py', __version__),
'release': ('setup.py', __version__)
}
name='incenp.pebble',
version=__version__,
description='Command-line Passman client',
long_description=long_description,
long_description_content_type='text/markdown',
author='Damien Goutte-Gattat',
author_email='dgouttegattat@incenp.org',
url='https://git.incenp.org/damien/pebble',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'
],
install_requires=[
'requests',
'sjcl'
],
packages=[
'incenp',
'incenp.pebble',
'incenp.pebble.cli'
],
entry_points={
'console_scripts': [
'pbl = incenp.pebble.__main__:main'
]
},
command_options={
'build_sphinx': {
'project': ('setup.py', 'Pebble'),
'version': ('setup.py', __version__),
'release': ('setup.py', __version__)
}
)
}
)

Loading…
Cancel
Save