Skip to content

Commit

Permalink
fix: added setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Nov 16, 2023
1 parent 8c2cf14 commit c7d00e2
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 31 deletions.
1 change: 1 addition & 0 deletions .github/workflows/python2-3-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
- 2.7.18
- 3.6.15
- 3.9.17
- 3.11.4

container: python:${{ matrix.python }}-slim
steps:
Expand Down
51 changes: 51 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
###############################################################################
# Setuptools
###############################################################################

[metadata]
name = DB12
description = DIRAC Benchmark 2012
long_description = file: README.rst
url = https://github.com/DIRACGrid/DB12/
license = GPL-3.0-only
license_files = LICENSE
classifiers =
Development Status :: 5 - Production/Stable
Intended Audience :: Science/Research
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Programming Language :: Python :: 2
Programming Language :: Python :: 3
Topic :: Scientific/Engineering
Topic :: System :: Distributed Computing

[options]
package_dir=
=src
packages = find:
zip_safe = False
include_package_data = True

[options.package_data]
* = factors.json

[options.packages.find]
where=src

[options.entry_points]
console_scripts =
db12 = db12.__main__:main


###############################################################################
# Linting
###############################################################################

[pycodestyle]
# Pep8 codes:
# E203 - Whitespace before ':' (spaces should be present for list slices)
# E211 - Whitespace before '(' (black incorrectly formats exec when in Python 2 mode)
# E266 - Too many leading '#' for block comment
# E402 - module level import not at top of file (for scripts)
# W503 - line break before binary operator (stupid, complains after or before...)
ignore = E203, E211, E266, E402, W503
max_line_length=120
33 changes: 2 additions & 31 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,32 +1,3 @@
import setuptools
from setuptools import setup

with open("README.md", "r") as fh:
long_description = fh.read()

setuptools.setup(
name="DB12",
description="DIRAC Benchmark 2012",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/pypa/DIRACGrid/DB12",
use_scm_version=True,
setup_requires=["setuptools_scm"],
project_urls={
"Bug Tracker": "https://github.com/DIRACGrid/DB12/issues",
},
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 2.7",
"Operating System :: OS Independent",
],
package_dir={"": "src"},
package_data={"": ["factors.json"]},
packages=setuptools.find_packages(where="src"),
python_requires=">=2.7",
test_suite="tests",
entry_points={
"console_scripts": [
"db12 = db12.__main__:main",
],
},
)
setup()

0 comments on commit c7d00e2

Please sign in to comment.