debian/bullseye
|
Last change
on this file since 70f328b was 5e4cb73, checked in by Joachim Langenbach <joachim.langenbach@…>, 8 years ago |
|
Refactored mapservice
- mapservice is a connexion python webservice with openapi defined api
- mapservice-webclient is a angular app, consuming the openapi webservice mapservice
|
-
Property mode
set to
100644
|
|
File size:
975 bytes
|
| Line | |
|---|
| 1 | # coding: utf-8
|
|---|
| 2 |
|
|---|
| 3 | import sys
|
|---|
| 4 | from setuptools import setup, find_packages
|
|---|
| 5 |
|
|---|
| 6 | NAME = "{{packageName}}"
|
|---|
| 7 | VERSION = "{{packageVersion}}"
|
|---|
| 8 | {{#apiInfo}}{{#apis}}{{^hasMore}}
|
|---|
| 9 | # To install the library, run the following
|
|---|
| 10 | #
|
|---|
| 11 | # python setup.py install
|
|---|
| 12 | #
|
|---|
| 13 | # prerequisite: setuptools
|
|---|
| 14 | # http://pypi.python.org/pypi/setuptools
|
|---|
| 15 |
|
|---|
| 16 | REQUIRES = [
|
|---|
| 17 | "connexion==2.0.0",
|
|---|
| 18 | "swagger-ui-bundle==0.0.2",
|
|---|
| 19 | "python_dateutil==2.6.0"{{#supportPython2}},
|
|---|
| 20 | "typing==3.5.2.2"{{/supportPython2}}
|
|---|
| 21 | ]
|
|---|
| 22 |
|
|---|
| 23 | setup(
|
|---|
| 24 | name=NAME,
|
|---|
| 25 | version=VERSION,
|
|---|
| 26 | description="{{appName}}",
|
|---|
| 27 | author_email="{{infoEmail}}",
|
|---|
| 28 | url="{{packageUrl}}",
|
|---|
| 29 | keywords=["OpenAPI", "{{appName}}"],
|
|---|
| 30 | install_requires=REQUIRES,
|
|---|
| 31 | packages=find_packages(),
|
|---|
| 32 | package_data={'': ['openapi/openapi.yaml']},
|
|---|
| 33 | include_package_data=True,
|
|---|
| 34 | entry_points={
|
|---|
| 35 | 'console_scripts': ['{{packageName}}={{packageName}}.__main__:main']},
|
|---|
| 36 | long_description="""\
|
|---|
| 37 | {{appDescription}}
|
|---|
| 38 | """
|
|---|
| 39 | )
|
|---|
| 40 | {{/hasMore}}{{/apis}}{{/apiInfo}}
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.