-
-
Couldn't load subscription status.
- Fork 31
Move setup.py and setup.cfg into pyproject.toml #144
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
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
91965d4
build: move setup.* into pyproject.toml
nedbat 0113b1b
build: no more setup.py, so get the version a different way
nedbat 6944aaf
build: need ourselves installed, not sure how this used to get done
nedbat 5b41ed1
build: clean up the PHONY targets
nedbat 9324ea2
test: keep the -no_extras environment working
nedbat 554da96
build: use build instead of setuptools for future-proofing
nedbat 5f65b21
build: make help descriptions should all be lower-case
nedbat 93cf826
build: only run the version-getter when needed
nedbat 9048235
Apply suggestions from code review
nedbat a614ff3
docs: add more explanation about py39-no_extras
nedbat 0fa8940
build: use latest license spec
nedbat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,92 @@ | ||
| # scriv's pyproject.toml | ||
|
|
||
| [project] | ||
| name = "scriv" | ||
| description = "Scriv changlog management tool" | ||
| authors = [ | ||
| {name = "Ned Batchelder", email = "ned@nedbatchelder.com"}, | ||
| ] | ||
| license = "Apache-2.0" | ||
| classifiers = [ | ||
| "Development Status :: 5 - Production/Stable", | ||
| "Intended Audience :: Developers", | ||
| "Programming Language :: Python", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.12", | ||
| "Programming Language :: Python :: 3.13", | ||
| ] | ||
|
|
||
| requires-python = ">= 3.9" | ||
|
|
||
| dynamic = ["readme", "version", "dependencies"] | ||
|
|
||
| [project.urls] | ||
| "Mastodon" = "https://hachyderm.io/@nedbat" | ||
| "Funding" = "https://github.com/sponsors/nedbat" | ||
| "Issues" = "https://github.com/nedbat/scriv/issues" | ||
| "Source" = "https://github.com/nedbat/scriv" | ||
| "Home" = "https://github.com/nedbat/scriv" | ||
| "Documentation" = "https://scriv.readthedocs.io" | ||
|
|
||
| [project.scripts] | ||
| scriv = "scriv.cli:cli" | ||
|
|
||
| [project.optional-dependencies] | ||
| toml = [ | ||
| 'tomli; python_version < "3.11"' | ||
| ] | ||
| yaml = [ | ||
| "pyyaml" | ||
| ] | ||
|
|
||
| [build-system] | ||
nedbat marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| requires = ["setuptools"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| where = ["src"] | ||
|
|
||
| [tool.setuptools.package-data] | ||
| scriv = [ | ||
| "templates/*.*", | ||
| ] | ||
|
|
||
| [tool.setuptools.dynamic] | ||
| version.attr = "scriv.__version__" | ||
| readme.file = ["README.rst", "CHANGELOG.rst"] | ||
| dependencies.file = ["requirements/core.txt"] | ||
|
|
||
| [tool.scriv] | ||
| ghrel_template = "file: ghrel_template.md.j2" | ||
| rst_header_chars = "-." | ||
| version = "literal: src/scriv/__init__.py: __version__" | ||
|
|
||
| [tool.isort] | ||
| indent = " " | ||
| line_length = 80 | ||
| multi_line_output = 3 | ||
| include_trailing_comma = true | ||
|
|
||
| [tool.mypy] | ||
| python_version = "3.9" | ||
| show_column_numbers = true | ||
| show_error_codes = true | ||
| ignore_missing_imports = true | ||
| check_untyped_defs = true | ||
| warn_return_any = true | ||
|
|
||
| [tool.doc8] | ||
| max-line-length = 80 | ||
|
|
||
| [tool.pydocstyle] | ||
| # D105 = Missing docstring in magic method | ||
| # D200 = One-line docstring should fit on one line with quotes | ||
| # D203 = 1 blank line required before class docstring | ||
| # D212 = Multi-line docstring summary should start at the first line | ||
| # D406 = Section name should end with a newline (numpy style) | ||
| # D407 = Missing dashed underline after section (numpy style) | ||
| # D413 = Missing blank line after last section (numpy style) | ||
| ignore = ["D105", "D200", "D203", "D212", "D406", "D407", "D413"] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,4 @@ | ||
| # Core requirements for using this application | ||
|
|
||
| -c constraints.txt | ||
|
|
||
| attrs | ||
| click | ||
| click-log | ||
| jinja2>=2.7 | ||
| markdown-it-py | ||
| requests | ||
| -r core.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Core requirements for using this application | ||
|
|
||
| attrs | ||
| click | ||
| click-log | ||
| jinja2>=2.7 | ||
| markdown-it-py | ||
| requests |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.