Skip to content

Commit

Permalink
fix: jans-cli download yaml files for build (#1635)
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar authored Jun 30, 2022
1 parent b98d047 commit 31b7e49
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions jans-cli/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,23 @@
import re
from setuptools import setup
from setuptools import find_packages
from setuptools.command.install import install
from urllib.request import urlretrieve

class PostInstallCommand(install):
"""Post-installation for installation mode."""
def run(self):
install.run(self)

urlretrieve(
'https://raw.githubusercontent.com/JanssenProject/jans/main/jans-config-api/docs/jans-config-api-swagger.yaml',
os.path.join(self.install_lib, 'cli/jca.yaml')
)

urlretrieve(
'https://raw.githubusercontent.com/JanssenProject/jans/main/jans-scim/server/src/main/resources/jans-scim-openapi.yaml',
os.path.join(self.install_lib, 'cli/scim.yaml')
)


def find_version(*file_paths):
Expand Down Expand Up @@ -61,4 +78,7 @@ def find_version(*file_paths):
"scim-cli=cli.config_cli:main",
],
},
cmdclass={
'install': PostInstallCommand,
},
)

0 comments on commit 31b7e49

Please sign in to comment.