Skip to content

Commit

Permalink
Split the bodhi package into multiple packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
bowlofeggs committed Sep 9, 2016
1 parent cadc5c2 commit 933ff9a
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 22 deletions.
3 changes: 3 additions & 0 deletions BODHI_MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include *.txt *.rst
recursive-include docs *
include COPYING
1 change: 1 addition & 0 deletions CLIENT_MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include COPYING *.txt
5 changes: 2 additions & 3 deletions MANIFEST.in → SERVER_MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
include *.txt *.ini *.cfg *.rst
include *.txt *.ini *.cfg *.rst README.rst
recursive-include bodhi *.ico *.png *.css *.gif *.jpg *.pt *.txt *.mak *.mako *.js *.html *.xml *.ttf *.woff *.woff2 *.eot *.otf *.svg
recursive-include apache *
recursive-include alembic *
recursive-include alembic *.py *.mako *.rst
recursive-include tools *
recursive-include docs *
recursive-include fedmsg.d *
include bodhi/server/locale/.placeholder
include COPYING
2 changes: 1 addition & 1 deletion development.ini.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[app:main]
use = egg:bodhi
use = egg:bodhi-server

##
## Atomic OSTree support
Expand Down
2 changes: 1 addition & 1 deletion production.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[app:main]
use = egg:bodhi
use = egg:bodhi-server

##
## Messages
Expand Down
82 changes: 66 additions & 16 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@
import sys

from setuptools import setup, find_packages
import setuptools.command.egg_info


here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
VERSION = '2.1.9'

requires = [
server_requires = [
'pyramid',
'pyramid_mako',
'pyramid_debugtoolbar',
Expand Down Expand Up @@ -63,43 +66,92 @@

'Sphinx',

# For the bodhi-client
'click',

'WebOb>=1.4.1',
]

if sys.version_info[:3] < (2,7,0):
requires.append('importlib')
server_requires.append('importlib')

if sys.version_info[:3] < (2,5,0):
requires.append('pysqlite')
server_requires.append('pysqlite')


setuptools.command.egg_info.manifest_maker.template = 'BODHI_MANIFEST.in'


setup(name='bodhi',
version='2.1.9',
description='bodhi',
version=VERSION,
description='bodhi common package',
long_description=README + '\n\n' + CHANGES,
classifiers=[
"Programming Language :: Python",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='',
author_email='',
url='',
keywords='web fedora pyramid',
packages=find_packages(),
keywords='fedora',
packages=['bodhi'],
include_package_data=True,
zip_safe=False,
install_requires = requires,
install_requires = [],
tests_require = [
'nose',
'nose-cov',
'webtest',
'mock'
],
test_suite="nose.collector",
)


setuptools.command.egg_info.manifest_maker.template = 'CLIENT_MANIFEST.in'


setup(name='bodhi-client',
version=VERSION,
description='bodhi client',
long_description=README + '\n\n' + CHANGES,
classifiers=[
"Programming Language :: Python",
],
author='',
author_email='',
url='',
keywords='fedora',
packages=['bodhi.client'],
include_package_data=False,
zip_safe=False,
install_requires = ['click'],
entry_points = """\
[console_scripts]
bodhi = bodhi.client:cli
""",
)


setuptools.command.egg_info.manifest_maker.template = 'SERVER_MANIFEST.in'


setup(name='bodhi-server',
version=VERSION,
description='bodhi server',
long_description=README + '\n\n' + CHANGES,
classifiers=[
"Programming Language :: Python",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author='',
author_email='',
url='',
keywords='web fedora pyramid',
packages=find_packages(
exclude=['bodhi', 'bodhi.client', 'bodhi.client.*', 'bodhi.tests', 'bodhi.tests.*']),
include_package_data=True,
# script_args=sys.argv.extend(['--template', 'TEST']),
zip_safe=False,
install_requires = server_requires,
message_extractors = { '.': [
#('**.py', 'lingua_python', None),
#('**.mak', 'lingua_xml', None),
Expand All @@ -109,7 +161,6 @@
main = bodhi.server:main
[console_scripts]
initialize_bodhi_db = bodhi.server.scripts.initializedb:main
bodhi = bodhi.client:cli
bodhi-push = bodhi.server.push:push
bodhi-expire-overrides = bodhi.server.scripts.expire_overrides:main
bodhi-untag-branched = bodhi.server.scripts.untag_branched:main
Expand All @@ -121,4 +172,3 @@
""",
paster_plugins=['pyramid'],
)

2 changes: 1 addition & 1 deletion staging.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[app:main]
use = egg:bodhi
use = egg:bodhi-server

##
## Messages
Expand Down

0 comments on commit 933ff9a

Please sign in to comment.