Skip to content
Snippets Groups Projects
Commit 9a6c6f3a authored by Christoph Knote's avatar Christoph Knote
Browse files

Move to poetry. Initial gitlab-ci.yaml.

parent 88d88727
No related branches found
No related tags found
1 merge request!16Introduce poetry packaging
# based on https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml
image: python:latest
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- .cache/pip
- venv/
before_script:
- python3 --version
- python3 -m pip install --upgrade pip
- pip3 install virtualenv
- virtualenv venv
- source venv/bin/activate
- python3 -m pip install --upgrade numpy
- python3 -m pip install --upgrade coverage
- pip install poetry
- poetry install
- source `poetry env info --path`/bin/activate
stages:
- testing
- build_package
- create_docs
test:
script:
- python3 -m pip install -e .
stage: testing
script:
- make
build_package:
stage: build
needs: [test]
script:
- python3 -m pip install --upgrade build
- python3 -m build
artifacts:
paths:
- dist/*.whl
- poetry build
pages:
create_docs:
stage: create_docs
needs: [test]
script:
- pip install sphinx sphinx-rtd-theme enum-tools sphinx-toolbox
- poetry install sphinx sphinx-rtd-theme enum-tools sphinx-toolbox
- cd docs ; make html
- mv build/html/ ../public/
artifacts:
......
# Changelog
## 2.0.0 (2022-02-x)
- Compatible with ICARTT v2 standard
- Formats 1001 and 2110
- Complete internal overhaul
## 1.0.0 (2017-12-19)
- Peer-reviewed version to be published in Knote et al., GMD
## 0.1.0 (2017-08-12)
- Initial release
`pip install icartt`
\ No newline at end of file
include CHANGES.md
include INSTALL.md
include LICENSE
include README.md
......@@ -14,7 +14,7 @@ If you'd like to contribute source code directly, please [create a fork](https:/
make your changes and then [submit a merge request](https://mbees.med.uni-augsburg.de/gitlab/mbees/icartt_pypackage/-/merge_requests/new) to the original project.
## Installation
## Installation of the development version
Clone this repository / or your fork and install as "editable":
......@@ -23,3 +23,19 @@ git clone https://mbees.med.uni-augsburg.de/gitlab/mbees/icartt_pypackage.git or
cd icartt_pypackage
pip install -e .
```
# Changelog
## 2.0.0 (2022-02-x)
- Compatible with ICARTT v2 standard
- Formats 1001 and 2110
- Complete internal overhaul
## 1.0.0 (2017-12-19)
- Peer-reviewed version to be published in Knote et al., GMD
## 0.1.0 (2017-08-12)
- Initial release
[build-system]
requires = [
"numpy", "setuptools"
[tool.poetry]
name = "icartt"
version = "1.9.1"
description = "ICARTT format reader and writer"
license = "GPL-3.0-or-later"
authors = ["Christoph Knote <christoph.knote@med.uni-augsburg.de>"]
readme = "README.md"
homepage = "https://mbees.med.uni-augsburg.de/"
repository = "https://mbees.med.uni-augsburg.de/gitlab/mbees/icartt_pypackage"
keywords = [ "atmosphere", "file format", "ames", "nasa" ]
classifiers = [
"Programming Language :: Python :: 3",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: POSIX",
"Topic :: Education",
"Topic :: Scientific/Engineering",
"Topic :: Utilities",
]
packages = [
{ include = "icartt", from = "src" },
]
build-backend = "setuptools.build_meta"
[tool.poetry.urls]
issues = "http://mbees.med.uni-augsburg.de/gitlab/mbees/icartt_pypackage/issues"
[tool.poetry.dependencies]
python = "^3"
numpy = ">= 1.2"
[tool.poetry.dev-dependencies]
pytest = "^5.2"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[metadata]
name = icartt
version = 1.9.1
author = Christoph Knote
author_email = christoph.knote@med.uni-augsburg.de
description = ICARTT format reader and writer
long_description = file: README.md, INSTALL.md, CHANGES.md
long_description_content_type = text/markdown
url = https://mbees.med.uni-augsburg.de
project_urls =
Bug Tracker = http://mbees.med.uni-augsburg.de/gitlab/mbees/icartt_pypackage/issues
classifiers =
Programming Language :: Python :: 3
Development Status :: 5 - Production/Stable
Environment :: Console
Intended Audience :: Developers
Intended Audience :: Education
Intended Audience :: End Users/Desktop
Intended Audience :: Science/Research
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Operating System :: POSIX
Topic :: Education
Topic :: Scientific/Engineering
Topic :: Utilities
[options]
package_dir =
= src
packages = find:
python_requires = >=3.0
[options.packages.find]
where = src
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment