-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Story/cico 13 #11
base: develop
Are you sure you want to change the base?
Story/cico 13 #11
Changes from 6 commits
6f473a6
3b12d02
a1b73bd
0039256
14c1106
e1bed40
aef6a0c
7f5727d
b72631f
8cc564c
6c9f56f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: Ruff | ||
on: [ push, pull_request ] | ||
jobs: | ||
ruff: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: astral-sh/ruff-action@v1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.1.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: check-ast | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.7.4 | ||
hooks: | ||
- id: ruff | ||
args: [ --fix ] | ||
- id: ruff-format |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,28 @@ | ||
## Citesphere Connector | ||
# Citesphere Connector | ||
|
||
Python library to connect to Citephere using its [API](https://documenter.getpostman.com/view/19365454/UVeMJiyx). | ||
Python library to connect to Citephere using its [API](https://documenter.getpostman.com/view/19365454/UVeMJiyx). | ||
|
||
|
||
## PyPi Package Installation | ||
|
||
`pip install citesphere-connector` | ||
|
||
|
||
## Developer Setup | ||
|
||
Create a python virtual environment outside of this project's root directory `python3 -m venv env` and activate it `source env/bin/activate` | ||
|
||
Navigate to the project root and download package dependencies `pip install -r requirements.txt` | ||
|
||
For retrieivng the Bearer access token required for endpoint method calls, please see the following OAuth2 [documentation] (https://diging.atlassian.net/wiki/spaces/OAC/pages/3533078792/Getting+OAuth2+Access+Token+in+Postman) for Citesphere | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the pre-commit hooks need to be installed too, don't they? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was my understanding that as long as the pre-commit yaml file is present, you don't need to directly install anything |
||
|
||
## User Guide | ||
|
||
Retrieve Bearer access token required for endpoint method calls: [documentation] (https://diging.atlassian.net/wiki/spaces/OAC/pages/3533078792/Getting+OAuth2+Access+Token+in+Postman) | ||
|
||
### Downloading Files | ||
Use the 'Download' Jupyter notebook to download files from Citesphere to your local device. | ||
|
||
### Uploading Files | ||
Use the 'Upload' Jupyter notebook to upload files to Citesphere from your local device. |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[build-system] | ||
requires = ["setuptools >= 61.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "citesphere-connector" | ||
version = "1.0.0" | ||
dependencies = [ | ||
"cfgv", | ||
"distlib", | ||
"filelock", | ||
"identify", | ||
"nodeenv", | ||
"platformdirs", | ||
"pre_commit", | ||
"PyYAML", | ||
"ruff", | ||
"virtualenv", | ||
] | ||
requires-python = ">= 3.9" | ||
authors = [ | ||
{name = "Digital Innovation Group", email = "[email protected]"}, | ||
{name = "Julia Damerow", email = "[email protected]"}, | ||
] | ||
maintainers = [ | ||
{name = "Julia Damerow", email = "[email protected]"}, | ||
] | ||
description = "Connect to Citesphere, an application that enables superior management of Zotero citations" | ||
readme = "README.md" | ||
license = {file = "LICENSE"} | ||
keywords = ["cite", "diging", "citesphere", "sphere", "zotero"] | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"Intended Audience :: Research Software Engineers, Researchers, Data Scientists, Developers", | ||
"Topic :: Reserach Software Engineering :: Citation Manager", | ||
"Programming Language :: Python", | ||
] | ||
|
||
[project.urls] | ||
"Citesphere API" = "https://documenter.getpostman.com/view/19365454/UVeMJiyx" | ||
"Citesphere" = "https://diging-dev.asu.edu/citesphere-review/" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's take this out. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
cfgv==3.4.0 | ||
distlib==0.3.9 | ||
filelock==3.16.1 | ||
identify==2.6.2 | ||
nodeenv==1.9.1 | ||
platformdirs==4.3.6 | ||
pre_commit==4.0.1 | ||
PyYAML==6.0.2 | ||
ruff==0.7.4 | ||
virtualenv==20.27.1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this needs to be installed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And does it really need all these dependencies? |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
"""A setuptools based setup module. | ||
|
||
See: | ||
https://packaging.python.org/guides/distributing-packages-using-setuptools/ | ||
https://github.com/pypa/sampleproject | ||
""" | ||
|
||
from setuptools import setup, find_packages | ||
import pathlib | ||
|
||
here = pathlib.Path(__file__).parent.resolve() | ||
|
||
long_description = (here / "README.md").read_text(encoding="utf-8") | ||
|
||
setup( | ||
name="citesphere-connector", | ||
version="1.0.0", | ||
description="Connect to Citesphere, an application that enables superior management of Zotero citations", | ||
url="https://github.com/diging/citesphere-connector", | ||
author="Digital Innovation Group", | ||
author_email="[email protected]", | ||
classifiers=[ | ||
"Development Status :: 3 - Alpha", | ||
"Intended Audience :: Research Software Engineers, Researchers, Data Scientists, Developers", | ||
"Topic :: Reserach Software Engineering :: Citation Manager", | ||
"Programming Language :: Python", | ||
], | ||
keywords="cite, diging, citesphere, sphere, zotero", | ||
package_dir={"": "src"}, | ||
packages=find_packages(where="src"), | ||
python_requires=">=3.9", | ||
project_urls={ | ||
"Citesphere API": "https://documenter.getpostman.com/view/19365454/UVeMJiyx", | ||
"Citesphere": "https://diging-dev.asu.edu/citesphere-review/", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here |
||
}, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this action is doing anything? Just checking out and installing ruff?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, the action should run the tests.