Skip to content

Commit

Permalink
Disallow Hard-coded __version__ and Require project.version (#61)
Browse files Browse the repository at this point in the history
* Disallow `__version__` Detection and Require `project.version`

* pt 2

* refactor with `PyProjectTomlBuilder`

* wording

* wording - 2

* tests: update version logic

* tests: update version logic - 2

* fix test fixture

* add tests

* misc fix

* update README

* require introspection

* misc

* importlib_metadata - 2
  • Loading branch information
ric-evans authored May 31, 2024
1 parent eeec466 commit c044e43
Show file tree
Hide file tree
Showing 3 changed files with 315 additions and 375 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ In order to use the action, a few files need to have the following:
setup()
```
- **Note:** a `pyproject.toml` file is not needed since it will be autogenerated. However, if one does already
exist (
ie. the most common scenario), then sections and/or attributes will be inserted. Any conflicting
- a `pyproject.toml` file with a `[project].version` attribute (hardcoding `__version__` strings in `__init__.py`
files is disallowed). Other sections and attributes will be auto-inserted. Any conflicting
sections/attributes will be overwritten.
2. Run as GitHub Action
3. Source code updates are committed and pushed by the `github-actions` bot (by default)
Expand Down
Loading

0 comments on commit c044e43

Please sign in to comment.