-
Notifications
You must be signed in to change notification settings - Fork 96
Create semver package #304
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
Closed
Closed
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
194345d
Create semver package
tlaferriere d38813d
Rename VersionInfo to Version to close #305
tlaferriere e1b3851
Doc: Create new section of semver2 vs. semver3
tomschr 37c9e3b
Improve API documentation
tomschr 5e5dd98
Distinguish between changlog for version 2 and 3
tomschr 30a5568
Document migration from semver2 to semver3
tomschr 8711494
Correct black and docformatter issues
tomschr fa7b440
Update changelog.d/169.feature.rst
tlaferriere 7838196
Update docs/coerce.py
tlaferriere 0b60d15
Fix Travis error in doctests
tomschr 4ef918d
Support PEP-561 py.typed
tomschr 89df81e
Add and improve docstrings
tomschr 18b9cf9
Improve API documentation (second attempt)
tomschr 551eb3c
Doc: Add semver version in footer
tomschr 80f0d24
Add semver.__about__ to API doc
tomschr 3c636f3
Fix formatting
tomschr 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -259,7 +259,8 @@ fabric.properties | |
# -------- | ||
|
||
|
||
|
||
# Patch/Diff Files | ||
*.patch | ||
*.diff | ||
docs/_api | ||
!docs/_api/semver.__about__.rst |
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
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 @@ | ||
Deprecate CLI functions not imported from ``semver.cli``. | ||
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,10 @@ | ||
Create semver package and split code among different modules in the packages. | ||
|
||
* Remove :file:`semver.py` | ||
* Create :file:`src/semver/__init__.py` | ||
* Create :file:`src/semver/cli.py` for all CLI methods | ||
* Create :file:`src/semver/_deprecated.py` for the ``deprecated`` decorator and other deprecated functions | ||
* Create :file:`src/semver/__main__.py` to allow calling the CLI using :command:`python -m semver` | ||
* Create :file:`src/semver/_types.py` to hold type aliases | ||
* Create :file:`src/semver/version.py` to hold the :class:`Version` class (old name :class:`VersionInfo`) and its utility functions | ||
* Create :file:`src/semver/__about__.py` for all the metadata variables |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we add another file
305.deprecation.rst
to describe the deprecation of VersionInfo > Version?Oh, I see, you have that as a documentation issue. Hmn... not sure, if people will find it. IMHO it wouldn't hurt to add this here too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I will just rename the file
305.doc.rst
to305.deprecation.rst
.