Skip to content

Commit

Permalink
concvert attestations to space (#3)
Browse files Browse the repository at this point in the history
Initial set up space restclient
  • Loading branch information
fanglinfang committed Nov 4, 2021
1 parent 868393f commit c39e712
Show file tree
Hide file tree
Showing 25 changed files with 317 additions and 323 deletions.
4 changes: 2 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[run]
branch = True
source = uw_attest
include = uw_attest/*
source = uw_space
include = uw_space/*
6 changes: 3 additions & 3 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
name: tests

env:
APP_NAME: uw_attest
APP_NAME: uw_space

on:
push:
branches: [main, develop]
branches: [main, qa, develop]
pull_request:
branches: [main, develop]
branches: [main, qa, develop]
types: [opened, reopened, synchronize]
release:
branches: [main]
Expand Down
4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
include uw_attest/VERSION
recursive-include uw_attest *
include uw_space/VERSION
recursive-include uw_space *
27 changes: 13 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# uw-restclients-attestation
# uw-restclients-space
Restclient for Attestations Service

[![Build Status](https://github.com/uw-it-aca/uw-restclients-attest/workflows/tests/badge.svg?branch=main)](https://github.com/uw-it-aca/uw-restclients-attest/actions)
[![Coverage Status](https://coveralls.io/repos/github/uw-it-aca/uw-restclients-attest/badge.svg?branch=main)](https://coveralls.io/github/uw-it-aca/uw-restclients-attest?branch=main)
[![PyPi Version](https://img.shields.io/pypi/v/uw-restclients-attest.svg)](https://pypi.python.org/pypi/uw-restclients-attest)
![Python versions](https://img.shields.io/pypi/pyversions/uw-restclients-attest.svg)
[![Build Status](https://github.com/uw-it-aca/uw-restclients-space/workflows/tests/badge.svg?branch=main)](https://github.com/uw-it-aca/uw-restclients-space/actions)
[![Coverage Status](https://coveralls.io/repos/github/uw-it-aca/uw-restclients-space/badge.svg?branch=main)](https://coveralls.io/github/uw-it-aca/uw-restclients-space?branch=main)
[![PyPi Version](https://img.shields.io/pypi/v/uw-restclients-space.svg)](https://pypi.python.org/pypi/uw-restclients-space)
![Python versions](https://img.shields.io/pypi/pyversions/uw-restclients-space.svg)

Installation:

Expand All @@ -14,14 +14,13 @@ To use this client, you'll need these settings in your application or script:

# Specifies whether requests should use live or mocked resources,
# acceptable values are 'Live' or 'Mock' (default)
RESTCLIENTS_ATTEST_DAO_CLASS='Live'
RESTCLIENTS_ATTEST_AUTH_DAO_CLASS='Live'
RESTCLIENTS_ATTEST_AUTH_SECRET=
RESTCLIENTS_ATTEST_AUTH_HOST=''
RESTCLIENTS_SPACE_DAO_CLASS='Live'

Optional settings:
# Paths to UWCA cert and key files
RESTCLIENTS_SPACE_CERT_FILE='/path/to/cert'
RESTCLIENTS_SPACE_KEY_FILE='/path/to/key'

# Customizable parameters for urllib3
RESTCLIENTS_ATTEST_HOST=''
RESTCLIENTS_ATTEST_TIMEOUT=5
RESTCLIENTS_ATTEST_POOL_SIZE=10
Settings:
RESTCLIENTS_SPACE_HOST=''
RESTCLIENTS_SPACE_TIMEOUT=5
RESTCLIENTS_SPACE_POOL_SIZE=10
2 changes: 1 addition & 1 deletion conf/test.conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[ATTEST]
[SPACE]
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@

README = """
See the README on `GitHub
<https://github.com/uw-it-aca/uw-restclients-attest>`_.
<https://github.com/uw-it-aca/uw-restclients-space>`_.
"""

version_path = 'uw_attest/VERSION'
version_path = 'uw_space/VERSION'
VERSION = open(os.path.join(os.path.dirname(__file__), version_path)).read()
VERSION = VERSION.replace("\n", "")

# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))

url = "https://github.com/uw-it-aca/uw-restclients-attest"
url = "https://github.com/uw-it-aca/uw-restclients-space"
setup(
name='UW-RestClients-Attest',
name='UW-RestClients-Space',
version=VERSION,
packages=['uw_attest'],
packages=['uw_space'],
author="UW-IT AXDD",
author_email="aca-it@uw.edu",
include_package_data=True,
Expand Down
33 changes: 0 additions & 33 deletions uw_attest/__init__.py

This file was deleted.

58 changes: 0 additions & 58 deletions uw_attest/dao.py

This file was deleted.

88 changes: 0 additions & 88 deletions uw_attest/models.py

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions uw_attest/resources/attest_auth/file/oauth2/token.POST

This file was deleted.

44 changes: 0 additions & 44 deletions uw_attest/tests/test_attest.py

This file was deleted.

35 changes: 0 additions & 35 deletions uw_attest/tests/test_dao.py

This file was deleted.

File renamed without changes.
Loading

0 comments on commit c39e712

Please sign in to comment.