Skip to content

Commit

Permalink
Merge pull request #352 from arXiv/ARXIVCE-825
Browse files Browse the repository at this point in the history
ARXIVCE-825 Metadata checks: first commit
  • Loading branch information
jonathanhyoung authored Feb 25, 2025
2 parents fcb89a3 + 6fccaec commit 4e405cc
Show file tree
Hide file tree
Showing 8 changed files with 1,975 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pullreqeust_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
python-version: "3.11"
- name: Install dependencies
run: |
sudo apt install -y protobuf-compiler
protoc --version
python -m pip install --upgrade pip
python -m pip install poetry
pip --version
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2017 Cornell University
Copyright 2017-2025 Cornell University

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
25 changes: 25 additions & 0 deletions arxiv/metadata/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

# placeholder

from enum import StrEnum

class Color(StrEnum):
RED = "red"
GREEN = "green"
BLUE = "blue"

class FieldName(StrEnum):
TITLE = "title"
AUTHORS = "authors"
ABSTRACT = "abstract"
# source_type is internal, not checked
COMMENTS = "comments"
REPORT_NUM = "report_num"
JOURNAL_REF = "journal_ref"
DOI = "doi"

class Disposition(StrEnum):
OK = "ok"
WARN = "warn"
HOLD = "hold"

Loading

0 comments on commit 4e405cc

Please sign in to comment.