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

Reorganize the code and expose get-activity-lib #4

Merged
merged 9 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## unreleased

### Added

Expose the library `get-activity-lib` as an opam package (#<PR_NUMBER>, @gpetiot)
gpetiot marked this conversation as resolved.
Show resolved Hide resolved

## 0.1

(changes before Feb '24 not tracked)
5 changes: 5 additions & 0 deletions bin/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(executable
(name main)
(public_name get-activity)
(package get-activity)
(libraries cmdliner get-activity-lib))
2 changes: 2 additions & 0 deletions main.ml → bin/main.ml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
open Get_activity

let ( / ) = Filename.concat

let or_die = function
Expand Down
File renamed without changes.
4 changes: 0 additions & 4 deletions dune

This file was deleted.

9 changes: 8 additions & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
(lang dune 2.3)
(lang dune 2.8)
(name get-activity)
(formatting disabled)
(generate_opam_files true)
(source (github tarides/get-activity))
(authors "[email protected]")
(maintainers "Guillaume Petiot <[email protected]>")

(package
(name get-activity)
(synopsis "Collect activity as markdown")
(depends
(cmdliner (>= 1.1.1))
get-activity (= :version)))

(package
(name get-activity-lib)
(synopsis "Collect activity as markdown")
(depends
cohttp
cohttp-lwt
cohttp-lwt-unix
Expand Down
31 changes: 31 additions & 0 deletions get-activity-lib.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "Collect activity as markdown"
maintainer: ["Guillaume Petiot <[email protected]>"]
authors: ["[email protected]"]
homepage: "https://github.com/tarides/get-activity"
bug-reports: "https://github.com/tarides/get-activity/issues"
depends: [
"dune" {>= "2.8"}
"cohttp"
"cohttp-lwt"
"cohttp-lwt-unix"
"yojson"
"ocaml" {>= "4.08"}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {dev}
[
"dune"
"build"
"-p"
name
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
dev-repo: "git+https://github.com/tarides/get-activity.git"
12 changes: 5 additions & 7 deletions get-activity.opam
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@ authors: ["[email protected]"]
homepage: "https://github.com/tarides/get-activity"
bug-reports: "https://github.com/tarides/get-activity/issues"
depends: [
"dune" {>= "2.3"}
"dune" {>= "2.8"}
"cmdliner" {>= "1.1.1"}
"cohttp"
"cohttp-lwt"
"cohttp-lwt-unix"
"yojson"
"ocaml" {>= "4.08"}
"get-activity"
"=" {version}
"odoc" {with-doc}
]
build: [
["dune" "subst"] {pinned}
["dune" "subst"] {dev}
[
"dune"
"build"
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions lib/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(library
(name get_activity)
(public_name get-activity-lib)
(libraries cohttp cohttp-lwt cohttp-lwt-unix yojson))
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading