Browse Source

Use PBR for setup.py

changes/20/418020/1
Denis Makogon 2 years ago
parent
commit
ba13e225b5
3 changed files with 53 additions and 69 deletions
  1. 1
    0
      requirements.txt
  2. 38
    1
      setup.cfg
  3. 14
    68
      setup.py

+ 1
- 0
requirements.txt View File

@@ -1,6 +1,7 @@
1 1
 # The order of packages is significant, because pip processes them in the order
2 2
 # of appearance. Changing the order has an impact on the overall integration
3 3
 # process, which may cause wedges in the gate later.
4
+pbr>=1.8 # Apache-2.0
4 5
 
5 6
 uvloop==0.6.0 # Apache-2.0
6 7
 aioservice==0.0.2 # Apache-2.0

+ 38
- 1
setup.cfg View File

@@ -1,2 +1,39 @@
1
-[bdist_wheel]
1
+[metadata]
2
+name = picasso
3
+summary = OpenStack Functions-as-a-Service
4
+description-file =
5
+    README.md
6
+author = OpenStack
7
+author-email = openstack-dev@lists.openstack.org
8
+home-page = https://github.com/iron-io/picasso
9
+classifier =
10
+    Environment :: OpenStack
11
+    Intended Audience :: Information Technology
12
+    Intended Audience :: System Administrators
13
+    License :: OSI Approved :: Apache Software License
14
+    Operating System :: POSIX :: Linux
15
+    Programming Language :: Python
16
+    Programming Language :: Python :: 3.5
17
+
18
+[files]
19
+packages =
20
+    picasso
21
+
22
+[entry_points]
23
+console_scripts =
24
+    picasso-api = service.picasso_api:server
25
+
26
+[global]
27
+setup-hooks =
28
+    pbr.hooks.setup_hook
29
+
30
+[build_sphinx]
31
+source-dir = doc/source
32
+build-dir = doc/build
33
+all_files = 1
34
+
35
+[upload_sphinx]
36
+upload-dir = doc/build/html
37
+
38
+[wheel]
2 39
 universal = 1

+ 14
- 68
setup.py View File

@@ -1,75 +1,21 @@
1
-# All Rights Reserved.
1
+# Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
2 2
 #
3
-#    Licensed under the Apache License, Version 2.0 (the "License"); you may
4
-#    not use this file except in compliance with the License. You may obtain
5
-#    a copy of the License at
3
+# Licensed under the Apache License, Version 2.0 (the "License");
4
+# you may not use this file except in compliance with the License.
5
+# You may obtain a copy of the License at
6 6
 #
7
-#         http://www.apache.org/licenses/LICENSE-2.0
7
+#    http://www.apache.org/licenses/LICENSE-2.0
8 8
 #
9
-#    Unless required by applicable law or agreed to in writing, software
10
-#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
-#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
-#    License for the specific language governing permissions and limitations
13
-#    under the License.
9
+# Unless required by applicable law or agreed to in writing, software
10
+# distributed under the License is distributed on an "AS IS" BASIS,
11
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12
+# implied.
13
+# See the License for the specific language governing permissions and
14
+# limitations under the License.
14 15
 
15
-import os
16
+# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
16 17
 import setuptools
17 18
 
18
-
19
-def read(fname):
20
-    return open(os.path.join(os.path.dirname(__file__), fname)).read()
21
-
22 19
 setuptools.setup(
23
-    name='picasso',
24
-    version='0.0.1',
25
-    description=('Picasso provides abstractions for '
26
-                 'Functions-as-a-Service on OpenStack'),
27
-    long_description=read('README.md'),
28
-    url='picasso.readthedocs.org',
29
-    author='Denis Makogon',
30
-    author_email='denis@iron.io',
31
-    packages=setuptools.find_packages(),
32
-    install_requires=[
33
-        "uvloop==0.6.0",
34
-        "aioservice==0.0.2",
35
-        "aiomysql==0.0.9",
36
-        "alembic==0.8.8",
37
-        "click==6.6",
38
-        "python-functionsclient==0.0.2",
39
-        "keystoneauth1==2.15.0",
40
-        "python-keystoneclient==3.6.0",
41
-        "aiohttp-swagger==1.0.2",
42
-    ],
43
-    license='License :: OSI Approved :: Apache Software License',
44
-    classifiers=[
45
-        'License :: OSI Approved :: Apache Software License',
46
-        'Intended Audience :: Information Technology',
47
-        'Intended Audience :: System Administrators',
48
-        'Intended Audience :: Developers',
49
-        'Environment :: No Input/Output (Daemon)',
50
-        'Programming Language :: Python :: 3.5',
51
-        'Topic :: Software Development :: '
52
-        'Libraries :: Python Modules',
53
-        'Topic :: System :: Distributed Computing',
54
-        'Operating System :: Microsoft :: Windows',
55
-        'Operating System :: POSIX',
56
-        'Operating System :: Unix',
57
-        'Operating System :: MacOS',
58
-    ],
59
-    keywords=['functions', 'lambdas', 'python API'],
60
-    platforms=['Linux', 'Mac OS-X', 'Unix'],
61
-    tests_require=[
62
-        'flake8==2.5.0',
63
-        'hacking<0.11,>=0.10.0',
64
-        'sphinx!=1.3b1,<1.4,>=1.2.1',
65
-        'testtools>=1.4.0',
66
-        "pytest-aiohttp",
67
-        "pytest-cov",
68
-    ],
69
-    zip_safe=True,
70
-    entry_points={
71
-        'console_scripts': [
72
-            'picasso-api = service.picasso_api:server',
73
-        ]
74
-    },
75
-)
20
+    setup_requires=['pbr>=1.8'],
21
+    pbr=True)

Loading…
Cancel
Save