Skip to content
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

Bump HTTP, update HTTP records #22

Merged
merged 5 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 21 additions & 16 deletions .github/workflows/Documenter.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
name: Documenter
name: Documentation

on:
push:
branches: [master]
tags: [v*]
branches:
- master # update to match your development branch (master, main, dev, trunk, ...)
tags: '*'
pull_request:

defaults:
run:
shell: bash

jobs:
Documenter:
name: Documentation
build:
permissions:
actions: write
contents: write
pull-requests: read
statuses: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: 1
- uses: julia-actions/julia-buildpkg@latest
- uses: julia-actions/julia-docdeploy@releases/v1
version: '1.10'
- uses: julia-actions/cache@v1
- name: Install dependencies
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- name: Build and deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # If authenticating with SSH deploy key
run: julia --project=docs/ docs/make.jl
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ jobs:
fail-fast: false
matrix:
version:
- '1.0'
- '1'
- 'nightly'
- '1.10'
os:
- ubuntu-latest
- macOS-latest
Expand All @@ -24,7 +22,7 @@ jobs:
- x64
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
*.jl.mem
/Manifest.toml
/docs/build/
/docs/Manifest.toml
6 changes: 3 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name = "PubChemCrawler"
uuid = "30e472fa-2b12-4c0b-9705-07d174b7a4e1"
authors = ["Tim Holy <[email protected]> and contributors"]
version = "1.1.0"
version = "1.2.0"

[deps]
HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3"
LightXML = "9c8b4983-aa76-5018-a973-4c85ecc9e179"

[compat]
HTTP = "0.8, 0.9"
HTTP = "1"
LightXML = "0.8, 0.9"
julia = "1"
julia = "1.10"

[extras]
BrokenRecord = "bdd55f5b-6e67-4da1-a080-6086e55655a0"
Expand Down
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
PubChemCrawler = "30e472fa-2b12-4c0b-9705-07d174b7a4e1"

[compat]
Documenter = "0.25"
Documenter = "1"
2 changes: 0 additions & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ using Documenter
makedocs(;
modules=[PubChemCrawler],
authors="Tim Holy <[email protected]> and contributors",
repo="https://github.com/JuliaHealth/PubChemCrawler.jl/blob/{commit}{path}#L{line}",
sitename="PubChemCrawler.jl",
format=Documenter.HTML(;
prettyurls=get(ENV, "CI", "false") == "true",
canonical="https://JuliaHealth.github.io/PubChemCrawler.jl",
assets=String[],
),
Expand Down
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Parse `str` as a chemical formula, return a list of `atom=>multiplicity` pairs.

```jldoctest; setup=(using PubChemCrawler)
julia> parse_formula("C2CaH2O6")
4-element Array{Pair{String,$Int},1}:
4-element Vector{Pair{String, $Int}}:
"C" => 2
"Ca" => 1
"H" => 2
Expand Down
Binary file modified test/http_record/CAS_as_json.bson
Binary file not shown.
Binary file modified test/http_record/CAS_as_txt.bson
Binary file not shown.
Binary file modified test/http_record/aspirin_cid_from_name.bson
Binary file not shown.
Binary file modified test/http_record/aspirin_cid_from_smiles.bson
Binary file not shown.
Binary file modified test/http_record/aspirin_smiles_from_cid.bson
Binary file not shown.
Binary file modified test/http_record/asprin_sdf_3d.bson
Binary file not shown.
Binary file modified test/http_record/cGMP_cid.bson
Binary file not shown.
Binary file modified test/http_record/estriol_cid.bson
Binary file not shown.
Binary file modified test/http_record/estriol_substructure.bson
Binary file not shown.
Binary file modified test/http_record/estriol_substructure_formulas.bson
Binary file not shown.
Binary file modified test/http_record/smarts.bson
Binary file not shown.
Binary file modified test/http_record/smarts_pug.bson
Binary file not shown.
Binary file modified test/http_record/sodium_acetate_parent.bson
Binary file not shown.
Loading