-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: port git information on setup from spaCy add corresponding numpy licence remove auto-generated git_info submodule * feat: add tagging helper scripts * feat: update about.py to include __title__ key * feat: add a version key in setup.cfg * feat: add automatic version extraction from cfg file * fix: adapt release utilities to new _version file * feat: get package name from setup.cfg * build: add write_version_py to the setup procedure * fix: version extraction in setup.py * fix: underline in licenses/3rd_party_licenses.txt Co-authored-by: Sofie Van Landeghem <[email protected]> * build: remove git_info at build time * chore: remove irrelevant 3rd party license * fix: adapt code to check spaCy git commit * fix: use weasel version and drop use of git commit for lockfile * chore: change first version identifier * feat: add check for deprecated spaCy env vars * test: env var check * fix: use optional instead of | * feat: remove automatic build time __version__ * feat: remove version checking altogether * feat: drop Py3.6 & 3.7 support * ci: remove Py 3.6 & 3.7 * feat: remove multiple import since we're dropping Py3.7 support --------- Co-authored-by: Sofie Van Landeghem <[email protected]>
- Loading branch information
Showing
14 changed files
with
133 additions
and
50 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
|
@@ -44,7 +44,6 @@ Pipfile.lock | |
*.egg | ||
.eggs | ||
MANIFEST | ||
spacy/git_info.py | ||
|
||
# Temporary files | ||
*.~* | ||
|
This file contains 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,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
version=$(grep "name = " setup.cfg) | ||
version=${version/__title__ = } | ||
version=${version/\'/} | ||
version=${version/\'/} | ||
version=${version/\"/} | ||
version=${version/\"/} | ||
|
||
echo $version |
This file contains 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,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
version=$(grep "version = " setup.cfg) | ||
version=${version/version = } | ||
version=${version/\'/} | ||
version=${version/\'/} | ||
version=${version/\"/} | ||
version=${version/\"/} | ||
|
||
echo $version |
This file contains 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,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
# Insist repository is clean | ||
git diff-index --quiet HEAD | ||
|
||
git checkout $1 | ||
git pull origin $1 | ||
git push origin $1 | ||
|
||
version=$(grep "version = " setup.cfg) | ||
version=${version/version = } | ||
version=${version/\'/} | ||
version=${version/\'/} | ||
version=${version/\"/} | ||
version=${version/\"/} | ||
git tag "v$version" | ||
git push origin "v$version" |
This file contains 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 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,6 +1,7 @@ | ||
#!/usr/bin/env python | ||
|
||
|
||
if __name__ == "__main__": | ||
from setuptools import find_packages, setup | ||
|
||
setup(name="weasel", packages=find_packages()) | ||
setup(packages=find_packages()) |
This file contains 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,2 @@ | ||
__version__ = "3.5.0" | ||
__projects__ = "https://github.com/explosion/projects" | ||
__projects_branch__ = "v3" |
This file contains 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 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 was deleted.
Oops, something went wrong.
This file contains 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 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 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