summaryrefslogtreecommitdiffstats
path: root/onap-dcae-dcaepolicy-lib
diff options
context:
space:
mode:
authorAlex Shatov <alexs@att.com>2017-09-21 14:11:20 -0400
committerAlex Shatov <alexs@att.com>2017-09-21 14:11:20 -0400
commit2200894f54019231bfe1a62845dda03e9bb87bd1 (patch)
treec8462721ec3b92d7462477d6ffe37fef35db87a2 /onap-dcae-dcaepolicy-lib
parentd4c05d0b349519dee045485705d01aff1540673a (diff)
proper setup.py for global pypi
* usage: pip install onap-dcae-dcaepolicy-lib import onap_dcae_dcaepolicy_lib Change-Id: I57b1b3157f21f9cb3b018c55ba469cd14450942b Issue-Id: DCAEGEN2-62 Signed-off-by: Alex Shatov <alexs@att.com>
Diffstat (limited to 'onap-dcae-dcaepolicy-lib')
-rw-r--r--onap-dcae-dcaepolicy-lib/README.md17
-rw-r--r--onap-dcae-dcaepolicy-lib/onap_dcae_dcaepolicy_lib/dcae_policy.py1
-rw-r--r--onap-dcae-dcaepolicy-lib/setup.py12
3 files changed, 10 insertions, 20 deletions
diff --git a/onap-dcae-dcaepolicy-lib/README.md b/onap-dcae-dcaepolicy-lib/README.md
index 71fdc6a..ff37256 100644
--- a/onap-dcae-dcaepolicy-lib/README.md
+++ b/onap-dcae-dcaepolicy-lib/README.md
@@ -1,18 +1,10 @@
-# onap_dcae_dcaepolicy_lib - policy in dcae controller
+# onap-dcae-dcaepolicy-lib - policy in dcae controller
- python-package to be used in cloudify plugins to maintain the policies lifecycle
-## [setup pypi connection](./nexus_pypi.md) to **nexus** repo server
-
-## build = register and upload to nexus repo server
-
-```bash
-./dev_run.sh build
-```
-
-## upload the python package to nexus repo server
+## upload the python package to pypi server
```bash
-./dev_run.sh upload
+python setup.py sdist upload
```
---
@@ -20,8 +12,7 @@
**requirements.txt**
```python
---extra-index-url https://YOUR_NEXUS_PYPI_SERVER/simple
-onap-dcae-dcaepolicy-lib
+onap-dcae-dcaepolicy-lib==1.0.0
```
**tasks.py**
diff --git a/onap-dcae-dcaepolicy-lib/onap_dcae_dcaepolicy_lib/dcae_policy.py b/onap-dcae-dcaepolicy-lib/onap_dcae_dcaepolicy_lib/dcae_policy.py
index d64d50f..6a277f3 100644
--- a/onap-dcae-dcaepolicy-lib/onap_dcae_dcaepolicy_lib/dcae_policy.py
+++ b/onap-dcae-dcaepolicy-lib/onap_dcae_dcaepolicy_lib/dcae_policy.py
@@ -30,7 +30,6 @@ from cloudify.exceptions import NonRecoverableError
POLICIES = 'policies'
POLICY_ID = 'policy_id'
-POLICY_APPLY_MODE = 'policy_apply_mode'
POLICY_BODY = 'policy_body'
POLICY_VERSION = "policyVersion"
POLICY_CONFIG = 'config'
diff --git a/onap-dcae-dcaepolicy-lib/setup.py b/onap-dcae-dcaepolicy-lib/setup.py
index 791b856..7a4e71a 100644
--- a/onap-dcae-dcaepolicy-lib/setup.py
+++ b/onap-dcae-dcaepolicy-lib/setup.py
@@ -19,22 +19,22 @@
#
# ECOMP is a trademark and service mark of AT&T Intellectual Property.
-from setuptools import setup
+from setuptools import setup, find_packages
setup(
- name='onap_dcae_dcaepolicy_lib',
+ name='onap-dcae-dcaepolicy-lib',
description='lib of policy decorators to be used by cloudify plugins of dcae controller',
version="1.0.0",
author='Alex Shatov',
+ author_email="alexs@att.com",
license='Apache 2',
- email="alexs@research.att.com",
- packages=['onap_dcae_dcaepolicy_lib'],
+ packages=find_packages(),
install_requires=[
],
- keywords='policy dcae controller cloudify plugin',
+ keywords='onap policy dcae controller cloudify plugin',
classifiers=[
'Development Status :: 4 - Beta',
- 'Intended Audience :: Developers',
+ 'Intended Audience :: Telecommunications Industry',
'Programming Language :: Python :: 2.7'
]
)