Skip to content

Commit 6276896

Browse files
committed
update docs
1 parent 7fa8707 commit 6276896

3 files changed

Lines changed: 60 additions & 16 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Here we provide notes that summarize the most important changes in each released version.
44

55
Please consult the changelog to inform yourself about breaking changes and security issues.
6+
## [Unreleased] - yyyy-mm-dd
7+
8+
### Added
9+
* added julia support for `Project.toml` file
610

711
## [v0.3.1](https://github.com/Materials-Data-Science-and-Informatics/somesy/tree/v0.3.1) <small>(2024-01-23)</small> { id="0.3.1" }
812

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ verbose = true # show detailed information about what somesy is doing
109109
<!-- --8<-- [end:somesytoml] -->
110110

111111
Alternatively, you can also add the somesy configuration to an existing
112-
`pyproject.toml` or `package.json` file. The somesy [manual](https://materials-data-science-and-informatics.github.io/somesy/main/manual/#somesy-input-file) contains examples showing how to do that.
112+
`pyproject.toml`, `package.json` or `Project.toml` file. The somesy [manual](https://materials-data-science-and-informatics.github.io/somesy/main/manual/#somesy-input-file) contains examples showing how to do that.
113113

114114
### Using somesy
115115

@@ -125,7 +125,7 @@ authoritative** source for project metadata, which is used to update all
125125
supported (and enabled) *target files*. You can find an overview of supported
126126
formats further below.
127127

128-
By default, `somesy` will create (if they did not exist) or update `CITATION.cff` and `codemeta.json` files in your repository. If you happen to use `pyproject.toml` (in Python projects) or `package.json` (in JavaScript projects), somesy would also update the respective information there.
128+
By default, `somesy` will create (if they did not exist) or update `CITATION.cff` and `codemeta.json` files in your repository. If you happen to use `pyproject.toml` (in Python projects), `package.json` (in JavaScript projects), or `Project.toml` (in Julia projects), somesy would also update the respective information there.
129129

130130
You can see call available options with `somesy --help`,
131131
all of these can also be conveniently set in your `somesy.toml` file.
@@ -169,6 +169,7 @@ Here is an overview of all the currently supported files and formats.
169169
| (.)somesy.toml | ✓ | | pyproject.toml _(poetry)_ | ✓ |
170170
| pyproject.toml | ✓ | | pyproject.toml _(setuptools)_ | ✓(1.) |
171171
| package.json | ✓ | | package.json | ✓(2.) |
172+
| Project.toml | ✓ | | Project.toml | ✓ |
172173
| | | | CITATION.cff | ✓ |
173174
| | | | codemeta.json | ✓(3.) |
174175

docs/manual.md

Lines changed: 53 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -127,20 +127,20 @@ some of the currently supported formats.
127127

128128
=== "Project Metadata"
129129

130-
| Field Name | Poetry Config | SetupTools Config | CITATION.cff | package.json | Requirement |
131-
| ----------------- | ------------- | ----------------- | --------------- | ------------ | ----------- |
132-
| name | name | name | title | name | required |
133-
| description | description | description | abstract | description | required |
134-
| license | license | license | license | license | required |
135-
| version | version | version | version | version | optional |
136-
| | | | | | |
137-
| *author=true* | authors | authors | authors | author | required |
138-
| *maintainer=true* | maintainers | maintainers | contact | maintainers | optional |
139-
| *people* | - | - | - | contributors | optional |
140-
| | | | | | |
141-
| keywords | keywords | keywords | keywords | keywords | optional |
142-
| repository | repository | urls.repository | repository_code | repository | optional |
143-
| homepage | homepage | urls.homepage | url | homepage | optional |
130+
| Field Name | Poetry Config | SetupTools Config | Julia Config || CITATION.cff | package.json | Requirement |
131+
| ----------------- | ------------- | ----------------- | ------------ || --------------- | ------------ | ----------- |
132+
| name | name | name | name || title | name | required |
133+
| description | description | description | - || abstract | description | required |
134+
| license | license | license | - || license | license | required |
135+
| version | version | version | version || version | version | optional |
136+
| | | | || | | |
137+
| *author=true* | authors | authors | authors || authors | author | required |
138+
| *maintainer=true* | maintainers | maintainers | - || contact | maintainers | optional |
139+
| *people* | - | - | - || - | contributors | optional |
140+
| | | | || | | |
141+
| keywords | keywords | keywords | - || keywords | keywords | optional |
142+
| repository | repository | urls.repository | = || repository_code | repository | optional |
143+
| homepage | homepage | urls.homepage | - || url | homepage | optional |
144144

145145
Note that the mapping is often not 1-to-1. For example, CITATION.cff allows rich
146146
specification of author contact information and complex names. In contrast,
@@ -167,6 +167,7 @@ Without an input file specifically provided, somesy will check if it can find a
167167
* `.somesy.toml`
168168
* `somesy.toml`
169169
* `pyproject.toml` (in `tool.somesy` section)
170+
* `Project.toml` (in `tool.somesy` section)
170171
* `package.json` (in `somesy` section)
171172

172173
which is located in the current working directory. If you want to provide
@@ -218,6 +219,44 @@ one of the supported input formats:
218219
verbose = true # show detailed information about what somesy is doing
219220
```
220221

222+
=== "Project.toml"
223+
```toml
224+
name = "my-amazing-project"
225+
version = "0.1.0"
226+
uuid = "c7e460c6-3f3e-11ec-8d3d-0242ac130003"
227+
228+
[deps]
229+
...
230+
231+
[tool.somesy.project]
232+
name = "my-amazing-project"
233+
version = "0.1.0"
234+
description = "Brief description of my amazing software."
235+
236+
keywords = ["some", "descriptive", "keywords"]
237+
license = "MIT"
238+
repository = "https://github.com/username/my-amazing-project"
239+
240+
# This is you, the proud author of your project
241+
[[tool.somesy.project.people]]
242+
given-names = "Jane"
243+
family-names = "Doe"
244+
email = "j.doe@example.com"
245+
orcid = "https://orcid.org/0000-0000-0000-0001"
246+
author = true # is a full author of the project (i.e. appears in citations)
247+
maintainer = true # currently maintains the project (i.e. is a contact person)
248+
249+
# this person is a acknowledged contributor, but not author or maintainer:
250+
[[tool.somesy.project.people]]
251+
given-names = "Another"
252+
family-names = "Contributor"
253+
email = "a.contributor@example.com"
254+
orcid = "https://orcid.org/0000-0000-0000-0002"
255+
256+
[tool.somesy.config]
257+
verbose = true # show detailed information about what somesy is doing
258+
```
259+
221260
=== "package.json"
222261

223262
```json

0 commit comments

Comments
 (0)