Skip to content

Commit

Permalink
Packaging fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Oct 21, 2010
1 parent a6962d6 commit 6b220db
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 2 deletions.
5 changes: 5 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
include LICENSE run_tests.sh ChangeLog
include README builddeb.sh
include MANIFEST.in pylintrc
graft doc
graft tools
1 change: 1 addition & 0 deletions bin/parallax-server
1 change: 1 addition & 0 deletions bin/teller-server
19 changes: 19 additions & 0 deletions builddeb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh

# Copyright 2010 OpenStack, LLC
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

dpkg-buildpackage -b -rfakeroot -tc -uc -D

27 changes: 27 additions & 0 deletions pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[Messages Control]
# W0511: TODOs in code comments are fine.
# W0142: *args and **kwargs are fine.
# W0622: Redefining id is fine.
disable-msg=W0511,W0142,W0622

[Basic]
# Variable names can be 1 to 31 characters long, with lowercase and underscores
variable-rgx=[a-z_][a-z0-9_]{0,30}$

# Argument names can be 2 to 31 characters long, with lowercase and underscores
argument-rgx=[a-z_][a-z0-9_]{1,30}$

# Method names should be at least 3 characters long
# and be lowecased with underscores
method-rgx=[a-z_][a-z0-9_]{2,50}$

# Module names matching nova-* are ok (files in bin/)
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+)|(nova-[a-z0-9_-]+))$

# Don't require docstrings on tests.
no-docstring-rgx=((__.*__)|([tT]est.*)|setUp|tearDown)$

[Design]
max-public-methods=100
min-public-methods=0
max-args=6
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def run(self):
author='OpenStack, LLC.',
author_email='[email protected]',
url='https://launchpad.net/glance',
packages=find_packages(exclude=['test', 'bin']),
packages=find_packages(exclude=['tests', 'bin']),
test_suite='nose.collector',
cmdclass={'sdist': local_sdist},
classifiers=[
Expand All @@ -57,4 +57,5 @@ def run(self):
'Environment :: No Input/Output (Daemon)',
],
install_requires=[], # removed for better compat
scripts=[])
scripts=['bin/parallax-server',
'bin/teller-server'])

0 comments on commit 6b220db

Please sign in to comment.