Skip to content

fpm package skeleton #2

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

Merged
merged 3 commits into from
May 20, 2023
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
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,32 @@
# http-client

HTTP client library for Fortran

## Getting started

Get the code:

```
git clone https://github.com/fortran-lang/http-client
cd http-client
```

Build the library using [fpm](https://fpm.fortran-lang.org).
http-client requires fpm version 0.8.x or later to build.
Type:

```
fpm build
```

To run the examples, type:

```
fpm run --example
```

To run the tests, type:

```
fpm test
```
5 changes: 5 additions & 0 deletions example/demo.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
program demo
implicit none

print *, "Put some examples in here!"
end program demo
20 changes: 20 additions & 0 deletions fpm.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name = "http-client"
version = "0.1.0"
license = "MIT"
author = "Fortran-lang"
copyright = "Copyright 2023, Fortran-lang"

[build]
auto-executables = true
auto-tests = true
auto-examples = true
module-naming = false

[install]
library = false

[fortran]
implicit-typing = false
implicit-external = false
source-form = "free"

10 changes: 10 additions & 0 deletions src/http-client.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module http_client
implicit none
private

public :: say_hello
contains
subroutine say_hello
print *, "Hello, http-client!"
end subroutine say_hello
end module http_client
5 changes: 5 additions & 0 deletions test/check.f90
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
program check
implicit none

print *, "Put some tests in here!"
end program check