Skip to content

Commit

Permalink
Bump HTTP, update HTTP records (#22)
Browse files Browse the repository at this point in the history
* Bump HTTP, update HTTP records
* Test only on Julia 1.10 due to BrokenRecord limitations
* Make Julia 1.10 the minimum
* Update docs build and CI

Closes #19, closes #21

Co-authored-by: Filipe Chichorro <[email protected]>
  • Loading branch information
timholy and fchichorro authored Aug 30, 2024
1 parent c10a088 commit e0a2100
Show file tree
Hide file tree
Showing 20 changed files with 29 additions and 27 deletions.
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.

2 comments on commit e0a2100

@timholy
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/114173

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.2.0 -m "<description of version>" e0a2100704f3a9beb189fb896fefc798e60a94d7
git push origin v1.2.0

Please sign in to comment.