-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
48 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Upload Package to Pypi | ||
|
||
on: [push, pull_request] | ||
on: [push] | ||
|
||
jobs: | ||
deploy: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
[build-system] | ||
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"] | ||
requires = ["setuptools>=64", "setuptools_scm>=8"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
# Enable setuptools_scm to compute the version number from the most recent tag | ||
# https://github.com/pypa/setuptools_scm/#pyprojecttoml-usage | ||
[project] | ||
# version = "0.0.1" # Remove any existing version parameter. | ||
dynamic = ["version"] | ||
|
||
[tool.setuptools_scm] | ||
# Avoid letting setuptools_scm use old style tags (i.e. vXrYpZ) | ||
git_describe_command = "git describe --dirty --tags --long --match *[0-9].[0-9]* --exclude v[0-9]r* --exclude v[0-9][0-9]r*" | ||
|
||
[tool.isort] | ||
profile = "black" | ||
|
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
############################################################################### | ||
# Setuptools | ||
############################################################################### | ||
|
||
[metadata] | ||
name = DB12 | ||
description = DIRAC Benchmark 2012 | ||
long_description = file: README.md | ||
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 :: 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] | ||
db12 = | ||
metadata = db12:extension_metadata | ||
console_scripts = | ||
db12 = db12.__main__:main |
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,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() |