Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

Commit

Permalink
Move plugin to it's own package for pypi packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
werwty committed Jun 5, 2017
1 parent 253ae59 commit a9675d7
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Expand Up @@ -14,8 +14,9 @@ services:
install:
# dev_requirements should not be needed for testing; don't install them to make sure
- "pip install -r test_requirements.txt"
- "pushd platform/ && python setup.py develop && popd"
- "pushd common/ && python setup.py develop && popd"
- "pushd platform/ && python setup.py develop && popd"
- "pushd plugin/ && python setup.py develop && popd"
before_script:
- psql -U postgres -c "CREATE USER pulp WITH SUPERUSER LOGIN;"
- psql -U postgres -c "CREATE DATABASE pulp OWNER pulp;"
Expand All @@ -25,4 +26,4 @@ script:
# tests can't run without migrations being made
- "python manage.py makemigrations pulp_app"
# chain these so we don't try to run tests if the db reset fails
- "platform/pulp/app/db-reset.sh && python manage.py test"
- "platform/pulpcore/app/db-reset.sh && python manage.py test"
2 changes: 1 addition & 1 deletion platform/pulpcore/app/logs.py
Expand Up @@ -7,7 +7,7 @@
import threading

DEFAULT_LOG_LEVEL = logging.INFO
LOG_FORMAT_STRING = 'pulpcore: %(name)s:%(levelname)s: %(message)s'
LOG_FORMAT_STRING = 'pulp: %(name)s:%(levelname)s: %(message)s'
LOG_PATH = os.path.join('/', 'dev', 'log')
VALID_LOGGERS = ['syslog', 'console']

Expand Down
2 changes: 2 additions & 0 deletions plugin/pulpcore/__init__.py
@@ -0,0 +1,2 @@
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions plugin/setup.py
@@ -0,0 +1,24 @@
from setuptools import setup, find_packages

requirements = [
'pulpcore',
]

setup(
name='pulpcore-plugin',
description='Pulp Plugin API',
version='0.1a1.dev0',
license='GPLv2+',
packages=find_packages(exclude=['test']),
author='Pulp Team',
author_email='pulp-list@redhat.com',
install_requires=requirements,
classifiers=(
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
)
)

0 comments on commit a9675d7

Please sign in to comment.