Skip to content

Commit

Permalink
changes for pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaeno committed Jan 11, 2024
1 parent 19c12a9 commit ffe4629
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
8 changes: 8 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[global]

[bdist_rpm]
provides = panda-common
release = 1
packager = Panda Team <[email protected]>
requires = python

53 changes: 53 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#
#
# Setup prog for Panda Common
#
#
# set PYTHONPATH to use the current directory first
import sys

sys.path.insert(0, ".") # noqa: E402

import os

import PandaPkgInfo
from setuptools import find_packages, setup
from setuptools.command.install import install as install_org

# get release version
release_version = PandaPkgInfo.release_version
if "BUILD_NUMBER" in os.environ:
release_version = "{0}.{1}".format(release_version, os.environ["BUILD_NUMBER"])


# custom install to disable egg
class install_panda(install_org):
def finalize_options(self):
install_org.finalize_options(self)
self.single_version_externally_managed = True


setup(
name="panda-common",
version=release_version,
description=" PanDA Common Package",
long_description="""This package contains PanDA Common Components""",
license="GPL",
author="Panda Team",
author_email="[email protected]",
url="https://twiki.cern.ch/twiki/bin/view/Atlas/PanDA",
packages=find_packages(),
install_requires=[
"configparser",
"pytz",
"stomp.py >=4.1.23, <=7.0.0",
"requests",
],
data_files=[
("etc/panda", ["templates/panda_common.cfg.rpmnew"]),
],
scripts=["tools/panda_common-install_igtf_ca"],
cmdclass={
"install": install_panda,
},
)

0 comments on commit ffe4629

Please sign in to comment.