-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
420 additions
and
336 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<html> | ||
<body> | ||
<p> Copyright (c) 2018–2019, Caltech.<br> | ||
All rights not granted herein are expressly reserved by Caltech. | ||
|
||
<p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
|
||
<p> 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
|
||
<p> 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
|
||
<p> 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. | ||
|
||
<p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
</body> | ||
</html> |
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,44 @@ | ||
# ============================================================================= | ||
# @file Makefile | ||
# @brief Makefile for some steps in creating releases | ||
# @author Michael Hucka | ||
# @date 2019-11-08 | ||
# @license Please see the file named LICENSE in the project directory | ||
# @website https://github.com/caltechlibrary/eprints2bags | ||
# ============================================================================= | ||
|
||
version := $(shell grep 'version\s*=' setup.cfg | cut -f2 -d'=' | tr -d '[:blank:]') | ||
branch := $(shell git rev-parse --abbrev-ref HEAD) | ||
|
||
release: | test-branch release-on-github print-reminder | ||
|
||
test-branch: | ||
ifneq ($(branch),master) | ||
$(error Current git branch != master. Merge changes into master first) | ||
endif | ||
|
||
release-on-github:; | ||
sed -i .bak -e "/version/ s/[0-9].[0-9].[0-9]/$(version)/" codemeta.json | ||
git add codemeta.json | ||
git diff-index --quiet HEAD || git commit -m"Update version number" codemeta.json | ||
git tag -a v$(version) -m "Release $(version)" | ||
git push -v --all | ||
git push -v --tags | ||
|
||
print-reminder:; | ||
$(info ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓) | ||
$(info ┃ Next steps: ┃) | ||
$(info ┃ 1. Go to GitHub and fill out new release info ┃) | ||
$(info ┃ 2. Go to data.caltech.edu and get new Zenodo DOI ┃) | ||
$(info ┃ 3. Update DOI in README.md file ┃) | ||
$(info ┃ 4. Push to GitHub again ┃) | ||
$(info ┃ 5. Push to test.pypi.org as follows: ┃) | ||
$(info ┃ a. python3 setup.py sdist bdist_wheel ┃) | ||
$(info ┃ b. python3 -m twine upload --verbose --repository-url https://test.pypi.org/legacy/ dist/* ┃) | ||
$(info ┃ 6. Test installing from pypi test location ┃) | ||
$(info ┃ 7. Double-check everything ┃) | ||
$(info ┃ 8. Push to pypi for real: ┃) | ||
$(info ┃ a. python3 -m twine upload --verbose dist/* ┃) | ||
$(info ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛) | ||
|
||
.PHONY: release release-on-github print-reminder |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Icon sources for eprints2bags | ||
============================= | ||
|
||
The [vector artwork](https://thenounproject.com/search/?q=bag&i=1002779) of a bag used as a logo for this repository was created by [StoneHub](https://thenounproject.com/stonehub/) from the Noun Project. It is licensed under the Creative Commons [CC-BY 3.0](https://creativecommons.org/licenses/by/3.0/) license. | ||
|
||
I edited the logo in [Boxy SVG](https://boxy-svg.com), a native SVG editor for macOS, to add a letter "e" in the middle (using the font named "Carme" provided in Boxy SVG out of the box) and to change the color of everything to the orange used by Caltech in their logo. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.