Skip to content
Snippets Groups Projects
Commit be7d1f2c authored by Johannes Schumann's avatar Johannes Schumann
Browse files

Merge branch 'setuptools_update' into 'master'

Update/Clean Setup Scripts

See merge request !39
parents 55b70d72 31bc3813
No related branches found
Tags v0.9.0
1 merge request!39Update/Clean Setup Scripts
Pipeline #32880 failed
......@@ -41,7 +41,7 @@ reset_test_image:
pip install virtualenv
virtualenv venv
source venv/bin/activate
pip install -U pip setuptools yapf
pip install -U pip setuptools yapf setuptools_scm
make install-dev
pip list
date
......@@ -53,7 +53,7 @@ reset_test_image:
test:
image: python:3
image: python:3.10
stage: test
tags:
- docker
......@@ -63,7 +63,7 @@ test:
<<: *junit_definition
code-style:
image: python:3
image: python:3.10
stage: test
script:
- *virtualenv_definition
......@@ -71,7 +71,7 @@ code-style:
allow_failure: true
coverage:
image: python:3
image: python:3.10
stage: coverage
tags:
- docker
......
from .__version__ import version
__author__ = "Johannes Schumann"
__copyright__ = "Copyright 2020, Johannes Schumann and the KM3NeT collaboration."
__credits__ = []
......
numpydoc
pydocstyle
pytest
pytest-cov
pytest-flake8
pytest-pylint
pytest-watch
sphinx-rtd-theme
sphinx>=3.0.0
sphinxcontrib-napoleon
sphinxcontrib-programoutput
sphinxcontrib-websupport
sphinx-autoapi
setuptools_scm
yapf>=0.25
km3net-testdata>=0.2.11
km3io
docopt
type-docopt
tqdm
setuptools_scm
numpy==1.23.5
numba==0.56.4
scipy
spython
thepipe
particle
click
f90nml
uproot>=4.0.0
awkward>=1.0.0
pandas
mendeleev
proposal>=7.1.1
setup.cfg 0 → 100644
[metadata]
name = km3buu
version = attr: km3buu.version
description = "GiBUU neutrino generator tool for KM3NeT"
long_description = file: README.rst
long_description_content_type = text/x-rst
url = https://git.km3net.de/simulation/km3buu
author = Johannes Schumann
author_email = jschumann@km3net.de
maintainer = Johannes Schumann
maintainer_email = jschumann@km3net.de
license = MIT
license_file = LICENSE
classifiers =
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
Intended Audience :: Science/Research
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Topic :: Scientific/Engineering
keywords =
neutrino
generator
physics
HEP
oscillation
[options]
packages = find:
install_requires =
setuptools_scm
numpy==1.23.5
numba==0.56.4
scipy
spython
thepipe
particle
click
f90nml
uproot>=4.0.0
awkward>=1.4.0
pandas
mendeleev
proposal>=7.1.1
python_requires = >=3.6
include_package_data = True
package_dir =
=km3buu
[options.packages.find]
where = km3buu
[options.extras_require]
all =
docopt
type-docopt
tqdm
dev =
numpydoc
pydocstyle
pytest
pytest-cov
pytest-flake8
pytest-pylint
pytest-watch
sphinx-rtd-theme
sphinx>=3.0.0
sphinxcontrib-napoleon
sphinxcontrib-programoutput
sphinxcontrib-websupport
sphinx-autoapi
setuptools_scm
yapf>=0.25
km3net-testdata>=0.2.11
km3io
[options.entry_points]
console_scripts =
km3buu = km3buu.cmd:main
[options.package_data]
* = *.mplstyle, *.py.typed
[bdist_wheel]
universal = 1
[tool:pytest]
junit_family = xunit2
addopts = -vv -rs -Wd
testpaths =
tests
[check-manifest]
ignore =
km3buu/version.py
[tool:isort]
profile = black
multi_line_output = 3
#!usr/bin/env python
# -*- coding: utf-8 -*-
# Filename: setup.py
"""
KM3BUU setup script.
#!/usr/bin/env python3
from setuptools import setup
"""
import os
import tempfile
from setuptools import setup, find_packages
import setuptools_scm
PACKAGE_NAME = 'km3buu'
URL = 'https://git.km3net.de/simulation/km3buu'
DESCRIPTION = 'GiBUU tools for KM3NeT'
__author__ = 'Johannes Schumann'
__email__ = 'jschumann@km3net.de'
setup()
def read_requirements(kind):
with open(os.path.join('requirements', kind + '.txt')) as fobj:
requirements = [l.strip() for l in fobj.readlines()]
return requirements
setup(
name=PACKAGE_NAME,
url=URL,
description=DESCRIPTION,
author=__author__,
author_email=__email__,
packages=find_packages(),
include_package_data=True,
platforms='any',
setup_requires=['setuptools_scm'],
use_scm_version={
'write_to': '{}/version.txt'.format(PACKAGE_NAME),
'tag_regex': r'^(?P<prefix>v)?(?P<version>[^\+]+)(?P<suffix>.*)?$',
},
install_requires=read_requirements("install"),
extras_require={
kind: read_requirements(kind)
for kind in ["dev", "extras"]
},
python_requires='>=3.0',
entry_points={'console_scripts': ['km3buu=km3buu.cmd:main']},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Programming Language :: Python',
],
)
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