Skip to content

Commit

Permalink
Merge pull request #21 from fortran-lang/feat/use-setuptools-scm
Browse files Browse the repository at this point in the history
feat: add setuptools-scm for automatic release versioning
  • Loading branch information
gnikit authored Jan 20, 2024
2 parents cbf27bc + e82f801 commit 9702e4d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ _skbuild/

.coverage
coverage.xml
src/fpm/_version.py
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ The wheels are generated for the following platforms:
[`fpm`](https://github.com/fortran-lang/fpm.git),
[`toml-f`](https://github.com/toml-f/toml-f.git) and
[`M_CLI2`](https://github.com/urbanjost/M_CLI2.git)
2. Update the version number in `pyproject.toml`
3. Update the `docs/README.md` with the README file of the fpm project
4. Update the paths and flags in `pyproject.toml`'s
2. Update the `docs/README.md` with the README file of the fpm project
3. Update the paths and flags in `pyproject.toml`'s
`[tool.cibuildwheel.overrides.environment]` table for `FC` and `LDFLAGS`
to match those printed by `tools/wheels/cibw_before_build_macos.sh` when
run on a GitHub runner.
5. Commit the changes via a pull-request to `main` and ask one of the admins
4. Commit the changes via a pull-request to `main` and ask one of the admins
to merge it.
6. Admins: Issue a new release on GitHub with the same version number as
5. Admins: Issue a new release on GitHub with the same version number as
in `pyproject.toml` using the prefix `v` e.g. `v0.1.0`.

## Development Instructions
Expand Down
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ requires = [
"scikit-build>=0.16.7",
"cmake>=3.20.0",
"ninja",
"setuptools_scm>=8",
]
build-backend = "setuptools.build_meta"

[project]
name = "fpm"
version = "0.10.0"
license = { text = "MIT License" }
authors = [{ name = "fpm maintainers" }]
requires-python = ">=3.7"
Expand All @@ -27,13 +27,16 @@ classifiers = [
"Topic :: Software Development :: Pre-processors",
"Topic :: Utilities",
]
dynamic = ["entry-points", "scripts"]
dynamic = ["version", "entry-points", "scripts"]

[project.urls]
homepage = "https://fpm.fortran-lang.org"
source-code = "https://github.com/fortran-lang/fpm"
bug-tracker = "https://github.com/fortran-lang/fpm/issues"

[tool.setuptools_scm]
write_to = "src/fpm/_version.py"

[tool.cibuildwheel]
build = "cp310-*"
build-verbosity = "3"
Expand Down

0 comments on commit 9702e4d

Please sign in to comment.