-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update changelog. * Update Zenodo metadata. * Move deployment scripts. * Apply flake8 to tests. * Add license to MANIFEST.in. * Create source distribution and test before deploying. * Update setup.py. * Consolidate bumpversion config into setup.cfg. * Bump up to version 1.4.0.
- Loading branch information
Showing
22 changed files
with
112 additions
and
115 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -u | ||
|
||
python -m pip install --progress-bar off --user -U -r requirements-dev.txt | ||
python -m pip install --progress-bar off --user -U twine wheel setuptools | ||
|
||
# PYPI_USERNAME - (Required) Username for the publisher's account on PyPI | ||
# PYPI_PASSWORD - (Required, Secret) Password for the publisher's account on PyPI | ||
|
||
cat << EOF > ~/.pypirc | ||
[distutils] | ||
index-servers= | ||
pypi | ||
testpypi | ||
[pypi] | ||
username: ${PYPI_USERNAME} | ||
password: ${PYPI_PASSWORD} | ||
[testpypi] | ||
repository: https://test.pypi.org/legacy/ | ||
username: ${PYPI_USERNAME} | ||
password: ${PYPI_PASSWORD} | ||
EOF | ||
|
||
# Create wheels and source distribution | ||
python setup.py bdist_wheel | ||
python setup.py sdist | ||
|
||
# Test generated wheel | ||
python -m pip install signac --progress-bar off -U --force-reinstall -f dist/ | ||
python -m pytest tests/ -v | ||
|
||
# Upload wheels | ||
if [[ "$1" == "testpypi" || "$1" == "pypi" ]]; then | ||
python -m twine upload --skip-existing --repository $1 dist/* | ||
else | ||
echo "A valid repository must be provided: pypi or testpypi." | ||
exit 1 | ||
fi |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include LICENSE.txt |
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 |
---|---|---|
@@ -1,13 +1,30 @@ | ||
[bumpversion] | ||
current_version = 1.4.0 | ||
commit = True | ||
tag = False | ||
message = Bump up to version {new_version}. | ||
|
||
[metadata] | ||
description-file = README.md | ||
|
||
[bdist_wheel] | ||
python-tag = py3 | ||
|
||
[flake8] | ||
max-line-length=100 | ||
max-line-length = 100 | ||
exclude = configobj,passlib,cite.py,conf.py | ||
|
||
[tool:pytest] | ||
filterwarnings = | ||
ignore: .*[The indexing module | get_statepoint] is deprecated.*: DeprecationWarning | ||
filterwarnings = | ||
ignore: .*[The indexing module | get_statepoint] is deprecated.*: DeprecationWarning | ||
|
||
[bumpversion:file:setup.py] | ||
|
||
[bumpversion:file:signac/version.py] | ||
|
||
[bumpversion:file:doc/conf.py] | ||
|
||
[bumpversion:file:CITATION.cff] | ||
|
||
[bumpversion:file:.zenodo.json] | ||
|
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,6 @@ | ||
# Copyright (c) 2020 The Regents of the University of Michigan | ||
# All rights reserved. | ||
# This software is licensed under the BSD 3-Clause License. | ||
import os | ||
from setuptools import setup, find_packages | ||
|
||
|
@@ -13,7 +16,7 @@ | |
'tqdm>=4.10.0', | ||
] | ||
|
||
description = "Simple file data management database." | ||
description = "Manage large and heterogeneous data spaces on the file system." | ||
|
||
try: | ||
this_path = os.path.dirname(os.path.abspath(__file__)) | ||
|
@@ -25,17 +28,19 @@ | |
|
||
setup( | ||
name='signac', | ||
version='1.3.0', | ||
version='1.4.0', | ||
packages=find_packages(), | ||
zip_safe=True, | ||
|
||
author='Carl Simon Adorf', | ||
maintainer='signac Developers', | ||
maintainer_email='[email protected]', | ||
author='Carl Simon Adorf et al.', | ||
author_email='[email protected]', | ||
description=description, | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
keywords='simulation database index collaboration workflow', | ||
url="https://signac.io", | ||
download_url="https://pypi.org/project/signac/", | ||
keywords='simulation database index collaboration workflow', | ||
|
||
classifiers=[ | ||
"Development Status :: 5 - Production/Stable", | ||
|
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 |
---|---|---|
|
@@ -23,7 +23,6 @@ | |
from signac.errors import InvalidKeyError | ||
|
||
|
||
|
||
PYPY = 'PyPy' in platform.python_implementation() | ||
|
||
try: | ||
|
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 |
---|---|---|
|
@@ -27,7 +27,6 @@ | |
from unittest.mock import Mock | ||
|
||
|
||
|
||
SIGNAC_ACCESS_MODULE_LEGACY = r"""import os | ||
import re | ||
|
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 |
---|---|---|
|
@@ -23,7 +23,6 @@ | |
from signac.errors import KeyTypeError | ||
|
||
|
||
|
||
try: | ||
import h5py # noqa | ||
H5PY = True | ||
|
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
Oops, something went wrong.