-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from hz-b/dev/feature/pyproject-toml
[TASK] moved info to pyproject.toml
- Loading branch information
Showing
6 changed files
with
77 additions
and
85 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,43 @@ | ||
# -*- coding: utf-8 -*- | ||
[build-system] | ||
requires = ["setuptools", "setuptools-scm", "numpy"] | ||
requires = ["setuptools >= 61.0", "setuptools-scm", "cython", "numpy"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "bact-archiver" | ||
# url = | ||
# fullname = "BACT epics archiver appliance access" | ||
version = "0.2.2" | ||
description = "EPICS archiver appliance access using google protobuf" | ||
readme="README.rst" | ||
authors = [ | ||
{name = "Andreas Schälicke", email="[email protected]"}, | ||
{name = "Pierre Schnizer", email="[email protected]"}, | ||
] | ||
license = {text = "GNU General Public License (GPL)"} | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Science/Research", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Scientific/Engineering :: Physics", | ||
] | ||
|
||
requires-python = ">= 3.7" | ||
|
||
dependencies = [ | ||
"numpy", | ||
"pandas", | ||
"protobuf >=3.18.3, ==3.*", | ||
"python-dateutil" | ||
] | ||
] | ||
|
||
|
||
[project.urls] | ||
homepage = "https://github.com/hz-b/bact-archiver" | ||
|
||
|
||
|
||
[tool.setuptools.packages.find] | ||
exclude = ["*.cc", "*.h", "proto/*"] | ||
namespaces = false | ||
|
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,67 +1,8 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
[metadata] | ||
name = bact-archiver | ||
fullname = BACT epics archiver appliance access | ||
version = 0.2.1 | ||
url = https://github.com/hz-b/bact-archiver | ||
author = Andreas Schälicke, Pierre Schnizer | ||
author_email = [email protected] | ||
[email protected] | ||
description = EPICS archiver appliance access using google protobuf | ||
long_description = file: README.rst | ||
classifiers = | ||
Development Status :: 4 - Beta | ||
Intended Audience :: Science/Research | ||
License :: OSI Approved :: GNU General Public License (GPL) | ||
Programming Language :: Python :: 3 | ||
Topic :: Scientific/Engineering :: Physics | ||
[build-system] | ||
requires = setup_tools | ||
|
||
|
||
[options] | ||
packages = find: | ||
setup_requires = cython | ||
install_requires = | ||
pandas | ||
protobuf >=3.18.3, ==3.* | ||
python-dateutil | ||
|
||
requires = numpy | ||
include_package_data = True | ||
# zip_safe = False | ||
|
||
# [package_data] | ||
[options.package_data] | ||
bact_archiver = | ||
archiver.cfg | ||
|
||
[options.extras_require] | ||
dev = | ||
cython | ||
# only needed once to create cysetuptools locally | ||
# cython-setuptools | ||
|
||
# The configuration of the following two build steps depens on each | ||
# other. | ||
# Howto include this section to pyproject.toml | ||
[build_proto_c] | ||
python = True | ||
cpp = True | ||
src_dir = proto | ||
build_dir = proto_gen | ||
pydir = bact_archiver | ||
source = proto/epics_event.proto | ||
|
||
[cython-module: bact_archiver.epics_event] | ||
include_dirs = proto_gen | ||
eval(__import__('numpy').get_include()) | ||
|
||
# The directory will be typically match the src_dir directory | ||
# of the build_proto_c section for the .pyx file and the | ||
# build_dir for the .cc file | ||
sources = proto/epics_event.pyx | ||
proto_gen/epics_event.pb.cc | ||
libraries = protobuf | ||
language = c++ | ||
show-all-warnings = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,30 @@ | ||
# -*- coding: utf-8 -*- | ||
# Authors : Andreas Schälicke <[email protected]> | ||
# Pierre Schnizer <[email protected]> | ||
# Date : 2017, 2020, 2023 | ||
import sys, os.path | ||
# required that cysetuptools is found | ||
# Date : 2017, 2020, 2023, 2024 | ||
import os | ||
import sys | ||
|
||
from setuptools import Extension, setup | ||
from numpy import get_include | ||
# required that protocol_buffer is found | ||
sys.path.append(os.path.dirname(__file__)) | ||
from cysetuptools import setup | ||
import protocol_buffer | ||
from protocol_buffer import GenerateProtocolBuffer | ||
|
||
cmdclass = dict(build_proto_c=protocol_buffer.GenerateProtocolBuffer) | ||
setup( | ||
cmdclass=cmdclass, | ||
author="Andreas Schälicke, Pierre Schnizer", | ||
author_email=( | ||
"andreas.schä[email protected], " "[email protected]" | ||
), | ||
cmdclass=dict(build_proto_c=GenerateProtocolBuffer), | ||
ext_modules=[ | ||
Extension( | ||
name="bact_archiver.epics_event", | ||
sources=[ | ||
"proto/epics_event.pyx", | ||
"proto_gen/epics_event.pb.cc", | ||
], | ||
include_dirs=[".", "proto_gen/", get_include()], | ||
libraries=[ | ||
"protobuf", | ||
], | ||
language="c++", | ||
) | ||
], | ||
) |