Browse Source

moved swagger_client dependency to another repository, removed Makefile (is now useless)

master
Vašek Šraier 6 years ago
parent
commit
48f080aed7
  1. 31
      Makefile
  2. 1
      Pipfile
  3. 6
      Pipfile.lock
  4. 4
      README.md

31
Makefile

@ -1,31 +0,0 @@
GITEA_URL=https://try.gitea.io/swagger.v1.json
BUILDDIR=tmp
build: swagger_client clean_builddir pipenv_sync
swagger_client:
mkdir -p "${BUILDDIR}"
swagger-codegen generate -i "${GITEA_URL}" -l python -o "${BUILDDIR}/gitea_api"
mv "${BUILDDIR}/gitea_api/swagger_client" .
rm -rf "${BUILDDIR}/gitea_api"
# Protoze ten generator psali nejaci dementi, neumi to cyklicke reference
# je proto potreba zakomentovat dva importy
sed -i 's/from swagger_client\.models\.gpg_key import GPGKey/#from swagger_client.models.gpg_key import GPGKey/' swagger_client/models/gpg_key.py
sed -i 's/from swagger_client\.models\.repository import Repository/#from swagger_client.models.repository import Repository/' swagger_client/models/repository.py
.PHONY: pipenv_sync
pipenv_sync:
pipenv sync
.PHONY: clean_builddir
clean_builddir:
rm -rf ${BUILDDIR}
.PHONY: clean
clean:
rm -rf swagger_client/
rm -rf click/
pipenv --rm

1
Pipfile

@ -12,6 +12,7 @@ beautifulsoup4 = "*"
six = "*" six = "*"
termcolor = "*" termcolor = "*"
lxml = "*" lxml = "*"
swagger_client = { git = "https://gitea-gimli.kam.mff.cuni.cz/vasek/gitea-swagger-client" }
[requires] [requires]
python_version = "3" python_version = "3"

6
Pipfile.lock

@ -1,7 +1,7 @@
{ {
"_meta": { "_meta": {
"hash": { "hash": {
"sha256": "b3919507bc0b38aec128ddc5d3e67bfa4ddce8ebfbee114635c50d1b0143b90d" "sha256": "ee32788aeebfec6cf37be58728aa8f66afdc8783d61e401722317295a45b5e03"
}, },
"pipfile-spec": 6, "pipfile-spec": 6,
"requires": { "requires": {
@ -109,6 +109,10 @@
], ],
"version": "==1.8" "version": "==1.8"
}, },
"swagger-client": {
"git": "https://gitea-gimli.kam.mff.cuni.cz/vasek/gitea-swagger-client",
"ref": "db10cf7f02dc4b332647867a995dec3ffb6f415c"
},
"termcolor": { "termcolor": {
"hashes": [ "hashes": [
"sha256:1d6d69ce66211143803fbc56652b41d73b4a400a2891d7bf7a1cdf4c02de613b" "sha256:1d6d69ce66211143803fbc56652b41d73b4a400a2891d7bf7a1cdf4c02de613b"

4
README.md

@ -5,11 +5,9 @@ Určeno pro registraci organizátorů seminářů na MFF UK.
## Build ## Build
Build má následující závislosti: Build má následující závislosti:
* Make
* swagger-codegen
* pipenv * pipenv
Spouští se prostým zavoláním `make` Spouští se prostým zavoláním `pipenv sync`
## Spouštění ## Spouštění

Loading…
Cancel
Save