Commit 2961c4db authored by dboe's avatar dboe
Browse files

Update template

parent b9148cf9
Pipeline #78870 passed with stage
in 54 seconds
......@@ -8,10 +8,6 @@ repos:
rev: 3.8.3
hooks:
- id: flake8
- repo: https://gitlab.com/dboe/dough
rev: v0.1.10
hooks:
- id: readthedocs_requirements
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
......
......@@ -19,7 +19,6 @@ sphinx:
python:
version: 3.7
install:
- requirements: docs/requirements.txt
- method: pip
path: .
extra_requirements:
......
......@@ -47,7 +47,7 @@ untag:
requirements: setup.cfg
# We have all the information in the setup.cfg file. For some reasons (e.g. bug in setuptools or limitations to use setup.cfg in readthedocs) we still need a requirements file
python -c "import configparser; import os; config = configparser.ConfigParser(); config.read('setup.cfg'); deps = config['metadata']['install_requires'].split('\n'); deps = [x for x in deps if x]; head = '# Autogenerated by Makefile from setup.cfg install_requies section. Remove this line if you want to fix this file.'; path = 'requirements.txt'; f = open(path, 'r') if os.path.exists(path) else None; line = f.readline() if f else ''; quit('User defined requirements already existing.') if f and not line.startswith(head[:20]) else None; f = open('requirements.txt', 'w'); f.write('\n'.join([head] + deps))"
python -c "import configparser; import os; config = configparser.ConfigParser(); config.read('setup.cfg'); deps = config['options']['install_requires'].split('\n'); deps = [x for x in deps if x]; head = '# Autogenerated by Makefile from setup.cfg install_requies section. Remove this line if you want to fix this file.'; path = 'requirements.txt'; f = open(path, 'r') if os.path.exists(path) else None; line = f.readline() if f else ''; quit('User defined requirements already existing.') if f and not line.startswith(head[:20]) else None; f = open('requirements.txt', 'w'); f.write('\n'.join([head] + deps))"
doc: Makefile $(SOURCES) $(DOCUMENTATION) docs/conf.py docs/apidoc-template/*
# link apidoc to source and build html documentation with sphinx
......
......@@ -9,6 +9,7 @@
"email": "dboe@ipp.mpg.de",
"keywords": "tensors, tensor-fields, graphs, mesh, numpy, math",
"package_name": "tfields",
"package_version": "0.3.2",
"pypi_username": "dboe",
"remote_namespace": "dboe",
"remote_provider": "gitlab.mpcdf.mpg.de",
......
[bumpversion]
current_version = 0.0.1
current_version = 0.3.2
tag = True
commit = True
message = release-v{new_version}
......@@ -8,9 +8,16 @@ message = release-v{new_version}
search = __version__ = '{current_version}'
replace = {new_version}
[bumpversion:file:setup.py]
search = version='{current_version}'
replace = {new_version}
[bumpversion:file:docs/cookiecutter_input.json]
search = "package_version": "{current_version}"
replace = {new_version}
[metadata]
name = tfields
version = attr: tfields.__version__
url = https://gitlab.mpcdf.mpg.de/dboe/tfields
author = Daniel Böckenhoff
author_email = dboe@ipp.mpg.de
......@@ -30,18 +37,18 @@ description = Tensors, tensor fields, graphs, mesh manipulation, CAD and more on
long_description = file: README.rst, LICENSE.rst
long_description_content_type = text/x-rst
keywords = tensors, tensor-fields, graphs, mesh, numpy, math
install_requires =
pathlib
project_urls =
Documentation = https://tfields.readthedocs.io
Source = https://gitlab.mpcdf.mpg.de/dboe/tfields
tests_require =
doctest
unittest
python_requires = >=3.0
[options]
python_requires = >=3.0
packages = find:
install_requires =
pathlib
tests_require =
doctest
unittest
[options.packages.find]
exclude =
......@@ -117,7 +124,7 @@ python =
[testenv]
description = run test suite under {basepython}
deps =
{[metadata]install_requires}
{[options]install_requires}
{[options.extras_require]test}
extras = test
commands =
......
from setuptools import setup
setup()
setup(version='0.3.2')
......@@ -2,4 +2,4 @@
__author__ = """Daniel Böckenhoff"""
__email__ = "dboe@ipp.mpg.de"
__version__ = "0.0.1"
__version__ = "0.3.2"
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