Skip to content

arXiv/submit-ce

submit-ce API

arXiv paper submission system

Installation & Usage

To run the server, please execute the following from the root directory:

# Install gcld3 dependencies needed by arxiv-base metadata checks
sudo apt-get install cmake libprotobuf-dev protobuf-compiler
# mac notes: don't use a version greater than:
#   $ brew search protobuf
#   protobuf@21 ✔ (deprecated)

uv sync

uv run python submit_ce/make_test_db.py bootstrap_db
# this will give you an Authorization token, save that and use a browser extension
# like modheader to add Authorization=eyJhb...

uv run flask --app submit_ce.ui.factory:create_web_app run -p 8000
open http://localhost:8000
# mac notes: pick another port if 5000 used for music:
#   uv run flask --app submit_ce.ui.factory:create_web_app run -p 5000

On the mac:

```bash
# mac notes: don't use a version of protobuf greater than 21:
brew search protobuf
brew install protobuf@21
uv sync
uv run python submit_ce/make_test_db.py bootstrap_db
# this will give you an Authorization token, save that and use a browser extension
# like modheader to add Authorization=eyJhb...
uv run flask --app submit_ce.ui.factory:create_web_app run -p 8000
open http://localhost:8000

Build Docker Image

gcloud auth configure-docker gcr.io # only needed once
docker build . -t gcr.io/arxiv-development/submit-ce/submit-ce-ui
docker push gcr.io/arxiv-development/submit-ce/submit-ce-ui

Tests

Test setup:

sudo apt-get install google-cloud-cli-pubsub-emulator

# mac notes: gcloud components install pubsub-emulator

See emulator instructions for other operating systems.

To run the tests:

pytest submit_ce

About

arXiv paper submission system

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors