Skip to content

Commit

Permalink
Merge pull request #249 from oscar-system/enh/docstring_Polymake_jl
Browse files Browse the repository at this point in the history
Enh/docstring polymake jl
  • Loading branch information
benlorenz authored Apr 13, 2020
2 parents f84f4db + c68169d commit fd04c00
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/runtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['1.0', '1.3']
julia-version: ['1.0', '1.3', '1.4']
os: [ubuntu-latest, macOS-latest]
fail-fast: true

steps:
- uses: actions/checkout@v1.0.0
- name: "Set up Julia"
Expand All @@ -22,15 +22,15 @@ jobs:
- uses: julia-actions/julia-uploadcodecov@latest
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

test-julia-nightly:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['^1.4.0-rc1', 'nightly']
julia-version: ['nightly']
os: [ubuntu-latest, macOS-latest]
fail-fast: false

steps:
- uses: actions/checkout@v1.0.0
- name: "Set up Julia"
Expand Down
8 changes: 8 additions & 0 deletions src/Polymake.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
"""
`Polymake.jl` is the Julia interface to `polymake`, an open source software for research in polyhedral geometry.
For more information see:
> https://polymake.org/doku.php
>
> https://github.com/oscar-system/Polymake.jl
"""
module Polymake

export @pm, @convert_to, visual
Expand Down
4 changes: 2 additions & 2 deletions src/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ function shell_execute(str::AbstractString)
end

function cite(;format=:bibtex)
cite_str = split(shell_execute("""help "core/citation";""")[2], "\n\n")[2]
cite_str = match(r"(?<bibtex>@incollection.*\n (\s*\w*\s?= .*\n)+\s*\})", shell_execute("""help "core/citation";""").stdout)
if format == :bibtex
return cite_str
return print(cite_str[:bibtex])
else
throw("The only supported citation format is :bibtex")
end
Expand Down

2 comments on commit fd04c00

@kalmarek
Copy link
Contributor

Choose a reason for hiding this comment

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

@JuliaRegistrator register()

@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/12934

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 v0.3.3 -m "<description of version>" fd04c00ecc27a282666acb07aeed32227d0b9914
git push origin v0.3.3

Please sign in to comment.