Commit 6d18505a authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Added PyPI deployment job and updated setup.py accordingly. Updated version info.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent c54c93b5
Pipeline #14522 failed with stages
in 11 minutes and 57 seconds
......@@ -135,3 +135,18 @@ pages: # this job must be called 'pages' to advise GitLab to upload content to
expire_in: 10 days
only:
- master
deploy_pypi:
stage: deploy
dependencies:
- test_gms_preprocessing
script:
- source /root/miniconda3/bin/activate ci_env
- pip install -U twine
- python setup.py sdist
- twine upload dist/* # requires creds as environment variables
only:
- /^v\d+\.\d+\.\d+([abc]\d*)?$/ # PEP-440 compliant version (tags)
except:
- dev
......@@ -2,6 +2,12 @@
History
=======
0.18.8 (2020-10-13)
-------------------
* Added PyPI deployment job and updated setup.py accordingly.
0.18.7 (2020-10-13)
-------------------
......
......@@ -24,5 +24,5 @@
# You should have received a copy of the GNU Lesser General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
__version__ = '0.18.7'
__versionalias__ = '20201013.01'
__version__ = '0.18.8'
__versionalias__ = '20201013.02'
......@@ -36,7 +36,7 @@ with open('HISTORY.rst') as history_file:
history = history_file.read()
version = {}
with open("gms_preprocessing/version.py") as version_file:
with open("gms_preprocessing/version.py", encoding='utf-8') as version_file:
exec(version_file.read(), version)
requirements = [
......@@ -83,22 +83,8 @@ setup_requirements = [] # TODO(danschef): put setup requirements (distutils ext
test_requirements = requirements + ['coverage', 'nose', 'nose2', 'nose-htmloutput', 'rednose']
setup(
name='gms_preprocessing',
version=version['__version__'],
description="GeoMultiSens - Scalable Multi-Sensor Analysis of Remote Sensing Data",
long_description=readme + '\n\n' + history,
author="Daniel Scheffler",
author_email='daniel.scheffler@gfz-potsdam.de',
url='https://gitext.gfz-potsdam.de/geomultisens/gms_preprocessing',
packages=find_packages(exclude=['tests*']), # searches for packages with an __init__.py and returns a list
package_dir={'gms_preprocessing': 'gms_preprocessing'},
package_data={"database": ["gms_preprocessing/database/*"]},
include_package_data=True,
install_requires=requirements,
scripts=["bin/run_gms.py", "bin/run_gms.sh"],
license="GPL-3.0-or-later",
zip_safe=False,
keywords='gms_preprocessing',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
......@@ -110,8 +96,23 @@ setup(
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
description="GeoMultiSens - Scalable Multi-Sensor Analysis of Remote Sensing Data",
keywords='gms_preprocessing',
include_package_data=True,
install_requires=requirements,
license="GPL-3.0-or-later",
long_description=readme + '\n\n' + history,
name='gms_preprocessing',
# package_data={"gms_preprocessing": ["database/**/**/**/*"]},
package_data={"database": ["gms_preprocessing/database/*"]},
package_dir={'gms_preprocessing': 'gms_preprocessing'},
packages=find_packages(exclude=['tests*']), # searches for packages with an __init__.py and returns a list
scripts=["bin/run_gms.py", "bin/run_gms.sh"],
test_suite='tests',
tests_require=test_requirements
tests_require=test_requirements,
url='https://gitext.gfz-potsdam.de/geomultisens/gms_preprocessing',
version=version['__version__'],
zip_safe=False
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment